- java.lang.Object
-
- java.lang.Enum<AlterOperation>
-
- net.sf.jsqlparser.statement.alter.AlterOperation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AlterOperation>
public enum AlterOperation extends java.lang.Enum<AlterOperation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD
ADD_PARTITION
ALGORITHM
ALTER
CHANGE
COMMENT
COMMENT_WITH_EQUAL_SIGN
CONVERT
DROP
DROP_FOREIGN_KEY
DROP_PARTITION
DROP_PRIMARY_KEY
DROP_UNIQUE
ENGINE
FORCE
LOCK
MODIFY
RENAME
RENAME_CONSTRAINT
RENAME_INDEX
RENAME_KEY
RENAME_TABLE
SET_TABLE_OPTION
TRUNCATE_PARTITION
UNSPECIFIC
-
Constructor Summary
Constructors Modifier Constructor Description private
AlterOperation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AlterOperation
from(java.lang.String operation)
static AlterOperation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AlterOperation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final AlterOperation ADD
-
ALTER
public static final AlterOperation ALTER
-
DROP
public static final AlterOperation DROP
-
DROP_PRIMARY_KEY
public static final AlterOperation DROP_PRIMARY_KEY
-
DROP_UNIQUE
public static final AlterOperation DROP_UNIQUE
-
DROP_FOREIGN_KEY
public static final AlterOperation DROP_FOREIGN_KEY
-
MODIFY
public static final AlterOperation MODIFY
-
CHANGE
public static final AlterOperation CHANGE
-
CONVERT
public static final AlterOperation CONVERT
-
ALGORITHM
public static final AlterOperation ALGORITHM
-
RENAME
public static final AlterOperation RENAME
-
RENAME_TABLE
public static final AlterOperation RENAME_TABLE
-
RENAME_INDEX
public static final AlterOperation RENAME_INDEX
-
RENAME_KEY
public static final AlterOperation RENAME_KEY
-
RENAME_CONSTRAINT
public static final AlterOperation RENAME_CONSTRAINT
-
COMMENT
public static final AlterOperation COMMENT
-
COMMENT_WITH_EQUAL_SIGN
public static final AlterOperation COMMENT_WITH_EQUAL_SIGN
-
UNSPECIFIC
public static final AlterOperation UNSPECIFIC
-
ADD_PARTITION
public static final AlterOperation ADD_PARTITION
-
DROP_PARTITION
public static final AlterOperation DROP_PARTITION
-
TRUNCATE_PARTITION
public static final AlterOperation TRUNCATE_PARTITION
-
SET_TABLE_OPTION
public static final AlterOperation SET_TABLE_OPTION
-
ENGINE
public static final AlterOperation ENGINE
-
FORCE
public static final AlterOperation FORCE
-
LOCK
public static final AlterOperation LOCK
-
-
Method Detail
-
values
public static AlterOperation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AlterOperation c : AlterOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlterOperation valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
from
public static AlterOperation from(java.lang.String operation)
-
-