Package io.meeds.common.persistence
Class PortableSequenceGenerator
java.lang.Object
io.meeds.common.persistence.PortableSequenceGenerator
- All Implemented Interfaces:
Serializable,org.hibernate.boot.model.relational.ExportableProducer,org.hibernate.generator.BeforeExecutionGenerator,org.hibernate.generator.Generator,org.hibernate.generator.OnExecutionGenerator,org.hibernate.id.Configurable,org.hibernate.id.IdentifierGenerator,org.hibernate.id.OptimizableGenerator,org.hibernate.id.PersistentIdentifierGenerator
public class PortableSequenceGenerator
extends Object
implements org.hibernate.generator.BeforeExecutionGenerator, org.hibernate.generator.OnExecutionGenerator, org.hibernate.id.Configurable, org.hibernate.id.PersistentIdentifierGenerator
- See Also:
-
Field Summary
Fields 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, OPTIONS, PK, SCHEMA, TABLE, TABLES -
Constructor Summary
ConstructorsConstructorDescriptionPortableSequenceGenerator(PortableSequence config, Member annotatedMember, org.hibernate.generator.GeneratorCreationContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(org.hibernate.generator.GeneratorCreationContext context, Properties parameters) generate(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner, Object currentValue, org.hibernate.generator.EventType eventType) booleanEnumSet<org.hibernate.generator.EventType> org.hibernate.id.insert.InsertGeneratedIdentifierDelegategetGeneratedIdentifierDelegate(org.hibernate.persister.entity.EntityPersister persister) org.hibernate.id.enhanced.OptimizerString[]getReferencedColumnValues(org.hibernate.dialect.Dialect dialect) voidinitialize(org.hibernate.boot.model.relational.SqlStringGenerationContext context) booleanreferenceColumnsInSql(org.hibernate.dialect.Dialect dialect) voidregisterExportables(org.hibernate.boot.model.relational.Database database) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.generator.Generator
allowAssignedIdentifiers, allowMutation, generatedBeforeExecution, generatedOnExecution, generatesOnForceIncrement, generatesOnInsert, generatesOnUpdate, generatesSometimesMethods inherited from interface org.hibernate.id.IdentifierGenerator
configureMethods inherited from interface org.hibernate.generator.OnExecutionGenerator
getUniqueKeyPropertyNames
-
Constructor Details
-
PortableSequenceGenerator
public PortableSequenceGenerator(PortableSequence config, Member annotatedMember, org.hibernate.generator.GeneratorCreationContext context)
-
-
Method Details
-
configure
public void configure(org.hibernate.generator.GeneratorCreationContext context, Properties parameters) throws org.hibernate.MappingException - Specified by:
configurein interfaceorg.hibernate.id.Configurable- Throws:
org.hibernate.MappingException
-
registerExportables
public void registerExportables(org.hibernate.boot.model.relational.Database database) - Specified by:
registerExportablesin interfaceorg.hibernate.boot.model.relational.ExportableProducer- Specified by:
registerExportablesin interfaceorg.hibernate.id.IdentifierGenerator
-
initialize
public void initialize(org.hibernate.boot.model.relational.SqlStringGenerationContext context) - Specified by:
initializein interfaceorg.hibernate.id.Configurable
-
getEventTypes
- Specified by:
getEventTypesin interfaceorg.hibernate.generator.Generator- Specified by:
getEventTypesin interfaceorg.hibernate.id.IdentifierGenerator
-
generatedOnExecution
public boolean generatedOnExecution()- Specified by:
generatedOnExecutionin interfaceorg.hibernate.generator.BeforeExecutionGenerator- Specified by:
generatedOnExecutionin interfaceorg.hibernate.generator.Generator- Specified by:
generatedOnExecutionin interfaceorg.hibernate.generator.OnExecutionGenerator
-
referenceColumnsInSql
public boolean referenceColumnsInSql(org.hibernate.dialect.Dialect dialect) - Specified by:
referenceColumnsInSqlin interfaceorg.hibernate.generator.OnExecutionGenerator
-
writePropertyValue
public boolean writePropertyValue()- Specified by:
writePropertyValuein interfaceorg.hibernate.generator.OnExecutionGenerator
-
getReferencedColumnValues
- Specified by:
getReferencedColumnValuesin interfaceorg.hibernate.generator.OnExecutionGenerator
-
getOptimizer
public org.hibernate.id.enhanced.Optimizer getOptimizer()- Specified by:
getOptimizerin interfaceorg.hibernate.id.OptimizableGenerator
-
getGeneratedIdentifierDelegate
public org.hibernate.id.insert.InsertGeneratedIdentifierDelegate getGeneratedIdentifierDelegate(org.hibernate.persister.entity.EntityPersister persister) - Specified by:
getGeneratedIdentifierDelegatein interfaceorg.hibernate.generator.OnExecutionGenerator
-