SequenceGenerator@Deprecated 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
Deprecated.
|
static class |
SequenceIdentityGenerator.NoCommentsInsert
Deprecated.
|
PARAMETERS, SEQUENCEENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAMECATALOG, IDENTIFIER_NORMALIZER, PK, SCHEMA, TABLE, TABLES| Constructor and Description |
|---|
SequenceIdentityGenerator()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Type type,
Properties params,
ServiceRegistry serviceRegistry)
Deprecated.
Configure this instance, given the value of parameters
specified by the user as <param> elements.
|
Serializable |
generate(SharedSessionContractImplementor s,
Object obj)
Deprecated.
Generate a new identifier.
|
InsertGeneratedIdentifierDelegate |
getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister,
Dialect dialect,
boolean isGetGeneratedKeysEnabled)
Deprecated.
|
buildHolder, determineBulkInsertionIdentifierGenerationSelectFragment, generateHolder, getAllSqlForTests, getIdentifierType, getPhysicalSequenceName, initialize, registerExportables, supportsBulkInsertionIdentifierGenerationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsJdbcBatchInsertsinitialize, registerExportablespublic Serializable generate(SharedSessionContractImplementor s, Object obj)
IdentifierGeneratorgenerate in interface IdentifierGeneratorgenerate in class SequenceGenerators - The session from which the request originatesobj - the entity or collection (idbag) 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, ServiceRegistry serviceRegistry) throws MappingException
IdentifierGenerator
This method is called just once, following instantiation, and before IdentifierGenerator.registerExportables(Database).
configure in interface Configurableconfigure in interface IdentifierGeneratorconfigure in class SequenceGeneratortype - The id property type descriptorparams - param values, keyed by parameter nameserviceRegistry - Access to service that may be needed.MappingException - If configuration fails.Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.