Class ResettableTableHiLoGeneratorV5
- java.lang.Object
-
- org.hibernate.id.enhanced.SequenceStyleGenerator
-
- com.atlassian.confluence.impl.hibernate.ResettableTableHiLoGenerator
-
- com.atlassian.confluence.impl.hibernate.ResettableTableHiLoGeneratorV5
-
- All Implemented Interfaces:
org.hibernate.boot.model.relational.ExportableProducer
,org.hibernate.id.BulkInsertionCapableIdentifierGenerator
,org.hibernate.id.Configurable
,org.hibernate.id.IdentifierGenerator
,org.hibernate.id.PersistentIdentifierGenerator
public class ResettableTableHiLoGeneratorV5 extends ResettableTableHiLoGenerator implements org.hibernate.id.IdentifierGenerator, org.hibernate.id.Configurable
Ideally we should be using one of the off-the-shelf Hibernate ID generators, bu we need the "reset" functionality of this custom one.- Since:
- 6.1.0
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.impl.hibernate.ResettableTableHiLoGenerator
MAX_LO
-
Fields inherited from class org.hibernate.id.enhanced.SequenceStyleGenerator
CONFIG_PREFER_SEQUENCE_PER_ENTITY, CONFIG_SEQUENCE_PER_ENTITY_SUFFIX, DEF_SEQUENCE_NAME, DEF_SEQUENCE_SUFFIX, DEF_VALUE_COLUMN, DEFAULT_INCREMENT_SIZE, DEFAULT_INITIAL_VALUE, FORCE_TBL_PARAM, INCREMENT_PARAM, INITIAL_PARAM, OPT_PARAM, SEQUENCE_PARAM, VALUE_COLUMN_PARAM
-
-
Constructor Summary
Constructors Constructor Description ResettableTableHiLoGeneratorV5()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(org.hibernate.type.Type type, Properties params, org.hibernate.service.ServiceRegistry serviceRegistry)
Serializable
generate(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object object)
-
Methods inherited from class com.atlassian.confluence.impl.hibernate.ResettableTableHiLoGenerator
getMaxLo, reset
-
Methods inherited from class org.hibernate.id.enhanced.SequenceStyleGenerator
buildDatabaseStructure, buildSequenceStructure, buildTableStructure, determineAdjustedIncrementSize, determineBulkInsertionIdentifierGenerationSelectFragment, determineIncrementSize, determineInitialValue, determineOptimizationStrategy, determineSequenceName, determineValueColumnName, generatorKey, getDatabaseStructure, getIdentifierType, getOptimizer, initialize, isPhysicalSequence, registerExportables, supportsBulkInsertionIdentifierGeneration
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
generate
public Serializable generate(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object object)
- Specified by:
generate
in interfaceorg.hibernate.id.IdentifierGenerator
- Overrides:
generate
in classResettableTableHiLoGenerator
-
configure
public void configure(org.hibernate.type.Type type, Properties params, org.hibernate.service.ServiceRegistry serviceRegistry) throws org.hibernate.MappingException
- Specified by:
configure
in interfaceorg.hibernate.id.Configurable
- Specified by:
configure
in interfaceorg.hibernate.id.IdentifierGenerator
- Overrides:
configure
in classResettableTableHiLoGenerator
- Throws:
org.hibernate.MappingException
-
-