dk.eobjects.metamodel.query
Enum OperatorType

java.lang.Object
  extended by java.lang.Enum<OperatorType>
      extended by dk.eobjects.metamodel.query.OperatorType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OperatorType>

public enum OperatorType
extends java.lang.Enum<OperatorType>

Defines the types of operators that can be used in filters.

See Also:
FilterItem

Enum Constant Summary
DIFFERENT_FROM
           
EQUALS_TO
           
HIGHER_THAN
           
LIKE
           
LOWER_THAN
           
 
Method Summary
static OperatorType convertOperatorType(java.lang.String sqlType)
          Converts from SQL string literals to an OperatorType.
static OperatorType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OperatorType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EQUALS_TO

public static final OperatorType EQUALS_TO

DIFFERENT_FROM

public static final OperatorType DIFFERENT_FROM

LIKE

public static final OperatorType LIKE

HIGHER_THAN

public static final OperatorType HIGHER_THAN

LOWER_THAN

public static final OperatorType LOWER_THAN
Method Detail

values

public static OperatorType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (OperatorType c : OperatorType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OperatorType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

convertOperatorType

public static OperatorType convertOperatorType(java.lang.String sqlType)
Converts from SQL string literals to an OperatorType. Valid SQL values are "=", "<>", "LIKE", ">" and "<".

Parameters:
sqlType -
Returns:
a OperatorType object representing the specified SQL type


Copyright © 2007-2008. All Rights Reserved.