public static enum Constraint.Type extends Enum<Constraint.Type>
| 枚举常量和说明 |
|---|
CHECK
The constraint type for check constraints.
|
DOMAIN
The constraint type for domain constraints.
|
PRIMARY_KEY
The constraint type for primary key constraints.
|
REFERENTIAL
The constraint type for referential constraints.
|
UNIQUE
The constraint type for unique constraints.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getSqlName()
Get standard SQL type name.
|
static Constraint.Type |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Constraint.Type[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Constraint.Type CHECK
public static final Constraint.Type PRIMARY_KEY
public static final Constraint.Type UNIQUE
public static final Constraint.Type REFERENTIAL
public static final Constraint.Type DOMAIN
public static Constraint.Type[] values()
for (Constraint.Type c : Constraint.Type.values()) System.out.println(c);
public static Constraint.Type valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getSqlName()
Copyright © 2022. All rights reserved.