public enum Condition extends Enum<Condition>
| Enum Constant and Description |
|---|
AND |
BETWEEN |
EQUALS |
GREATER_EQUALS_THAN |
GREATER_THAN |
IN |
LESSER_EQUALS_THAN |
LESSER_THAN |
LIKE |
NOT |
OR |
| Modifier and Type | Method and Description |
|---|---|
String |
getNameField()
Return tne field as name to both document and column.
|
static Condition |
parse(String condition)
Retrieve the condition from
getNameField() on case sentive |
static Condition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Condition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Condition EQUALS
public static final Condition GREATER_THAN
public static final Condition GREATER_EQUALS_THAN
public static final Condition LESSER_THAN
public static final Condition LESSER_EQUALS_THAN
public static final Condition IN
public static final Condition LIKE
public static final Condition AND
public static final Condition OR
public static final Condition NOT
public static final Condition BETWEEN
public static Condition[] values()
for (Condition c : Condition.values()) System.out.println(c);
public static Condition 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 String getNameField()
Enum.name()
So, call this method on EQUALS will return "_EQUALS"public static Condition parse(String condition)
getNameField() on case sentivecondition - the condition converted to fieldNullPointerException - when condition is nullIllegalArgumentException - when the condition is not foundCopyright © 2017–2019 Eclipse Foundation. All rights reserved.