TableGenerator
instead.@Deprecated public class MultipleHiLoPerTableGenerator extends Object implements PersistentIdentifierGenerator
This implementation is not compliant with a user connection
Allowed parameters (all of them are optional):
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TABLE
Deprecated.
|
static String |
ID_TABLE
Deprecated.
|
static String |
MAX_LO
Deprecated.
|
static String |
PK_COLUMN_NAME
Deprecated.
|
static String |
PK_LENGTH_NAME
Deprecated.
|
static String |
PK_VALUE_NAME
Deprecated.
|
static String |
VALUE_COLUMN_NAME
Deprecated.
|
CATALOG, IDENTIFIER_NORMALIZER, PK, SCHEMA, TABLE, TABLES
ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
Constructor and Description |
---|
MultipleHiLoPerTableGenerator()
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.
|
protected QualifiedName |
determineGeneratorTableName(Properties params,
JdbcEnvironment jdbcEnvironment)
Deprecated.
|
protected String |
determineSegmentColumnName(Properties params,
JdbcEnvironment jdbcEnvironment)
Deprecated.
|
protected String |
determineValueColumnName(Properties params,
JdbcEnvironment jdbcEnvironment)
Deprecated.
|
Serializable |
generate(SharedSessionContractImplementor session,
Object obj)
Deprecated.
Generate a new identifier.
|
void |
initialize(SqlStringGenerationContext context)
Deprecated.
Initializes this instance, in particular pre-generates SQL as necessary.
|
void |
registerExportables(Database database)
Deprecated.
Register database objects used by this identifier generator, e.g.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportsJdbcBatchInserts
public static final String ID_TABLE
public static final String PK_COLUMN_NAME
public static final String PK_VALUE_NAME
public static final String VALUE_COLUMN_NAME
public static final String PK_LENGTH_NAME
public static final String DEFAULT_TABLE
public static final String MAX_LO
public Serializable generate(SharedSessionContractImplementor session, Object obj)
IdentifierGenerator
generate
in interface IdentifierGenerator
session
- The session from which the request originatesobj
- the entity or collection (idbag) for which the id is being generatedpublic 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
type
- The id property type descriptorparams
- param values, keyed by parameter nameserviceRegistry
- Access to service that may be needed.MappingException
- If configuration fails.protected QualifiedName determineGeneratorTableName(Properties params, JdbcEnvironment jdbcEnvironment)
protected String determineSegmentColumnName(Properties params, JdbcEnvironment jdbcEnvironment)
protected String determineValueColumnName(Properties params, JdbcEnvironment jdbcEnvironment)
public void registerExportables(Database database)
IdentifierGenerator
This method is called just once, after IdentifierGenerator.configure(Type, Properties, ServiceRegistry)
.
registerExportables
in interface ExportableProducer
registerExportables
in interface IdentifierGenerator
database
- The database instancepublic void initialize(SqlStringGenerationContext context)
IdentifierGenerator
This method is called after IdentifierGenerator.registerExportables(Database)
, before first use.
initialize
in interface IdentifierGenerator
context
- A context to help generate SQL stringsCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.