Enum Class SqlOperator
- All Implemented Interfaces:
Serializable,Comparable<SqlOperator>,Constable
Enum about possible
SQL operators.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSqlOperatorabout the= ...operator.SqlOperatorabout the>operator.SqlOperatorabout the>=operator.SqlOperatorabout thein (...)operator.SqlOperatorabout the<operator.SqlOperatorabout the<=operator.SqlOperatorabout thelike '...'operator.SqlOperatorabout the!= ...operator.SqlOperatorabout thenot in (...)operator.SqlOperatorabout theis not nulloperator.SqlOperatorabout theis nulloperator. -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<SqlOperator> getCode()Returns aStringabout theSqlOperatorcodeReturns aStringuseful for filtering a filter parameter associated with thisSqlOperator.getLabel()Returns aStringabout the human-readable label for UI display.Returns aStringabout the relatedSQLclause.static SqlOperatorReturns the enum constant of this class with the specified name.static SqlOperator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IS_GREATER_THAN
SqlOperatorabout the>operator. -
IS_GREATER_THAN_OR_EQUAL_TO
SqlOperatorabout the>=operator. -
IS_LESS_THAN
SqlOperatorabout the<operator. -
IS_LESS_THAN_OR_EQUAL_TO
SqlOperatorabout the<=operator. -
IS_NULL
SqlOperatorabout theis nulloperator. -
IS_NOT_NULL
SqlOperatorabout theis not nulloperator. -
IS_NOT_EQUAL_TO
SqlOperatorabout the!= ...operator. -
IS_LIKE
SqlOperatorabout thelike '...'operator. -
IS_IN
SqlOperatorabout thein (...)operator. -
IS_NOT_IN
SqlOperatorabout thenot in (...)operator. -
IS_EQUAL_TO
SqlOperatorabout the= ...operator.
-
-
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
-
getCode
Returns aStringabout theSqlOperatorcode- Returns:
- a
Stringabout theSqlOperatorcode
-
getSqlClause
Returns aStringabout the relatedSQLclause.- Returns:
- a
Stringabout the relatedSQLclause.
-
getLabel
Returns aStringabout the human-readable label for UI display.- Returns:
- a
Stringabout the human-readable label for UI display.
-
getFilterRegex
Returns aStringuseful for filtering a filter parameter associated with thisSqlOperator.- Returns:
- a
Stringuseful for filtering a filter parameter associated with thisSqlOperator.
-
fromCode
- Parameters:
code-Stringabout thecodefilter.- Returns:
- a
Optional<SqlOperator> associated to the providedcode; orOptional.empty()otherwise.
-