Enum Class SQLOperator
- All Implemented Interfaces:
Serializable
,Comparable<SQLOperator>
,Constable
SQL Operator represents a conditional operator in MySQL
- Version:
- Alpha v.0.3
- Author:
- Logan Ferree (Tadukoo)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBetween a given range (BETWEEN
)Equal to (=
)Greater Than (>
)Greater Than or Equal To (>=
)To specify multiple possible values for a column (IN
)Less Than (<
)Less Than or Equal To (<=
)Search for a pattern (LIKE
)Not Equal to (!=
) -
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
SQLOperator
(String operator) Constructs a newSQLOperator
with the given parameters -
Method Summary
Modifier and TypeMethodDescriptionstatic SQLOperator
fromString
(String operator) Grab aSQLOperator
using the given string to match on the operator stringtoString()
static SQLOperator
Returns 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
-
EQUAL
Equal to (=
) -
NOT_EQUAL
Not Equal to (!=
) -
GREATER_THAN
Greater Than (>
) -
LESS_THAN
Less Than (<
) -
GREATER_THAN_OR_EQUAL
Greater Than or Equal To (>=
) -
LESS_THAN_OR_EQUAL
Less Than or Equal To (<=
) -
BETWEEN
Between a given range (BETWEEN
) -
LIKE
Search for a pattern (LIKE
) -
IN
To specify multiple possible values for a column (IN
)
-
-
Field Details
-
operator
The operator string
-
-
Constructor Details
-
SQLOperator
Constructs a newSQLOperator
with the given parameters- Parameters:
operator
- The operator string
-
-
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
-
fromString
Grab aSQLOperator
using the given string to match on the operator string- Parameters:
operator
- The operator string to match on- Returns:
- The found
SQLOperator
, or null if none was found
-
toString
- Overrides:
toString
in classEnum<SQLOperator>
-