public class SequenceIdentityGenerator extends SequenceGenerator implements PostInsertIdentifierGenerator
getGeneratedKeys.
In this respect it works much like ANSI-SQL IDENTITY generation.
This generator only known to work with newer Oracle drivers compiled for
JDK 1.4 (JDBC3).
Note: Due to a bug in Oracle drivers, sql comments on these insert statements
are completely disabled.| Modifier and Type | Class and Description |
|---|---|
static class |
SequenceIdentityGenerator.Delegate |
static class |
SequenceIdentityGenerator.NoCommentsInsert |
PARAMETERS, SEQUENCEENTITY_NAME, JPA_ENTITY_NAMECATALOG, IDENTIFIER_NORMALIZER, PK, SCHEMA, TABLE, TABLES| Constructor and Description |
|---|
SequenceIdentityGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Type type,
Properties params,
Dialect dialect)
Configure this instance, given the value of parameters
specified by the user as <param> elements.
|
Serializable |
generate(SessionImplementor s,
Object obj)
Generate a new identifier.
|
InsertGeneratedIdentifierDelegate |
getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister,
Dialect dialect,
boolean isGetGeneratedKeysEnabled) |
buildHolder, determineBulkInsertionIdentifierGenerationSelectFragment, generateHolder, generatorKey, getIdentifierType, getSequenceName, sqlCreateStrings, sqlDropStrings, supportsBulkInsertionIdentifierGenerationpublic Serializable generate(SessionImplementor s, Object obj)
IdentifierGeneratorgenerate in interface IdentifierGeneratorgenerate in class SequenceGeneratorobj - the entity or toplevel collection for which the id is being generatedpublic InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled) throws HibernateException
getInsertGeneratedIdentifierDelegate in interface PostInsertIdentifierGeneratorHibernateExceptionpublic void configure(Type type, Properties params, Dialect dialect) throws MappingException
Configurableconfigure in interface Configurableconfigure in class SequenceGeneratorparams - param values, keyed by parameter nameMappingExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.