Enum Class ComparisonOperator
- All Implemented Interfaces:
Serializable, Comparable<ComparisonOperator>, Constable
RSQL 比較運算子列舉。
定義了 RSQL 查詢語法中支援的所有比較運算子,包含:
- 相等性比較:
EQUAL、NOT_EQUAL - 大小比較:
GREATER_THAN、GREATER_THAN_OR_EQUAL、LESS_THAN、LESS_THAN_OR_EQUAL - 集合操作:
IN、NOT_IN、HAS - 範圍比較:
BETWEEN - 空值檢查:
IS、IS_NOT
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription區間運算子 (=between=),用於範圍查詢等於運算子 (==)大於運算子 (>)大於或等於運算子 (>=)包含運算子 (=has=),用於檢查集合是否包含特定元素包含於集合運算子 (=in=)是運算子 (=is=),用於空值檢查不是運算子 (=isnt=),用於非空值檢查小於運算子 (<)小於或等於運算子 (<=)不等於運算子 (!=)不包含於集合運算子 (=out=) -
Method Summary
Modifier and TypeMethodDescriptionstatic ComparisonOperatorReturns the enum constant of this class with the specified name.static ComparisonOperator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EQUAL
等於運算子 (==) -
NOT_EQUAL
不等於運算子 (!=) -
GREATER_THAN
大於運算子 (>) -
GREATER_THAN_OR_EQUAL
大於或等於運算子 (>=) -
LESS_THAN
小於運算子 (<) -
LESS_THAN_OR_EQUAL
小於或等於運算子 (<=) -
IN
包含於集合運算子 (=in=) -
NOT_IN
不包含於集合運算子 (=out=) -
HAS
包含運算子 (=has=),用於檢查集合是否包含特定元素 -
BETWEEN
區間運算子 (=between=),用於範圍查詢 -
IS
是運算子 (=is=),用於空值檢查 -
IS_NOT
不是運算子 (=isnt=),用於非空值檢查
-
-
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
-