TableGenerator
instead.@Deprecated public class MultipleHiLoPerTableGenerator extends java.lang.Object implements PersistentIdentifierGenerator, Configurable
This implementation is not compliant with a user connection
Allowed parameters (all of them are optional):
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_TABLE
Deprecated.
|
static java.lang.String |
ID_TABLE
Deprecated.
|
static java.lang.String |
MAX_LO
Deprecated.
|
static java.lang.String |
PK_COLUMN_NAME
Deprecated.
|
static java.lang.String |
PK_LENGTH_NAME
Deprecated.
|
static java.lang.String |
PK_VALUE_NAME
Deprecated.
|
static java.lang.String |
VALUE_COLUMN_NAME
Deprecated.
|
CATALOG, IDENTIFIER_NORMALIZER, PK, SCHEMA, TABLE, TABLES
ENTITY_NAME, JPA_ENTITY_NAME
Constructor and Description |
---|
MultipleHiLoPerTableGenerator()
Deprecated.
|
Modifier and Type | Method and 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.
|
protected QualifiedName |
determineGeneratorTableName(java.util.Properties params,
JdbcEnvironment jdbcEnvironment)
Deprecated.
|
protected java.lang.String |
determineSegmentColumnName(java.util.Properties params,
JdbcEnvironment jdbcEnvironment)
Deprecated.
|
protected java.lang.String |
determineValueColumnName(java.util.Properties params,
JdbcEnvironment jdbcEnvironment)
Deprecated.
|
java.io.Serializable |
generate(SharedSessionContractImplementor session,
java.lang.Object obj)
Deprecated.
Generate a new identifier.
|
java.lang.Object |
generatorKey()
Deprecated.
Return a key unique to the underlying database objects.
|
void |
registerExportables(Database database)
Deprecated.
Register the contained exportable things to the
Database |
java.lang.String[] |
sqlCreateStrings(Dialect dialect)
Deprecated.
The SQL required to create the underlying database objects.
|
java.lang.String[] |
sqlDropStrings(Dialect dialect)
Deprecated.
The SQL required to remove the underlying database objects.
|
public static final java.lang.String ID_TABLE
public static final java.lang.String PK_COLUMN_NAME
public static final java.lang.String PK_VALUE_NAME
public static final java.lang.String VALUE_COLUMN_NAME
public static final java.lang.String PK_LENGTH_NAME
public static final java.lang.String DEFAULT_TABLE
public static final java.lang.String MAX_LO
public java.io.Serializable generate(SharedSessionContractImplementor session, java.lang.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, java.util.Properties params, ServiceRegistry serviceRegistry) throws MappingException
Configurable
configure
in interface Configurable
type
- The id property type descriptorparams
- param values, keyed by parameter nameserviceRegistry
- Access to service that may be needed.MappingException
protected QualifiedName determineGeneratorTableName(java.util.Properties params, JdbcEnvironment jdbcEnvironment)
protected java.lang.String determineSegmentColumnName(java.util.Properties params, JdbcEnvironment jdbcEnvironment)
protected java.lang.String determineValueColumnName(java.util.Properties params, JdbcEnvironment jdbcEnvironment)
public void registerExportables(Database database)
ExportableProducer
Database
registerExportables
in interface ExportableProducer
database
- The database instancepublic java.lang.String[] sqlCreateStrings(Dialect dialect) throws HibernateException
PersistentIdentifierGenerator
sqlCreateStrings
in interface PersistentIdentifierGenerator
dialect
- The dialect against which to generate the create command(s)HibernateException
- problem creating the create command(s)public java.lang.String[] sqlDropStrings(Dialect dialect) throws HibernateException
PersistentIdentifierGenerator
sqlDropStrings
in interface PersistentIdentifierGenerator
dialect
- The dialect against which to generate the drop command(s)HibernateException
- problem creating the drop command(s)public java.lang.Object generatorKey()
PersistentIdentifierGenerator
generatorKey
in interface PersistentIdentifierGenerator
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.