public enum ForeignKeyStrategy extends Enum<ForeignKeyStrategy>
| Enum Constant and Description |
|---|
CASCADE
Modifies the records in cascade.
|
NO_ACTION
Does not allow the modification.
|
SET_DEFAULT
Set the foreign columns to the default value they have.
|
SET_NULL
Set the foreign columns to null.
|
| Modifier and Type | Method and Description |
|---|---|
static ForeignKeyStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ForeignKeyStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ForeignKeyStrategy NO_ACTION
public static final ForeignKeyStrategy CASCADE
public static final ForeignKeyStrategy SET_NULL
public static final ForeignKeyStrategy SET_DEFAULT
public static ForeignKeyStrategy[] values()
for (ForeignKeyStrategy c : ForeignKeyStrategy.values()) System.out.println(c);
public static ForeignKeyStrategy 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 nullCopyright © 2015–2018 Bridje Framework. All rights reserved.