SequenceGenerator@Deprecated public class SequenceHiLoGenerator extends SequenceGenerator
<b>seqhilo</b><br> <br> An <tt>IdentifierGenerator</tt> 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.<br> <br> Mapping parameters supported: sequence, max_lo, parameters.
| Modifier and Type | Field and Description |
|---|---|
static String |
MAX_LO
Deprecated.
|
PARAMETERS, SEQUENCECATALOG, IDENTIFIER_NORMALIZER, PK, SCHEMA, TABLE, TABLESENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME| Constructor and Description |
|---|
SequenceHiLoGenerator()
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 <tt><param></tt> elements.
|
Serializable |
generate(SharedSessionContractImplementor session,
Object obj)
Deprecated.
Generate a new identifier.
|
buildHolder, determineBulkInsertionIdentifierGenerationSelectFragment, generateHolder, generatorKey, getIdentifierType, getSequenceName, registerExportables, sqlCreateStrings, sqlDropStrings, supportsBulkInsertionIdentifierGenerationpublic static final String MAX_LO
public void configure(Type type, Properties params, ServiceRegistry serviceRegistry) throws MappingException
ConfigurableConfigure this instance, given the value of parameters specified by the user as <tt><param></tt> elements. This method is called just once, following instantiation.
configure in interface Configurableconfigure in class SequenceGeneratortype - The id property type descriptorparams - param values, keyed by parameter nameserviceRegistry - Access to service that may be needed.MappingExceptionpublic Serializable generate(SharedSessionContractImplementor session, Object obj)
IdentifierGeneratorGenerate a new identifier.
generate in interface IdentifierGeneratorgenerate in class SequenceGeneratorsession - The session from which the request originatesobj - the entity or collection (idbag) for which the id is being generatedCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.