Package org.hibernate.id
Class SequenceHiLoGenerator
- java.lang.Object
-
- org.hibernate.id.SequenceGenerator
-
- org.hibernate.id.SequenceHiLoGenerator
-
- All Implemented Interfaces:
ExportableProducer,BulkInsertionCapableIdentifierGenerator,Configurable,IdentifierGenerator,PersistentIdentifierGenerator
@Deprecated public class SequenceHiLoGenerator extends SequenceGenerator
Deprecated.See deprecation discussion onSequenceGeneratorseqhilo
An IdentifierGenerator that combines a hi/lo algorithm with an underlying oracle-style sequence that generates hi values. The user may specify a maximum lo value to determine how often new hi values are fetched.
Mapping parameters supported: sequence, max_lo, parameters.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMAX_LODeprecated.-
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 SequenceHiLoGenerator()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidconfigure(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.Serializablegenerate(SharedSessionContractImplementor session, java.lang.Object obj)Deprecated.Generate a new identifier.-
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
-
-
-
-
Field Detail
-
MAX_LO
public static final java.lang.String MAX_LO
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
configure
public void configure(Type type, java.util.Properties params, ServiceRegistry serviceRegistry) throws MappingException
Deprecated.Description copied from interface:ConfigurableConfigure this instance, given the value of parameters specified by the user as <param> elements. This method is called just once, following instantiation.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classSequenceGenerator- Parameters:
type- The id property type descriptorparams- param values, keyed by parameter nameserviceRegistry- Access to service that may be needed.- Throws:
MappingException
-
generate
public java.io.Serializable generate(SharedSessionContractImplementor session, java.lang.Object obj)
Deprecated.Description copied from interface:IdentifierGeneratorGenerate a new identifier.- Specified by:
generatein interfaceIdentifierGenerator- Overrides:
generatein classSequenceGenerator- Parameters:
session- The session from which the request originatesobj- the entity or collection (idbag) for which the id is being generated- Returns:
- a new identifier
-
-