public enum ValueGenerator extends java.lang.Enum
Value generation strategies
Enum constant | Description |
---|---|
ASSIGNED |
Generated through assignment |
AUTO |
The default generated |
CUSTOM |
Custom value generation strategy |
FOREIGN |
use the identifier of another object |
GENERATED |
Generated by the datastore implementation |
GUID |
uses a database-generated GUID string on MS SQL Server and MySQL. |
HILO |
A generator that uses a HILO algorithm |
IDENTITY |
Using an identity column |
INCREMENT |
A generator that uses an auto-increment column |
NATIVE |
Generated natively from the underlying datastore |
SELECT |
Generates the id by selecting from a row using a unique key |
SEQHILO |
A generator that uses a sequence and a HILO algorithm |
SEQUENCE |
Generated from a sequence |
UUID |
A generator that uses UUIDs |
UUID2 |
A generator that uses UUID2s |
Methods inherited from class | Name |
---|---|
class java.lang.Enum |
java.lang.Enum#name(), java.lang.Enum#equals(java.lang.Object), java.lang.Enum#toString(), java.lang.Enum#hashCode(), java.lang.Enum#compareTo(java.lang.Object), java.lang.Enum#compareTo(java.lang.Enum), java.lang.Enum#valueOf(java.lang.Class, java.lang.String), java.lang.Enum#describeConstable(), java.lang.Enum#getDeclaringClass(), java.lang.Enum#ordinal(), java.lang.Enum#wait(long, int), java.lang.Enum#wait(), java.lang.Enum#wait(long), java.lang.Enum#getClass(), java.lang.Enum#notify(), java.lang.Enum#notifyAll() |
Generated through assignment
The default generated
Custom value generation strategy
use the identifier of another object
Generated by the datastore implementation
uses a database-generated GUID string on MS SQL Server and MySQL.
A generator that uses a HILO algorithm
Using an identity column
A generator that uses an auto-increment column
Generated natively from the underlying datastore
Generates the id by selecting from a row using a unique key
A generator that uses a sequence and a HILO algorithm
Generated from a sequence
A generator that uses UUIDs
A generator that uses UUID2s
Groovy Documentation