public static enum Constraint.Type extends java.lang.Enum<Constraint.Type>
| Enum Constant and Description |
|---|
CHECK
The constraint type for check constraints.
|
PRIMARY_KEY
The constraint type for primary key constraints.
|
REFERENTIAL
The constraint type for referential constraints.
|
UNIQUE
The constraint type for unique constraints.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getSqlName()
Get standard SQL type name.
|
static Constraint.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Constraint.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constraint.Type CHECK
public static final Constraint.Type PRIMARY_KEY
public static final Constraint.Type UNIQUE
public static final Constraint.Type REFERENTIAL
public static Constraint.Type[] values()
for (Constraint.Type c : Constraint.Type.values()) System.out.println(c);
public static Constraint.Type valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getSqlName()