Package net.sf.jsqlparser.statement
Enum ReferentialAction.Action
- java.lang.Object
-
- java.lang.Enum<ReferentialAction.Action>
-
- net.sf.jsqlparser.statement.ReferentialAction.Action
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ReferentialAction.Action>
- Enclosing class:
- ReferentialAction
public static enum ReferentialAction.Action extends java.lang.Enum<ReferentialAction.Action>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CASCADE
NO_ACTION
RESTRICT
SET_DEFAULT
SET_NULL
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
action
-
Constructor Summary
Constructors Modifier Constructor Description private
Action(java.lang.String action)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReferentialAction.Action
from(java.lang.String action)
java.lang.String
getAction()
static ReferentialAction.Action
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ReferentialAction.Action[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CASCADE
public static final ReferentialAction.Action CASCADE
-
RESTRICT
public static final ReferentialAction.Action RESTRICT
-
NO_ACTION
public static final ReferentialAction.Action NO_ACTION
-
SET_DEFAULT
public static final ReferentialAction.Action SET_DEFAULT
-
SET_NULL
public static final ReferentialAction.Action SET_NULL
-
-
Method Detail
-
values
public static ReferentialAction.Action[] 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 (ReferentialAction.Action c : ReferentialAction.Action.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReferentialAction.Action 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 ReferentialAction.Action from(java.lang.String action)
- Parameters:
action
-- Returns:
- the
ReferentialAction.Action
, if found, otherwisenull
-
getAction
public java.lang.String getAction()
-
-