Enum SQLForeignKeyImpl.Option
- java.lang.Object
-
- java.lang.Enum<SQLForeignKeyImpl.Option>
-
- com.alibaba.druid.sql.ast.statement.SQLForeignKeyImpl.Option
-
- All Implemented Interfaces:
Serializable,Comparable<SQLForeignKeyImpl.Option>
- Enclosing class:
- SQLForeignKeyImpl
public static enum SQLForeignKeyImpl.Option extends Enum<SQLForeignKeyImpl.Option>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CASCADENO_ACTIONRESTRICTSET_DEFAULTSET_NULL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetText()static SQLForeignKeyImpl.OptionvalueOf(String name)Returns the enum constant of this type with the specified name.static SQLForeignKeyImpl.Option[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESTRICT
public static final SQLForeignKeyImpl.Option RESTRICT
-
CASCADE
public static final SQLForeignKeyImpl.Option CASCADE
-
SET_NULL
public static final SQLForeignKeyImpl.Option SET_NULL
-
NO_ACTION
public static final SQLForeignKeyImpl.Option NO_ACTION
-
SET_DEFAULT
public static final SQLForeignKeyImpl.Option SET_DEFAULT
-
-
Method Detail
-
values
public static SQLForeignKeyImpl.Option[] 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 (SQLForeignKeyImpl.Option c : SQLForeignKeyImpl.Option.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SQLForeignKeyImpl.Option valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getText
public String getText()
-
-