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, 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(SessionImplementor s,
Object obj)
Deprecated.
Generate a new identifier.
|
InsertGeneratedIdentifierDelegate |
getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister,
Dialect dialect,
boolean isGetGeneratedKeysEnabled)
Deprecated.
|
buildHolder, determineBulkInsertionIdentifierGenerationSelectFragment, generateHolder, generatorKey, getIdentifierType, getSequenceName, registerExportables, sqlCreateStrings, sqlDropStrings, supportsBulkInsertionIdentifierGenerationpublic Serializable generate(SessionImplementor 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
Configurableconfigure in interface Configurableconfigure in class SequenceGeneratortype - The id property type descriptorparams - param values, keyed by parameter nameserviceRegistry - Access to service that may be needed.MappingExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.