Enum Class SQLConjunctiveOperator
java.lang.Object
java.lang.Enum<SQLConjunctiveOperator>
com.github.tadukoo.database.mysql.syntax.conditional.SQLConjunctiveOperator
- All Implemented Interfaces:
Serializable
,Comparable<SQLConjunctiveOperator>
,Constable
SQL Conjunctive Operator represents operators that join conditional statements together.
- 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
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
SQLConjunctiveOperator
(String operator) Constructs a new SQLConjunctiveOperator using the given parameters -
Method Summary
Modifier and TypeMethodDescriptionstatic SQLConjunctiveOperator
fromString
(String operator) Searches for an operator that matches the given operator stringtoString()
static SQLConjunctiveOperator
Returns the enum constant of this class with the specified name.static SQLConjunctiveOperator[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AND
Both statements must be true (AND
) -
OR
Either statement could be true (OR
)
-
-
Field Details
-
operator
The operator string
-
-
Constructor Details
-
SQLConjunctiveOperator
Constructs a new SQLConjunctiveOperator using 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
Searches for an operator that matches the given operator string- Parameters:
operator
- The operator string to match on- Returns:
- The found operator, or null if none could be found
-
toString
- Overrides:
toString
in classEnum<SQLConjunctiveOperator>
-