public static enum SQLForeignKey.Rule extends Enum<SQLForeignKey.Rule>
| Enum Constant and Description |
|---|
CASCADE |
NO_ACTION |
RESTRICT |
SET_DEFAULT |
SET_NULL |
| Modifier and Type | Method and Description |
|---|---|
static SQLForeignKey.Rule |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SQLForeignKey.Rule[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SQLForeignKey.Rule SET_DEFAULT
public static final SQLForeignKey.Rule RESTRICT
public static final SQLForeignKey.Rule SET_NULL
public static final SQLForeignKey.Rule CASCADE
public static final SQLForeignKey.Rule NO_ACTION
public static SQLForeignKey.Rule[] values()
for (SQLForeignKey.Rule c : SQLForeignKey.Rule.values()) System.out.println(c);
public static SQLForeignKey.Rule 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 © 2018. All rights reserved.