FileDocCategorySizeDatePackage
IdentityGenerator.javaAPI DocHibernate 3.2.55610Fri Mar 24 11:10:04 GMT 2006org.hibernate.id

IdentityGenerator

public class IdentityGenerator extends AbstractPostInsertGenerator
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.
author
Christoph Sturm

Fields Summary
Constructors Summary
Methods Summary
public org.hibernate.id.insert.InsertGeneratedIdentifierDelegategetInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister, org.hibernate.dialect.Dialect dialect, boolean isGetGeneratedKeysEnabled)

		if ( isGetGeneratedKeysEnabled ) {
			return new GetGeneratedKeysDelegate( persister, dialect );
		}
		else if ( dialect.supportsInsertSelectIdentity() ) {
			return new InsertSelectDelegate( persister, dialect );
		}
		else {
			return new BasicDelegate( persister, dialect );
		}