org.hibernate.envers.enhanced
Class OrderedSequenceGenerator
java.lang.Object
org.hibernate.id.enhanced.SequenceStyleGenerator
org.hibernate.envers.enhanced.OrderedSequenceGenerator
- All Implemented Interfaces:
- BulkInsertionCapableIdentifierGenerator, Configurable, IdentifierGenerator, PersistentIdentifierGenerator
public class OrderedSequenceGenerator
- extends SequenceStyleGenerator
Revision number generator has to produce values in ascending order (gaps may occur).
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 |
Methods inherited from class org.hibernate.id.enhanced.SequenceStyleGenerator |
buildDatabaseStructure, configure, determineAdjustedIncrementSize, determineBulkInsertionIdentifierGenerationSelectFragment, determineIncrementSize, determineInitialValue, determineOptimizationStrategy, determineSequenceName, determineValueColumnName, generate, generatorKey, getDatabaseStructure, getIdentifierType, getOptimizer, sqlDropStrings, supportsBulkInsertionIdentifierGeneration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrderedSequenceGenerator
public OrderedSequenceGenerator()
sqlCreateStrings
public String[] sqlCreateStrings(Dialect dialect)
throws HibernateException
- Description copied from interface:
PersistentIdentifierGenerator
- The SQL required to create the underlying database objects.
- Specified by:
sqlCreateStrings
in interface PersistentIdentifierGenerator
- Overrides:
sqlCreateStrings
in class SequenceStyleGenerator
- Parameters:
dialect
- The dialect against which to generate the create command(s)
- Returns:
- The create command(s)
- Throws:
HibernateException
- problem creating the create command(s)
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.