- All Implemented Interfaces:
Serializable
,Comparable<Comparator>
,Constable
A comparator to be used in conditions to form comparison predicates.
Comparison operators listed here can be used to compare Field
or
Row
values with other Field
or Row
values, or with
Select
or QuantifiedSelect
values.
The following flags indicate whether the comparator can be used as:
- a quantified comparison operator:
supportsQuantifier()
. Example:X = ANY (A, B, C)
- a subselect comparison operator:
supportsSubselect()
. Example:X = (SELECT A)
- Author:
- Lukas Eder
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptioninverse()
Get the inverse comparator such thatA [op] B
andNOT(A [inverse op] B)
.mirror()
Get the mirrored comparator such thatA [op] B
andB [mirrored op] A
, ornull
if the comparator cannot be mirrored.final boolean
Deprecated, for removal: This API element is subject to removal in a future version.- 3.14.0 - [#9911] - This method is no longer supported.boolean
Deprecated, for removal: This API element is subject to removal in a future version.- 3.14.0 - [#9911] - This method is no longer supported.boolean
Deprecated, for removal: This API element is subject to removal in a future version.- 3.14.0 - [#9911] - This method is no longer supported.A keyword rendition of this comparator.toSQL()
A SQL rendition of this comparator.static Comparator
Returns the enum constant of this class with the specified name.static Comparator[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IN
-
NOT_IN
-
EQUALS
-
NOT_EQUALS
-
LESS
-
LESS_OR_EQUAL
-
GREATER
-
GREATER_OR_EQUAL
-
IS_DISTINCT_FROM
-
IS_NOT_DISTINCT_FROM
-
LIKE
-
NOT_LIKE
-
SIMILAR_TO
-
NOT_SIMILAR_TO
-
LIKE_IGNORE_CASE
-
NOT_LIKE_IGNORE_CASE
-
-
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
-
toSQL
A SQL rendition of this comparator. -
toKeyword
A keyword rendition of this comparator. -
inverse
Get the inverse comparator such thatA [op] B
andNOT(A [inverse op] B)
. -
mirror
Get the mirrored comparator such thatA [op] B
andB [mirrored op] A
, ornull
if the comparator cannot be mirrored. -
supportsNulls
Deprecated, for removal: This API element is subject to removal in a future version.- 3.14.0 - [#9911] - This method is no longer supported.Whether this comparator supports quantifiers on the right-hand side. -
supportsQuantifier
Deprecated, for removal: This API element is subject to removal in a future version.- 3.14.0 - [#9911] - This method is no longer supported.Whether this comparator supports quantifiers on the right-hand side. -
supportsSubselect
Deprecated, for removal: This API element is subject to removal in a future version.- 3.14.0 - [#9911] - This method is no longer supported.Whether this comparator supports subselects on the right-hand side.
-