- All Implemented Interfaces:
Serializable,Comparable<WurbletArgumentOperator>,Constable
Logical operator for
WurbletArgumentExpression.- Author:
- harald
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetSql()Gets the Backend.SQL_... code.getText()Gets the sql text.static WurbletArgumentOperatortoInternal(String str) Determines the operator from a string.
Case doesn't matter.toString()static WurbletArgumentOperatorReturns the enum constant of this class with the specified name.static WurbletArgumentOperator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AND
logical AND. -
OR
logical OR. -
NOT
logical NOT at the beginning of an expression. -
ANDNOT
AND NOT combined as a single pseudo-operator. -
ORNOT
OR NOT combined as a single pseudo-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
-
getText
Gets the sql text.- Returns:
- the text
-
getSql
Gets the Backend.SQL_... code.- Returns:
- the code to use in generated Java SQL code
-
toString
- Overrides:
toStringin classEnum<WurbletArgumentOperator>
-
toInternal
Determines the operator from a string.
Case doesn't matter.- Parameters:
str- the string- Returns:
- the operator, null if not an operator
-