public static enum Entity.KeyGenerator.Type extends java.lang.Enum<Entity.KeyGenerator.Type>
Enum Constant and Description |
---|
AUTOMATIC
The primary key value is automatically created by the underlying database
or the key generator implementation
|
INCREMENT
The primary key value is generated by incrementing the max value of a column
|
NONE
The primary key is not generated but set manually before insert
|
QUERY
The primary key value is retreived via query before insert
|
SEQUENCE
The primary key value is fetched from a sequence before insert
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAutoIncrement() |
boolean |
isManual() |
static Entity.KeyGenerator.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Entity.KeyGenerator.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Entity.KeyGenerator.Type NONE
public static final Entity.KeyGenerator.Type SEQUENCE
public static final Entity.KeyGenerator.Type QUERY
public static final Entity.KeyGenerator.Type INCREMENT
public static final Entity.KeyGenerator.Type AUTOMATIC
public static Entity.KeyGenerator.Type[] values()
for (Entity.KeyGenerator.Type c : Entity.KeyGenerator.Type.values()) System.out.println(c);
public static Entity.KeyGenerator.Type 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 nullpublic boolean isAutoIncrement()
public boolean isManual()