Class SequenceOptimizerGenerator
java.lang.Object
org.hibernate.id.enhanced.SequenceStyleGenerator
io.hypersistence.utils.hibernate.id.SequenceOptimizerGenerator
- 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 SequenceOptimizerGenerator
extends org.hibernate.id.enhanced.SequenceStyleGenerator
Hibernate ValueGenerator for generating sequence values when using the
SequenceOptimizer annotation.- Author:
- Vlad Mihalcea
- See Also:
-
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_PARAMFields inherited from interface org.hibernate.id.IdentifierGenerator
CONTRIBUTOR_NAME, ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAMEFields inherited from interface org.hibernate.id.OptimizableGenerator
DEFAULT_INCREMENT_SIZE, DEFAULT_INITIAL_VALUE, IMPLICIT_NAME_BASE, INCREMENT_PARAM, INITIAL_PARAM, OPT_PARAMFields inherited from interface org.hibernate.id.PersistentIdentifierGenerator
CATALOG, IDENTIFIER_NORMALIZER, PK, SCHEMA, TABLE, TABLES -
Constructor Summary
ConstructorsConstructorDescriptionSequenceOptimizerGenerator(SequenceOptimizer annotation, Member annotatedMember, org.hibernate.id.factory.spi.CustomIdGeneratorCreationContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(org.hibernate.type.Type type, Properties parameters, org.hibernate.service.ServiceRegistry serviceRegistry) Methods inherited from class org.hibernate.id.enhanced.SequenceStyleGenerator
buildDatabaseStructure, buildSequenceStructure, buildTableStructure, create, determineAdjustedIncrementSize, determineBulkInsertionIdentifierGenerationSelectFragment, determineIncrementSize, determineInitialValue, determineOptimizationStrategy, determineSequenceName, determineValueColumnName, generate, getDatabaseStructure, getIdentifierType, getOptimizer, initialize, isPhysicalSequence, registerExportables, supportsBulkInsertionIdentifierGenerationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.generator.BeforeExecutionGenerator
generatedOnExecutionMethods inherited from interface org.hibernate.generator.Generator
allowAssignedIdentifiers, generatedOnExecution, generatesOnInsert, generatesOnUpdate, generatesSometimesMethods inherited from interface org.hibernate.id.IdentifierGenerator
generate, getEventTypes, supportsJdbcBatchInserts
-
Constructor Details
-
SequenceOptimizerGenerator
public SequenceOptimizerGenerator(SequenceOptimizer annotation, Member annotatedMember, org.hibernate.id.factory.spi.CustomIdGeneratorCreationContext context)
-
-
Method Details
-
configure
public void configure(org.hibernate.type.Type type, Properties parameters, org.hibernate.service.ServiceRegistry serviceRegistry) throws org.hibernate.MappingException - Specified by:
configurein interfaceorg.hibernate.id.Configurable- Specified by:
configurein interfaceorg.hibernate.id.IdentifierGenerator- Overrides:
configurein classorg.hibernate.id.enhanced.SequenceStyleGenerator- Throws:
org.hibernate.MappingException
-