Package org.hibernate.envers.enhanced
Class OrderedSequenceGenerator
- java.lang.Object
-
- org.hibernate.id.enhanced.SequenceStyleGenerator
-
- org.hibernate.envers.enhanced.OrderedSequenceGenerator
-
- 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 OrderedSequenceGenerator extends org.hibernate.id.enhanced.SequenceStyleGenerator
Revision number generator has to produce values in ascending order (gaps may occur). This generator is only applicable whenUSE_REVISION_ENTITY_WITH_NATIVE_ID
isfalse
in the bootstrapping configuration properties.
-
-
Field Summary
-
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 OrderedSequenceGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.hibernate.id.enhanced.DatabaseStructure
buildSequenceStructure(org.hibernate.type.Type type, java.util.Properties params, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment, org.hibernate.boot.model.relational.QualifiedName sequenceName, int initialValue, int incrementSize)
-
Methods inherited from class org.hibernate.id.enhanced.SequenceStyleGenerator
buildDatabaseStructure, buildTableStructure, configure, determineAdjustedIncrementSize, determineBulkInsertionIdentifierGenerationSelectFragment, determineIncrementSize, determineInitialValue, determineOptimizationStrategy, determineSequenceName, determineValueColumnName, generate, generatorKey, getDatabaseStructure, getIdentifierType, getOptimizer, registerExportables, sqlCreateStrings, sqlDropStrings, supportsBulkInsertionIdentifierGeneration
-
-
-
-
Method Detail
-
buildSequenceStructure
protected org.hibernate.id.enhanced.DatabaseStructure buildSequenceStructure(org.hibernate.type.Type type, java.util.Properties params, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment, org.hibernate.boot.model.relational.QualifiedName sequenceName, int initialValue, int incrementSize)
- Overrides:
buildSequenceStructure
in classorg.hibernate.id.enhanced.SequenceStyleGenerator
-
-