public enum Constraints extends Enum<Constraints>
Enum Constant and Description |
---|
CHECK |
COLLATE |
DEFAULT |
NOT_NULL |
PRIMARY_KEY |
REFERENCES |
UNIQUE |
Modifier and Type | Method and Description |
---|---|
String |
getSql() |
boolean |
isForColumn() |
boolean |
isForTable() |
static Constraints |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Constraints[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constraints UNIQUE
public static final Constraints CHECK
public static final Constraints PRIMARY_KEY
public static final Constraints NOT_NULL
public static final Constraints DEFAULT
public static final Constraints COLLATE
public static final Constraints REFERENCES
public static Constraints[] values()
for (Constraints c : Constraints.values()) System.out.println(c);
public static Constraints 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()
public boolean isForTable()
public boolean isForColumn()
Copyright © 2015. All Rights Reserved.