Enum Class SQLColumnOperation
- All Implemented Interfaces:
Serializable
,Comparable<SQLColumnOperation>
,Constable
SQLColumnOperation represents an operation that can be performed on a column 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
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
SQLColumnOperation
(String type) Constructs a newSQLColumnOperation
from the given parameters -
Method Summary
Modifier and TypeMethodDescriptionstatic SQLColumnOperation
Find aSQLColumnOperation
by its type stringtoString()
static SQLColumnOperation
Returns the enum constant of this class with the specified name.static SQLColumnOperation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD
Add a new column - ADD -
MODIFY
Modify an existing column - MODIFY COLUMN -
DROP
Drop an existing column - DROP COLUMN
-
-
Field Details
-
type
The type string
-
-
Constructor Details
-
SQLColumnOperation
Constructs a newSQLColumnOperation
from the given parameters- Parameters:
type
- The type 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
-
fromType
Find aSQLColumnOperation
by its type string- Parameters:
type
- The type string- Returns:
- The found
SQLColumnOperation
or null
-
toString
- Overrides:
toString
in classEnum<SQLColumnOperation>
-