public enum OperatorType extends Enum<OperatorType>
FilterItem
Enum Constant and Description |
---|
DIFFERENT_FROM |
EQUALS_TO |
GREATER_THAN |
GREATER_THAN_OR_EQUAL |
IN |
LESS_THAN |
LESS_THAN_OR_EQUAL |
LIKE |
Modifier and Type | Method and Description |
---|---|
static OperatorType |
convertOperatorType(String sqlType)
Converts from SQL string literals to an OperatorType.
|
boolean |
isSpaceDelimited()
Determines if this operator requires a space delimitor.
|
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.
|
public static final OperatorType EQUALS_TO
public static final OperatorType DIFFERENT_FROM
public static final OperatorType LIKE
public static final OperatorType GREATER_THAN
public static final OperatorType GREATER_THAN_OR_EQUAL
public static final OperatorType LESS_THAN
public static final OperatorType LESS_THAN_OR_EQUAL
public static final OperatorType IN
public static OperatorType[] values()
for (OperatorType c : OperatorType.values()) System.out.println(c);
public static OperatorType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic boolean isSpaceDelimited()
public String toSql()
public static OperatorType convertOperatorType(String sqlType)
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.