public enum ConstraintType extends Enum<ConstraintType>
| Enum Constant and Description |
|---|
CHECK
Check table and column constraint
|
COLLATE
Collate column constraint
|
DEFAULT
Default column constraint
|
FOREIGN_KEY
Foreign key table and column constraint
|
NOT_NULL
Not null column constraint
|
PRIMARY_KEY
Primary key table and column constraint
|
UNIQUE
Unique table and column constraint
|
| Modifier and Type | Field and Description |
|---|---|
static Set<ConstraintType> |
COLUMN_CONSTRAINTS
Column constraints
|
static Set<ConstraintType> |
TABLE_CONSTRAINTS
Table constraints
|
| Modifier and Type | Method and Description |
|---|---|
static ConstraintType |
getColumnType(String value)
Get a matching column constraint type from the value
|
static ConstraintType |
getTableType(String value)
Get a matching table constraint type from the value
|
static ConstraintType |
getType(String value)
Get a matching constraint type from the value
|
static ConstraintType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConstraintType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConstraintType PRIMARY_KEY
public static final ConstraintType UNIQUE
public static final ConstraintType CHECK
public static final ConstraintType FOREIGN_KEY
public static final ConstraintType NOT_NULL
public static final ConstraintType DEFAULT
public static final ConstraintType COLLATE
public static final Set<ConstraintType> TABLE_CONSTRAINTS
public static final Set<ConstraintType> COLUMN_CONSTRAINTS
public static ConstraintType[] values()
for (ConstraintType c : ConstraintType.values()) System.out.println(c);
public static ConstraintType 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 static ConstraintType getTableType(String value)
value - table constraint name valuepublic static ConstraintType getColumnType(String value)
value - column constraint name valuepublic static ConstraintType getType(String value)
value - constraint name valueCopyright © 2019 National Geospatial-Intelligence Agency. All rights reserved.