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, SEQUENCE
ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
CATALOG, 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, generatorKey, getIdentifierType, getSequenceName, registerExportables, sqlCreateStrings, sqlDropStrings, supportsBulkInsertionIdentifierGeneration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportsJdbcBatchInserts
public Serializable generate(SharedSessionContractImplementor s, Object obj)
IdentifierGenerator
generate
in interface IdentifierGenerator
generate
in class SequenceGenerator
s
- 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 PostInsertIdentifierGenerator
HibernateException
public void configure(Type type, Properties params, ServiceRegistry serviceRegistry) throws MappingException
Configurable
configure
in interface Configurable
configure
in class SequenceGenerator
type
- The id property type descriptorparams
- param values, keyed by parameter nameserviceRegistry
- Access to service that may be needed.MappingException
Copyright © 2021 JBoss by Red Hat. All rights reserved.