public enum ConstraintType extends Enum<ConstraintType>
| Enum Constant and Description |
|---|
CHECK |
FOREIGN_KEY |
NONE |
PRIMARY_KEY |
UNIQUE |
| Modifier and Type | Method and Description |
|---|---|
static ConstraintType |
getTypeById(char id) |
static ConstraintType |
getTypeById(String string) |
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 FOREIGN_KEY
public static final ConstraintType PRIMARY_KEY
public static final ConstraintType UNIQUE
public static final ConstraintType NONE
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 getTypeById(char id)
public static ConstraintType getTypeById(String string)
Copyright © 2007–2017 Andreas W. Bartels. All rights reserved.