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. <br><br> Indicates to the <tt>Session</tt> that identity (ie. identity/autoincrement column) key generation should be used.
Modifier and Type | Class and Description |
---|---|
static class |
IdentityGenerator.BasicDelegate
Delegate for dealing with IDENTITY columns where the dialect requires an
additional command execution to retrieve the generated IDENTITY value
|
static class |
IdentityGenerator.InsertSelectDelegate
Delegate for dealing with IDENTITY columns where the dialect supports returning
the generated IDENTITY value directly from the insert statement.
|
ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
Constructor and Description |
---|
IdentityGenerator() |
Modifier and Type | Method and Description |
---|---|
InsertGeneratedIdentifierDelegate |
getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister,
Dialect dialect,
boolean isGetGeneratedKeysEnabled) |
determineBulkInsertionIdentifierGenerationSelectFragment, generate, supportsBulkInsertionIdentifierGeneration
public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled) throws HibernateException
HibernateException
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.