public enum Comparator extends Enum<Comparator>
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:
supportsQuantifier()
. Example:
X = ANY (A, B, C)
supportsSubselect()
. Example:
X = (SELECT A)
Enum Constant and Description |
---|
EQUALS |
GREATER |
GREATER_OR_EQUAL |
IN |
IS_DISTINCT_FROM |
IS_NOT_DISTINCT_FROM |
LESS |
LESS_OR_EQUAL |
LIKE |
LIKE_IGNORE_CASE |
NOT_EQUALS |
NOT_IN |
NOT_LIKE |
NOT_LIKE_IGNORE_CASE |
NOT_SIMILAR_TO |
SIMILAR_TO |
Modifier and Type | Method and Description |
---|---|
Comparator |
inverse()
Get the inverse comparator such that
A [op] B and
NOT(A [inverse op] B) . |
Comparator |
mirror()
Get the mirrored comparator such that
A [op] B and
B [mirrored op] A , or null if the comparator
cannot be mirrored. |
boolean |
supportsQuantifier()
Deprecated.
- 3.14.0 - [#9911] - This method is no longer supported.
|
boolean |
supportsSubselect()
Deprecated.
- 3.14.0 - [#9911] - This method is no longer supported.
|
Keyword |
toKeyword()
A keyword rendition of this comparator.
|
String |
toSQL()
A SQL rendition of this comparator.
|
static Comparator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Comparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@NotNull @Support public static final Comparator IN
@NotNull @Support public static final Comparator NOT_IN
@NotNull @Support public static final Comparator EQUALS
@NotNull @Support public static final Comparator NOT_EQUALS
@NotNull @Support public static final Comparator LESS
@NotNull @Support public static final Comparator LESS_OR_EQUAL
@NotNull @Support public static final Comparator GREATER
@NotNull @Support public static final Comparator GREATER_OR_EQUAL
@NotNull @Support public static final Comparator IS_DISTINCT_FROM
@NotNull @Support public static final Comparator IS_NOT_DISTINCT_FROM
@NotNull @Support public static final Comparator LIKE
@NotNull @Support public static final Comparator NOT_LIKE
@NotNull @Support(value={FIREBIRD,POSTGRES}) public static final Comparator SIMILAR_TO
@NotNull @Support(value={FIREBIRD,POSTGRES}) public static final Comparator NOT_SIMILAR_TO
@NotNull @Support public static final Comparator LIKE_IGNORE_CASE
@NotNull @Support public static final Comparator NOT_LIKE_IGNORE_CASE
public static Comparator[] values()
for (Comparator c : Comparator.values()) System.out.println(c);
public static Comparator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toSQL()
public Keyword toKeyword()
public Comparator inverse()
A [op] B
and
NOT(A [inverse op] B)
.public Comparator mirror()
A [op] B
and
B [mirrored op] A
, or null
if the comparator
cannot be mirrored.@Deprecated public boolean supportsQuantifier()
@Deprecated public boolean supportsSubselect()
Copyright © 2021. All rights reserved.