Enum OperatorId
- All Implemented Interfaces:
ValueEnum
,Serializable
,Comparable<OperatorId>
,Constable
Criterion
when specifying AdvancedCriteria
. This list of operators indicates the set of operators built into Smart
GWT DataSources, which can be used for both client and server-side filtering. Some operators offer case-insensitive
versions, prefixed with a lower-case i, such as iContains
. Note that such operators are
intended for text-based searches and are not available to numeric or date fields (integer/float/date/datetime and
derivatives), where there is no use for case.
You can extend the list of operators with DataSource.addSearchOperator()
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionall subcriteria (criterion.criteria) are trueshortcut for "greaterThan" + "lessThan" + "and".shortcut for "greaterOrEqual" + "lessOrEqual" + "and".Contains as sub-string (match case)Contains as sub-string (match case) another field value (specify fieldName as criterion.value)GLOB matching using wildcards.Ends with (match case)Ends with (match case) another field value (specify fieldName as criterion.value)GLOB matching using wildcards.exactly equal tomatches another field (match case, specify fieldName as criterion.value)Greater than or equal toGreater than or equal to another field (specify fieldName as criterion.value)Greater thanGreater than another field (specify fieldName as criterion.value)shortcut for "greaterThan" + "and" + "lessThan" (case insensitive)shortcut for "greaterOrEqual" + "and" + "lessOrEqual" (case insensitive)Contains as sub-string (case insensitive)Contains as sub-string (case insensitive) another field value (specify fieldName as criterion.value)GLOB matching using wildcards.Ends with (case insensitive)Ends with (case insensitive) another field value (specify fieldName as criterion.value)GLOB matching using wildcards.Value is considered to meet the criterion if it ends with the pattern.exactly equal to, if case is disregardedmatches another field (case insensitive, specify fieldName as criterion.value)Basic GLOB matching using wildcards (case insensitive) (seeDataSource.translatePatternOperators
for more information on available patterns)value is in a set of values.Does not contain as sub-string (case insensitive)Does not contain as sub-string (case insensitive) another field value (specify fieldName as criterion.value)Does not end with (case insensitive)Does not end with (case insensitive) another field value (specify fieldName as criterion.value)not equal to, if case is disregardeddoes not match another field (case insensitive, specify fieldName as criterion.value)Does not start with (case insensitive)Does not start with (case insensitive) another field value (specify fieldName as criterion.value)Regular expression match (case insensitive) - regexp operator limitations apply.value is either null or the empty string.value is nullStarts with (case insensitive)Starts with (case insensitive) another field value (specify fieldName as criterion.value)GLOB matching using wildcards.Less than or equal toLess than or equal to another field (specify fieldName as criterion.value)Less than.Less than another field (specify fieldName as criterion.value)Basic GLOB matching using wildcards (seeDataSource.translatePatternOperators
for more information on available patterns)all subcriteria (criterion.criteria) are falsevalue is neither null nor the empty string ("")Does not contain as sub-string (match case)Does not contain as sub-string (match case) another field value (specify fieldName as criterion.value)Does not end with (match case)Does not end with (match case) another field value (specify fieldName as criterion.value)not equal todoes not match another field (match case, specify fieldName as criterion.value)value is not in a set of values.value is non-null.Does not start with (match case)Does not start with (match case) another field value (specify fieldName as criterion.value)at least one subcriteria (criterion.criteria) is trueRegular expression match - built-in SQL only, JPA and Hibernate do not support regexp operator.Starts with (match case)Starts with (match case) another field value (specify fieldName as criterion.value)GLOB matching using wildcards. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static OperatorId
Returns the enum constant of this type with the specified name.static OperatorId[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EQUALS
exactly equal toIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "equals". -
NOT_EQUAL
not equal toIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "notEqual". -
IEQUALS
exactly equal to, if case is disregardedIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iEquals". -
INOT_EQUAL
not equal to, if case is disregardedIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iNotEqual". -
GREATER_THAN
Greater thanIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "greaterThan". -
LESS_THAN
Less than. Note thatnull
is treated as equivalent to an arbitrarily small value, so null field values will always be returned bylessThan
/lessOrEqual
filter operations by default.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "lessThan". -
GREATER_OR_EQUAL
Greater than or equal toIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "greaterOrEqual". -
LESS_OR_EQUAL
Less than or equal toIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "lessOrEqual". -
CONTAINS
Contains as sub-string (match case)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "contains". -
STARTS_WITH
Starts with (match case)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "startsWith". -
ENDS_WITH
Ends with (match case)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "endsWith". -
ICONTAINS
Contains as sub-string (case insensitive)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iContains". -
ISTARTS_WITH
Starts with (case insensitive)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iStartsWith". -
IENDS_WITH
Ends with (case insensitive)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iEndsWith". -
NOT_CONTAINS
Does not contain as sub-string (match case)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "notContains". -
NOT_STARTS_WITH
Does not start with (match case)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "notStartsWith". -
NOT_ENDS_WITH
Does not end with (match case)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "notEndsWith". -
INOT_CONTAINS
Does not contain as sub-string (case insensitive)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iNotContains". -
INOT_STARTS_WITH
Does not start with (case insensitive)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iNotStartsWith". -
INOT_ENDS_WITH
Does not end with (case insensitive)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iNotEndsWith". -
IBETWEEN
shortcut for "greaterThan" + "and" + "lessThan" (case insensitive)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iBetween". -
IBETWEEN_INCLUSIVE
shortcut for "greaterOrEqual" + "and" + "lessOrEqual" (case insensitive)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iBetweenInclusive". -
MATCHES_PATTERN
Basic GLOB matching using wildcards (seeDataSource.translatePatternOperators
for more information on available patterns)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "matchesPattern". -
IMATCHES_PATTERN
Basic GLOB matching using wildcards (case insensitive) (seeDataSource.translatePatternOperators
for more information on available patterns)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iMatchesPattern". -
CONTAINS_PATTERN
GLOB matching using wildcards. Value is considered to meet the criterion if it contains the pattern. SeeDataSource.translatePatternOperators
for more information on available patterns)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "containsPattern". -
STARTS_WITH_PATTERN
GLOB matching using wildcards. Value is considered to meet the criterion if it starts with the pattern.SeeDataSource.translatePatternOperators
for more information on available patterns)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "startsWithPattern". -
ENDS_WITH_PATTERN
GLOB matching using wildcards. Value is considered to meet the criterion if it starts with the pattern.SeeDataSource.translatePatternOperators
for more information on available patterns)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "endsWithPattern". -
ICONTAINS_PATTERN
GLOB matching using wildcards. Value is considered to meet the criterion if it contains the pattern. Matching is case insensitive. SeeDataSource.translatePatternOperators
for more information on available patterns)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iContainsPattern". -
ISTARTS_WITH_PATTERN
GLOB matching using wildcards. Value is considered to meet the criterion if it starts with the pattern. Matching is case insensitive.SeeDataSource.translatePatternOperators
for more information on available patterns)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iStartsWithPattern". -
IENDS_WITH_PATTERN
GLOB matching using wildcards.Value is considered to meet the criterion if it ends with the pattern. Matching is case insensitive. SeeDataSource.translatePatternOperators
for more information on available patterns)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iEndsWithPattern". -
REGEXP
Regular expression match - built-in SQL only, JPA and Hibernate do not support regexp operator. Additionally, when using PostgreSQL, it is supported only starting from PostgreSQL version 9.3.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "regexp". -
IREGEXP
Regular expression match (case insensitive) - regexp operator limitations apply.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iregexp". -
IS_BLANK
value is either null or the empty string. For numeric fields it behaves as isNullIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "isBlank". -
NOT_BLANK
value is neither null nor the empty string ("")If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "notBlank". -
IS_NULL
value is nullIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "isNull". -
NOT_NULL
value is non-null. Note empty string ("") is non-nullIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "notNull". -
IN_SET
value is in a set of values. Specify criterion.value as an ArrayIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "inSet". -
NOT_IN_SET
value is not in a set of values. Specify criterion.value as an ArrayIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "notInSet". -
EQUALS_FIELD
matches another field (match case, specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "equalsField". -
NOT_EQUAL_FIELD
does not match another field (match case, specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "notEqualField". -
IEQUALS_FIELD
matches another field (case insensitive, specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iEqualsField". -
INOT_EQUAL_FIELD
does not match another field (case insensitive, specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iNotEqualField". -
GREATER_THAN_FIELD
Greater than another field (specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "greaterThanField". -
LESS_THAN_FIELD
Less than another field (specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "lessThanField". -
GREATER_OR_EQUAL_FIELD
Greater than or equal to another field (specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "greaterOrEqualField". -
LESS_OR_EQUAL_FIELD
Less than or equal to another field (specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "lessOrEqualField". -
CONTAINS_FIELD
Contains as sub-string (match case) another field value (specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "containsField". -
STARTS_WITH_FIELD
Starts with (match case) another field value (specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "startsWithField". -
ENDS_WITH_FIELD
Ends with (match case) another field value (specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "endsWithField". -
ICONTAINS_FIELD
Contains as sub-string (case insensitive) another field value (specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iContainsField". -
ISTARTS_WITH_FIELD
Starts with (case insensitive) another field value (specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iStartsWithField". -
IENDS_WITH_FIELD
Ends with (case insensitive) another field value (specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iEndsWithField". -
NOT_CONTAINS_FIELD
Does not contain as sub-string (match case) another field value (specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "notContainsField". -
NOT_STARTS_WITH_FIELD
Does not start with (match case) another field value (specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "notStartsWithField". -
NOT_ENDS_WITH_FIELD
Does not end with (match case) another field value (specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "notEndsWithField". -
INOT_CONTAINS_FIELD
Does not contain as sub-string (case insensitive) another field value (specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iNotContainsField". -
INOT_STARTS_WITH_FIELD
Does not start with (case insensitive) another field value (specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iNotStartsWithField". -
INOT_ENDS_WITH_FIELD
Does not end with (case insensitive) another field value (specify fieldName as criterion.value)If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "iNotEndsWithField". -
AND
all subcriteria (criterion.criteria) are trueIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "and". -
NOT
all subcriteria (criterion.criteria) are falseIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "not". -
OR
at least one subcriteria (criterion.criteria) is trueIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "or". -
BETWEEN
shortcut for "greaterThan" + "lessThan" + "and". Specify criterion.start and criterion.endIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "between". -
BETWEEN_INCLUSIVE
shortcut for "greaterOrEqual" + "lessOrEqual" + "and". Specify criterion.start and criterion.endIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "betweenInclusive".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-
getValue
-