Deprecated
Use org. instead
SequenceHiLoGenerator
| Modifier and Type | Field and Description |
|---|---|
| private String | formattedSequenceNameForLegacyGetter
Deprecated
|
| private Type | |
| private static final Logger | |
| private QualifiedName | |
| public static final String | PARAMETERS
The parameters parameter, appended to the create sequence DDL. |
| private QualifiedName | |
| public static final String | SEQUENCE
The sequence parameter |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected IntegralDataTypeHolder | |
| public void | configure(Type
The id property type descriptor type, Properties param values, keyed by parameter name params, ServiceRegistry Access to service that may be needed. serviceRegistry)Overrides default org. |
| public String | determineBulkInsertionIdentifierGenerationSelectFragment(SqlStringGenerationContext
A context for SQL string generation. context)Overrides default org. |
| public Serializable | generate(SharedSessionContractImplementor
The session from which the request originates session, Object the entity or collection (idbag) for which the id is being generated obj)Implements org. |
| protected IntegralDataTypeHolder | |
| public Object | generatorKey()
Overrides default org.
Deprecated
Return a key unique to the underlying database objects.
|
| public String[] | |
| protected Type | |
| public QualifiedName | |
| public String | |
| public void | initialize(SqlStringGenerationContext
A context to help generate SQL strings context)Overrides default org. |
| public void | registerExportables(Database
The database instance database)Overrides default org.
This method is called just once, after |
| public boolean | supportsBulkInsertionIdentifierGeneration()
Implements org. |
| formattedSequenceNameForLegacyGetter | back to summary |
|---|---|
| private String formattedSequenceNameForLegacyGetter
Deprecated
| |
| identifierType | back to summary |
|---|---|
| private Type identifierType | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| logicalQualifiedSequenceName | back to summary |
|---|---|
| private QualifiedName logicalQualifiedSequenceName | |
| PARAMETERS | back to summary |
|---|---|
| public static final String PARAMETERS
Deprecated No longer supported. To specify initial-value or increment use the org.hibernate.id.enhanced.SequenceStyleGenerator generator instead. The parameters parameter, appended to the create sequence DDL. For example (Oracle): INCREMENT BY 1 START WITH 1 MAXVALUE 100 NOCACHE. | |
| physicalSequenceName | back to summary |
|---|---|
| private QualifiedName physicalSequenceName | |
| SEQUENCE | back to summary |
|---|---|
| public static final String SEQUENCE The sequence parameter | |
| sql | back to summary |
|---|---|
| private String sql | |
| SequenceGenerator | back to summary |
|---|---|
| public SequenceGenerator() | |
| buildHolder | back to summary |
|---|---|
| protected IntegralDataTypeHolder buildHolder() | |
| configure | back to summary |
|---|---|
| public void configure(Type type, Properties params, ServiceRegistry serviceRegistry) throws MappingException Overrides default org. Doc from org. Configure this instance, given the value of parameters specified by the user as <param> elements.
This method is called just once, following instantiation, and before
| |
| determineBulkInsertionIdentifierGenerationSelectFragment | back to summary |
|---|---|
| public String determineBulkInsertionIdentifierGenerationSelectFragment(SqlStringGenerationContext context) Overrides default org. Return the select expression fragment, if any, that generates the identifier values.
| |
| generate | back to summary |
|---|---|
| public Serializable generate(SharedSessionContractImplementor session, Object obj) Implements org. Doc from org. Generate a new identifier.
| |
| generateHolder | back to summary |
|---|---|
| protected IntegralDataTypeHolder generateHolder(SharedSessionContractImplementor session) | |
| generatorKey | back to summary |
|---|---|
| public Object generatorKey() Overrides default org. Doc from org. Deprecated
Return a key unique to the underlying database objects. Prevents us from trying to create/remove them multiple times.
| |
| getAllSqlForTests | back to summary |
|---|---|
| public String[] getAllSqlForTests()
Deprecated Exposed for tests only.
| |
| getIdentifierType | back to summary |
|---|---|
| protected Type getIdentifierType() | |
| getPhysicalSequenceName | back to summary |
|---|---|
| public QualifiedName getPhysicalSequenceName() | |
| getSequenceName | back to summary |
|---|---|
| public String getSequenceName()
Deprecated
| |
| initialize | back to summary |
|---|---|
| public void initialize(SqlStringGenerationContext context) Overrides default org. Doc from org. Initializes this instance, in particular pre-generates SQL as necessary.
This method is called after
| |
| registerExportables | back to summary |
|---|---|
| public void registerExportables(Database database) Overrides default org. Doc from org. Register database objects used by this identifier generator, e.g. sequences, tables, etc.
This method is called just once, after | |
| supportsBulkInsertionIdentifierGeneration | back to summary |
|---|---|
| public boolean supportsBulkInsertionIdentifierGeneration() Implements org. Doc from org. Given the configuration of this generator, is identifier generation as part of bulk insertion supported? IMPL NOTE : Mainly here to allow stuff like SequenceStyleGenerator which *can* support this based on configuration
| |