public enum Action extends Enum<Action>
Enum Constant and Description |
---|
CASCADE |
NO_ACTION |
RESTRICT |
SET_DEFAULT |
SET_NULL |
Modifier and Type | Method and Description |
---|---|
String |
getSql() |
static Action |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Action NO_ACTION
public static final Action RESTRICT
public static final Action SET_NULL
public static final Action SET_DEFAULT
public static final Action CASCADE
public static Action[] values()
for (Action c : Action.values()) System.out.println(c);
public static Action valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getSql()
Copyright © 2015. All Rights Reserved.