|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<PropertyValueComparator>
com.flexive.shared.search.query.PropertyValueComparator
public enum PropertyValueComparator
Supported value comparators for FxValues.
| Enum Constant Summary | |
|---|---|
EMPTY
|
|
EQ
|
|
GE
|
|
GT
|
|
IN
|
|
LE
|
|
LIKE
|
|
LT
|
|
NE
|
|
NOT_EMPTY
|
|
NOT_IN
|
|
| Method Summary | |
|---|---|
static PropertyValueComparator |
forComparison(java.lang.String comparison)
Return the value comparator for the given comparison operator ("=", ">=", ...") |
static java.util.List<PropertyValueComparator> |
getAvailable(FxDataType dataType)
Returns a list of value comparators applicable to the given data type. |
FxString |
getLabel()
Return the label to be displayed to the user. |
java.lang.String |
getSql(FxAssignment assignment,
FxValue value)
|
java.lang.String |
getSql(FxProperty property,
FxValue value)
|
java.lang.String |
getSql(java.lang.String columnName,
FxValue value)
|
java.lang.String |
getSql(java.lang.String columnName,
java.lang.Object value)
|
protected java.lang.String |
getSql(java.lang.String leftHandSide,
java.lang.String rightHandSide)
Returns the SQL expression generated by combining both parameters with this comparator. |
boolean |
isNeedsInput()
Returns true if the comparator needs a value ("right-hand-side"). |
static PropertyValueComparator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PropertyValueComparator[] |
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 |
|---|
public static final PropertyValueComparator EQ
public static final PropertyValueComparator NE
public static final PropertyValueComparator LT
public static final PropertyValueComparator LE
public static final PropertyValueComparator GT
public static final PropertyValueComparator GE
public static final PropertyValueComparator EMPTY
public static final PropertyValueComparator NOT_EMPTY
public static final PropertyValueComparator LIKE
public static final PropertyValueComparator IN
public static final PropertyValueComparator NOT_IN
| Method Detail |
|---|
public static PropertyValueComparator[] values()
for (PropertyValueComparator c : PropertyValueComparator.values()) System.out.println(c);
public static PropertyValueComparator valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static PropertyValueComparator forComparison(java.lang.String comparison)
comparison - the comparison operator
public final java.lang.String getSql(FxAssignment assignment,
FxValue value)
public final java.lang.String getSql(FxProperty property,
FxValue value)
public final java.lang.String getSql(java.lang.String columnName,
FxValue value)
public final java.lang.String getSql(java.lang.String columnName,
java.lang.Object value)
protected java.lang.String getSql(java.lang.String leftHandSide,
java.lang.String rightHandSide)
leftHandSide - the left-hand-side of the comparisonrightHandSide - the right-hand-side of the comparison
public boolean isNeedsInput()
isNeedsInput in interface ValueComparatorpublic FxString getLabel()
getLabel in interface ObjectWithLabelgetLabel in interface ValueComparatorpublic static java.util.List<PropertyValueComparator> getAvailable(FxDataType dataType)
dataType - the data type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||