Package org.hibernate.id
Class SequenceIdentityGenerator
- java.lang.Object
-
- org.hibernate.id.SequenceGenerator
-
- org.hibernate.id.SequenceIdentityGenerator
-
- All Implemented Interfaces:
ExportableProducer
,BulkInsertionCapableIdentifierGenerator
,Configurable
,IdentifierGenerator
,PersistentIdentifierGenerator
,PostInsertIdentifierGenerator
@Deprecated public class SequenceIdentityGenerator extends SequenceGenerator implements PostInsertIdentifierGenerator
Deprecated.See deprecation discussion onSequenceGenerator
A generator which combines sequence generation with immediate retrieval through JDBC3getGeneratedKeys
. 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SequenceIdentityGenerator.Delegate
Deprecated.static class
SequenceIdentityGenerator.NoCommentsInsert
Deprecated.
-
Field Summary
-
Fields inherited from class org.hibernate.id.SequenceGenerator
PARAMETERS, SEQUENCE
-
Fields inherited from interface org.hibernate.id.IdentifierGenerator
ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
-
Fields inherited from interface org.hibernate.id.PersistentIdentifierGenerator
CATALOG, IDENTIFIER_NORMALIZER, PK, SCHEMA, TABLE, TABLES
-
-
Constructor Summary
Constructors Constructor Description SequenceIdentityGenerator()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
configure(Type type, java.util.Properties params, ServiceRegistry serviceRegistry)
Deprecated.Configure this instance, given the value of parameters specified by the user as <param> elements.java.io.Serializable
generate(SharedSessionContractImplementor s, java.lang.Object obj)
Deprecated.Generate a new identifier.InsertGeneratedIdentifierDelegate
getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled)
Deprecated.-
Methods inherited from class org.hibernate.id.SequenceGenerator
buildHolder, determineBulkInsertionIdentifierGenerationSelectFragment, generateHolder, generatorKey, getIdentifierType, getSequenceName, registerExportables, sqlCreateStrings, sqlDropStrings, supportsBulkInsertionIdentifierGeneration
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.id.IdentifierGenerator
supportsJdbcBatchInserts
-
-
-
-
Method Detail
-
generate
public java.io.Serializable generate(SharedSessionContractImplementor s, java.lang.Object obj)
Deprecated.Description copied from interface:IdentifierGenerator
Generate a new identifier.- Specified by:
generate
in interfaceIdentifierGenerator
- Overrides:
generate
in classSequenceGenerator
- Parameters:
s
- The session from which the request originatesobj
- the entity or collection (idbag) for which the id is being generated- Returns:
- a new identifier
-
getInsertGeneratedIdentifierDelegate
public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled) throws HibernateException
Deprecated.- Specified by:
getInsertGeneratedIdentifierDelegate
in interfacePostInsertIdentifierGenerator
- Throws:
HibernateException
-
configure
public void configure(Type type, java.util.Properties params, ServiceRegistry serviceRegistry) throws MappingException
Deprecated.Description copied from interface:Configurable
Configure this instance, given the value of parameters specified by the user as <param> elements. This method is called just once, following instantiation.- Specified by:
configure
in interfaceConfigurable
- Overrides:
configure
in classSequenceGenerator
- Parameters:
type
- The id property type descriptorparams
- param values, keyed by parameter nameserviceRegistry
- Access to service that may be needed.- Throws:
MappingException
-
-