public enum TableConstraintType extends Enum<TableConstraintType>
Java class for TableConstraintType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="TableConstraintType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="PRIMARY KEY"/> <enumeration value="UNIQUE"/> <enumeration value="CHECK"/> <enumeration value="FOREIGN KEY"/> </restriction> </simpleType>
Enum Constant and Description |
---|
CHECK |
FOREIGN_KEY |
PRIMARY_KEY |
UNIQUE |
Modifier and Type | Method and Description |
---|---|
static TableConstraintType |
fromValue(String v) |
String |
value() |
static TableConstraintType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TableConstraintType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TableConstraintType PRIMARY_KEY
public static final TableConstraintType UNIQUE
public static final TableConstraintType CHECK
public static final TableConstraintType FOREIGN_KEY
public static TableConstraintType[] values()
for (TableConstraintType c : TableConstraintType.values()) System.out.println(c);
public static TableConstraintType 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 value()
public static TableConstraintType fromValue(String v)
Copyright © 2019. All rights reserved.