SequenceGenerator
@Deprecated public class SequenceHiLoGenerator extends SequenceGenerator
Modifier and Type | Field and Description |
---|---|
static String |
MAX_LO
Deprecated.
|
PARAMETERS, SEQUENCE
CATALOG, IDENTIFIER_NORMALIZER, PK, SCHEMA, TABLE, TABLES
ENTITY_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 <param> elements.
|
Serializable |
generate(SharedSessionContractImplementor session,
Object obj)
Deprecated.
Generate a new identifier.
|
buildHolder, determineBulkInsertionIdentifierGenerationSelectFragment, generateHolder, getAllSqlForTests, getIdentifierType, getPhysicalSequenceName, initialize, registerExportables, supportsBulkInsertionIdentifierGeneration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportsJdbcBatchInserts
public static final String MAX_LO
public void configure(Type type, Properties params, ServiceRegistry serviceRegistry) throws MappingException
IdentifierGenerator
This method is called just once, following instantiation, and before IdentifierGenerator.registerExportables(Database)
.
configure
in interface Configurable
configure
in interface IdentifierGenerator
configure
in class SequenceGenerator
type
- The id property type descriptorparams
- param values, keyed by parameter nameserviceRegistry
- Access to service that may be needed.MappingException
- If configuration fails.public Serializable generate(SharedSessionContractImplementor session, Object obj)
IdentifierGenerator
generate
in interface IdentifierGenerator
generate
in class SequenceGenerator
session
- The session from which the request originatesobj
- the entity or collection (idbag) for which the id is being generatedCopyright © 2001-2021 Red Hat, Inc. All Rights Reserved.