Class OrderedSequenceGenerator
java.lang.Object
org.hibernate.id.enhanced.SequenceStyleGenerator
org.hibernate.envers.enhanced.OrderedSequenceGenerator
- All Implemented Interfaces:
Serializable, ExportableProducer, BeforeExecutionGenerator, Generator, BulkInsertionCapableIdentifierGenerator, Configurable, IdentifierGenerator, OptimizableGenerator, PersistentIdentifierGenerator
Revision number generator has to produce values in ascending order (gaps may occur).
This generator is only applicable when USE_REVISION_ENTITY_WITH_NATIVE_ID is false in the
bootstrapping configuration properties.
- See Also:
-
Field Summary
Fields inherited from class SequenceStyleGenerator
ALT_SEQUENCE_PARAM, CONFIG_SEQUENCE_PER_ENTITY_SUFFIX, DEF_SEQUENCE_SUFFIX, DEF_VALUE_COLUMN, FORCE_TBL_PARAM, SEQUENCE_PARAM, VALUE_COLUMN_PARAMFields inherited from interface IdentifierGenerator
CONTRIBUTOR_NAME, ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAMEFields inherited from interface OptimizableGenerator
DEFAULT_INCREMENT_SIZE, DEFAULT_INITIAL_VALUE, IMPLICIT_NAME_BASE, INCREMENT_PARAM, INITIAL_PARAM, OPT_PARAMFields inherited from interface PersistentIdentifierGenerator
CATALOG, IDENTIFIER_NORMALIZER, OPTIONS, PK, SCHEMA, TABLE, TABLES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DatabaseStructurebuildSequenceStructure(Type type, Properties params, JdbcEnvironment jdbcEnvironment, QualifiedName sequenceName, int initialValue, int incrementSize) Methods inherited from class SequenceStyleGenerator
applyConfiguration, buildDatabaseStructure, buildTableStructure, configure, determineAdjustedIncrementSize, determineBulkInsertionIdentifierGenerationSelectFragment, determineIncrementSize, determineInitialValue, determineOptimizationStrategy, determineSequenceName, determineValueColumnName, generate, getDatabaseStructure, getIdentifierType, getOptimizer, initialize, isPhysicalSequence, registerExportables, supportsBulkInsertionIdentifierGenerationMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BeforeExecutionGenerator
generatedOnExecutionMethods inherited from interface Generator
allowAssignedIdentifiers, allowMutation, generatedBeforeExecution, generatedOnExecution, generatesOnForceIncrement, generatesOnInsert, generatesOnUpdate, generatesSometimesMethods inherited from interface IdentifierGenerator
configure, generate, getEventTypes
-
Constructor Details
-
OrderedSequenceGenerator
public OrderedSequenceGenerator()
-
-
Method Details
-
buildSequenceStructure
protected DatabaseStructure buildSequenceStructure(Type type, Properties params, JdbcEnvironment jdbcEnvironment, QualifiedName sequenceName, int initialValue, int incrementSize) - Overrides:
buildSequenceStructurein classSequenceStyleGenerator
-