public enum ColumnProperty extends java.lang.Enum<ColumnProperty>
Enum Constant and Description |
---|
AutoIncrement
The column should be either auto-incrementing, or linked to a sequence through a trigger, depending on the db.
|
Indexed
Creates a separate index for the column.
|
NotNull |
PrimaryKey
The primary key of the table.
|
Unique |
Modifier and Type | Method and Description |
---|---|
static ColumnProperty |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ColumnProperty[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColumnProperty Indexed
public static final ColumnProperty NotNull
public static final ColumnProperty AutoIncrement
public static final ColumnProperty Unique
public static final ColumnProperty PrimaryKey
public static ColumnProperty[] values()
for (ColumnProperty c : ColumnProperty.values()) System.out.println(c);
public static ColumnProperty valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null