Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » id » [javadoc | source]
org.hibernate.id
public class: IdentityGenerator [javadoc | source]
java.lang.Object
   org.hibernate.id.AbstractPostInsertGenerator
      org.hibernate.id.IdentityGenerator

All Implemented Interfaces:
    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.
Nested Class Summary:
public static class  IdentityGenerator.GetGeneratedKeysDelegate  Delegate for dealing with IDENTITY columns using JDBC3 getGeneratedKeys 
public static class  IdentityGenerator.InsertSelectDelegate  Delegate for dealing with IDENTITY columns where the dialect supports returning the generated IDENTITY value directly from the insert statement. 
public static class  IdentityGenerator.BasicDelegate  Delegate for dealing with IDENTITY columns where the dialect requires an additional command execution to retrieve the generated IDENTITY value 
Method from org.hibernate.id.IdentityGenerator Summary:
getInsertGeneratedIdentifierDelegate
Methods from org.hibernate.id.AbstractPostInsertGenerator:
generate
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.id.IdentityGenerator Detail:
 public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister,
    Dialect dialect,
    boolean isGetGeneratedKeysEnabled) throws HibernateException