public enum ConstraintType extends Enum<ConstraintType>
Enum Constant and Description |
---|
CHECK
Check or Non Null.
|
PRIMARY
Primary key.
|
REFERENTIAL
Referential Integrity.
|
UNIQUE
Unique.
|
Modifier and Type | Method and Description |
---|---|
static ConstraintType |
fromString(String code)
Converts the supplied code to the corresponding enumerated value.
|
String |
getCode()
Gets the code for this enumerated 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 CHECK
public static final ConstraintType PRIMARY
public static final ConstraintType REFERENTIAL
public static final ConstraintType UNIQUE
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 String getCode()
public static ConstraintType fromString(String code)
code
- The code to convert.IllegalArgumentException
- When no enumerated value with the supplied code exists.Copyright © 2008–2018. All rights reserved.