|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.c24.io.api.data.IDGeneratorMethodEnum
public final class IDGeneratorMethodEnum
An enumeration of possible Hibernate ID Generator Method values.
These methods specifies the method of id generation for new entries being written to the database
Field Summary | |
---|---|
static IDGeneratorMethodEnum |
ASSIGNED
lets the application to assign an identifier to the object before save() is called. |
static IDGeneratorMethodEnum |
CUSTOM
uses a custom Java class to determine the new keys. |
static IDGeneratorMethodEnum |
FOREIGN
uses the identifier of another associated object. |
static IDGeneratorMethodEnum |
GUID
uses a database-generated GUID string on MS SQL Server and MySQL. |
static IDGeneratorMethodEnum |
HILO
uses a hi/lo algorithm to efficiently generate identifiers of type long, short or int, given a table and column (by default hibernate_unique_key and next_hi respectively) as a source of hi values. |
static IDGeneratorMethodEnum |
IDENTITY
supports identity columns in DB2, MySQL, MS SQL Server, Sybase and HypersonicSQL. |
static IDGeneratorMethodEnum |
INCREMENT
generates identifiers of type long, short or int that are unique only when no other process is inserting data into the same table. |
static IDGeneratorMethodEnum |
NATIVE
picks identity, sequence or hilo depending upon the capabilities of the underlying database. |
static IDGeneratorMethodEnum |
SELECT
retrieves a primary key assigned by a database trigger by selecting the row by some unique key and retrieving the primary key value. |
static IDGeneratorMethodEnum |
SEQHILO
uses a hi/lo algorithm to efficiently generate identifiers of type long, short or int, given a named database sequence. |
static IDGeneratorMethodEnum |
SEQUENCE
uses a sequence in DB2, PostgreSQL, Oracle, SAP DB, McKoi or a generator in Interbase. |
static IDGeneratorMethodEnum |
UUID
uses a 128-bit UUID algorithm to generate identifiers of type string, unique within a network (the IP address is used). |
Constructor Summary | |
---|---|
IDGeneratorMethodEnum(String name)
The constructor. |
Method Summary | |
---|---|
String |
getName()
Returns the name of this generator. |
String |
toString()
Returns the name of this generator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final IDGeneratorMethodEnum ASSIGNED
public static final IDGeneratorMethodEnum INCREMENT
public static final IDGeneratorMethodEnum IDENTITY
public static final IDGeneratorMethodEnum SEQUENCE
public static final IDGeneratorMethodEnum HILO
public static final IDGeneratorMethodEnum SEQHILO
public static final IDGeneratorMethodEnum UUID
public static final IDGeneratorMethodEnum GUID
public static final IDGeneratorMethodEnum NATIVE
public static final IDGeneratorMethodEnum SELECT
public static final IDGeneratorMethodEnum FOREIGN
public static final IDGeneratorMethodEnum CUSTOM
Constructor Detail |
---|
public IDGeneratorMethodEnum(String name)
name
- The name of the generatorMethod Detail |
---|
public String getName()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |