org.eobjects.metamodel.query
Enum OperatorType

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

public enum OperatorType
extends Enum<OperatorType>

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

See Also:
FilterItem

Enum Constant Summary
DIFFERENT_FROM
           
EQUALS_TO
           
GREATER_THAN
           
HIGHER_THAN
          Deprecated. use GREATER_THAN instead.
IN
           
LESS_THAN
           
LIKE
           
LOWER_THAN
          Deprecated. use LESS_THAN instead.
 
Method Summary
static OperatorType convertOperatorType(String sqlType)
          Converts from SQL string literals to an OperatorType.
 String toSql()
           
static OperatorType valueOf(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

GREATER_THAN

public static final OperatorType GREATER_THAN

LESS_THAN

public static final OperatorType LESS_THAN

IN

public static final OperatorType IN

LOWER_THAN

@Deprecated
public static final OperatorType LOWER_THAN
Deprecated. use LESS_THAN instead.

HIGHER_THAN

@Deprecated
public static final OperatorType HIGHER_THAN
Deprecated. use GREATER_THAN instead.
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(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toSql

public String toSql()

convertOperatorType

public static OperatorType convertOperatorType(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-2013. All Rights Reserved.