Enum Class QueryComposer.Comparator
java.lang.Object
java.lang.Enum<QueryComposer.Comparator>
google.registry.persistence.transaction.QueryComposer.Comparator
- All Implemented Interfaces:
Serializable
,Comparable<QueryComposer.Comparator>
,Constable
- Enclosing class:
QueryComposer<T>
Enum used to specify comparison operations, e.g.
where("fieldName", Comparator.NE,
"someval")'
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionReturn only records whose field is equal to the value.Return only records whose field is greater than the value.Return only records whose field is greater than or equal to the value.Return only records whose field matches the pattern.Return only records whose field is less than the value.Return only records whose field is less than or equal to the value. -
Method Summary
Modifier and TypeMethodDescriptionFunction
<jakarta.persistence.criteria.CriteriaBuilder, CriteriaQueryBuilder.WhereOperator<?>> static QueryComposer.Comparator
Returns the enum constant of this class with the specified name.static QueryComposer.Comparator[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EQ
Return only records whose field is equal to the value. -
LT
Return only records whose field is less than the value. -
LTE
Return only records whose field is less than or equal to the value. -
GTE
Return only records whose field is greater than or equal to the value. -
GT
Return only records whose field is greater than the value. -
LIKE
Return only records whose field matches the pattern.
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException
- if the argument is null
-
getComparisonFactory
public Function<jakarta.persistence.criteria.CriteriaBuilder,CriteriaQueryBuilder.WhereOperator<?>> getComparisonFactory()
-