public class

IdentityGenerator

extends AbstractPostInsertGenerator
java.lang.Object
   ↳ org.hibernate.id.AbstractPostInsertGenerator
     ↳ org.hibernate.id.IdentityGenerator

Class Overview

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.

Summary

Nested Classes
class IdentityGenerator.BasicDelegate Delegate for dealing with IDENTITY columns where the dialect requires an additional command execution to retrieve the generated IDENTITY value  
class IdentityGenerator.GetGeneratedKeysDelegate Delegate for dealing with IDENTITY columns using JDBC3 getGeneratedKeys  
class IdentityGenerator.InsertSelectDelegate Delegate for dealing with IDENTITY columns where the dialect supports returning the generated IDENTITY value directly from the insert statement. 
[Expand]
Inherited Constants
From interface org.hibernate.id.IdentifierGenerator
Public Constructors
IdentityGenerator()
Public Methods
InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled)
[Expand]
Inherited Methods
From class org.hibernate.id.AbstractPostInsertGenerator
From class java.lang.Object
From interface org.hibernate.id.IdentifierGenerator
From interface org.hibernate.id.PostInsertIdentifierGenerator

Public Constructors

public IdentityGenerator ()

Public Methods

public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate (PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled)