public enum ReferenceOption extends Enum<ReferenceOption>
| Enum Constant and Description |
|---|
CASCADE
Delete or update the row from the parent table, and automatically delete or update the matching rows
in the child table.
|
NO_ACTION
Same as
RESTRICT |
NONE
No action is specified in the ON DELETE or ON UPDATE clause.
|
RESTRICT
Rejects the delete or update operation for the parent table.
|
SET_NULL
Delete or update the row from the parent table, and set the foreign key column or columns in the
child table to NULL.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static ReferenceOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReferenceOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReferenceOption NONE
public static final ReferenceOption RESTRICT
public static final ReferenceOption CASCADE
public static final ReferenceOption SET_NULL
public static final ReferenceOption NO_ACTION
RESTRICTpublic static ReferenceOption[] values()
for (ReferenceOption c : ReferenceOption.values()) System.out.println(c);
public static ReferenceOption 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 toString()
toString in class Enum<ReferenceOption>Copyright © 2017, Petr Panteleyev