Package org.hibernate.id
Class IdentityGenerator
java.lang.Object
org.hibernate.id.AbstractPostInsertGenerator
org.hibernate.id.IdentityGenerator
- All Implemented Interfaces:
IdentifierGenerator,PostInsertIdentifierGenerator
A generator for use with ANSI-SQL IDENTITY columns used as the primary key.
The IdentityGenerator for autoincrement/identity key generation.
Indicates to the Session that identity (ie. identity/autoincrement column) key generation should be used.
Indicates to the Session that identity (ie. identity/autoincrement column) key generation should be used.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDelegate for dealing with IDENTITY columns where the dialect requires an additional command execution to retrieve the generated IDENTITY valuestatic classDelegate for dealing with IDENTITY columns using JDBC3 getGeneratedKeysstatic classDelegate for dealing with IDENTITY columns where the dialect supports returning the generated IDENTITY value directly from the insert statement. -
Field Summary
Fields inherited from interface org.hibernate.id.IdentifierGenerator
ENTITY_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled) Methods inherited from class org.hibernate.id.AbstractPostInsertGenerator
generate
-
Constructor Details
-
IdentityGenerator
public IdentityGenerator()
-
-
Method Details
-
getInsertGeneratedIdentifierDelegate
public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled) throws HibernateException - Throws:
HibernateException
-