Package org.keycloak.models.map.storage
Enum Class ModelCriteriaBuilder.Operator
java.lang.Object
java.lang.Enum<ModelCriteriaBuilder.Operator>
org.keycloak.models.map.storage.ModelCriteriaBuilder.Operator
- All Implemented Interfaces:
- Serializable,- Comparable<ModelCriteriaBuilder.Operator>,- Constable
- Enclosing interface:
- ModelCriteriaBuilder<M,Self extends ModelCriteriaBuilder<M, Self>> 
The operators are very basic ones for this use case. In the real scenario,
 new operators can be added, possibly with different arity, e.g. 
IN.
 The ModelCriteriaBuilder.compare(org.keycloak.storage.SearchableModelField<? super M>, org.keycloak.models.map.storage.ModelCriteriaBuilder.Operator, java.lang.Object...) method would need an adjustment
 then, likely to taky vararg value instead of single value as it
 is now.- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionEquals toIs not null and, in addition, in case of collection not emptyGreater than or equalGreater thanSimilar to SQL case-insensitive LIKE.Operator for belonging into a collection of values.Less than or equalSimilar to SQL case-sensitive LIKE Whole string is matched.Less thanNot equals toIs null or, in addition, in case of collection empty
- 
Method SummaryModifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ModelCriteriaBuilder.Operator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
EQEquals to
- 
NENot equals to
- 
LTLess than
- 
LELess than or equal
- 
GTGreater than
- 
GEGreater than or equal
- 
LIKESimilar to SQL case-sensitive LIKE Whole string is matched. Percent sign means "any characters", question mark means "any single character":- field LIKE "abc"means value of the field- fieldmust match exactly- abc
- field LIKE "abc%"means value of the field- fieldmust start with- abc
- field LIKE "%abc"means value of the field- fieldmust end with- abc
- field LIKE "%abc%"means value of the field- fieldmust contain- abc
 
- 
ILIKESimilar to SQL case-insensitive LIKE. Whole string is matched. Percent sign means "any characters", question mark means "any single character":- field ILIKE "abc"means value of the field- fieldmust match exactly- abc,- ABC,- aBcetc.
- field ILIKE "abc%"means value of the field- fieldmust start with- abc,- ABC,- aBcetc.
- field ILIKE "%abc"means value of the field- fieldmust end with- abc,- ABC,- aBcetc.
- field ILIKE "%abc%"means value of the field- fieldmust contain- abc,- ABC,- aBcetc.
 
- 
INOperator for belonging into a collection of values. Operand invaluecan be an array (via an implicit conversion of the vararg), aCollectionor aStream.
- 
EXISTSIs not null and, in addition, in case of collection not empty
- 
NOT_EXISTSIs null or, in addition, in case of collection empty
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-