Package org.hibernate.envers.enhanced
Class OrderedSequenceGenerator
- java.lang.Object
-
- org.hibernate.id.enhanced.SequenceStyleGenerator
-
- org.hibernate.envers.enhanced.OrderedSequenceGenerator
-
- All Implemented Interfaces:
Serializable,org.hibernate.boot.model.relational.ExportableProducer,org.hibernate.generator.BeforeExecutionGenerator,org.hibernate.generator.Generator,org.hibernate.id.BulkInsertionCapableIdentifierGenerator,org.hibernate.id.Configurable,org.hibernate.id.factory.spi.StandardGenerator,org.hibernate.id.IdentifierGenerator,org.hibernate.id.OptimizableGenerator,org.hibernate.id.PersistentIdentifierGenerator
public class OrderedSequenceGenerator extends org.hibernate.id.enhanced.SequenceStyleGeneratorRevision number generator has to produce values in ascending order (gaps may occur).This generator is only applicable when
USE_REVISION_ENTITY_WITH_NATIVE_IDisfalsein the bootstrapping configuration properties.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.hibernate.id.enhanced.SequenceStyleGenerator
ALT_SEQUENCE_PARAM, CONFIG_SEQUENCE_PER_ENTITY_SUFFIX, DEF_SEQUENCE_SUFFIX, DEF_VALUE_COLUMN, FORCE_TBL_PARAM, SEQUENCE_PARAM, VALUE_COLUMN_PARAM
-
Fields inherited from interface org.hibernate.id.IdentifierGenerator
CONTRIBUTOR_NAME, ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
-
-
Constructor Summary
Constructors Constructor Description OrderedSequenceGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.hibernate.id.enhanced.DatabaseStructurebuildSequenceStructure(org.hibernate.type.Type type, 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, create, determineAdjustedIncrementSize, determineBulkInsertionIdentifierGenerationSelectFragment, determineIncrementSize, determineInitialValue, determineOptimizationStrategy, determineSequenceName, determineValueColumnName, generate, 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
-
Methods inherited from interface org.hibernate.generator.BeforeExecutionGenerator
generatedOnExecution
-
-
-
-
Method Detail
-
buildSequenceStructure
protected org.hibernate.id.enhanced.DatabaseStructure buildSequenceStructure(org.hibernate.type.Type type, Properties params, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment, org.hibernate.boot.model.relational.QualifiedName sequenceName, int initialValue, int incrementSize)- Overrides:
buildSequenceStructurein classorg.hibernate.id.enhanced.SequenceStyleGenerator
-
-