
Package ca.uhn.fhir.jpa.model.dialect
Class HapiSequenceStyleGenerator
java.lang.Object
ca.uhn.fhir.jpa.model.dialect.HapiSequenceStyleGenerator
- 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 HapiSequenceStyleGenerator
extends Object
implements org.hibernate.id.PersistentIdentifierGenerator, org.hibernate.id.BulkInsertionCapableIdentifierGenerator, org.hibernate.boot.model.relational.ExportableProducer
This is a sequence generator that wraps the Hibernate default sequence generator
SequenceStyleGenerator
and by default will therefore work exactly as the default would, but allows for customization.- See Also:
-
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(org.hibernate.type.Type theType, Properties theParams, org.hibernate.service.ServiceRegistry theServiceRegistry) determineBulkInsertionIdentifierGenerationSelectFragment(org.hibernate.boot.model.relational.SqlStringGenerationContext theContext) org.hibernate.id.enhanced.Optimizervoidinitialize(org.hibernate.boot.model.relational.SqlStringGenerationContext context) voidregisterExportables(org.hibernate.boot.model.relational.Database database) booleanbooleanMethods 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.id.Configurable
createMethods inherited from interface org.hibernate.generator.Generator
allowAssignedIdentifiers, generatedOnExecution, generatesOnInsert, generatesOnUpdate, generatesSometimesMethods inherited from interface org.hibernate.id.IdentifierGenerator
generate, getEventTypes
-
Field Details
-
ID_MASSAGER_TYPE_KEY
- See Also:
-
-
Constructor Details
-
HapiSequenceStyleGenerator
public HapiSequenceStyleGenerator()
-
-
Method Details
-
supportsBulkInsertionIdentifierGeneration
- Specified by:
supportsBulkInsertionIdentifierGenerationin interfaceorg.hibernate.id.BulkInsertionCapableIdentifierGenerator
-
determineBulkInsertionIdentifierGenerationSelectFragment
public String determineBulkInsertionIdentifierGenerationSelectFragment(org.hibernate.boot.model.relational.SqlStringGenerationContext theContext) - Specified by:
determineBulkInsertionIdentifierGenerationSelectFragmentin interfaceorg.hibernate.id.BulkInsertionCapableIdentifierGenerator
-
configure
public void configure(org.hibernate.type.Type theType, Properties theParams, org.hibernate.service.ServiceRegistry theServiceRegistry) throws org.hibernate.MappingException - Specified by:
configurein interfaceorg.hibernate.id.Configurable- Specified by:
configurein interfaceorg.hibernate.id.IdentifierGenerator- Throws:
org.hibernate.MappingException
-
registerExportables
- Specified by:
registerExportablesin interfaceorg.hibernate.boot.model.relational.ExportableProducer- Specified by:
registerExportablesin interfaceorg.hibernate.id.IdentifierGenerator
-
initialize
- Specified by:
initializein interfaceorg.hibernate.id.Configurable
-
supportsJdbcBatchInserts
- Specified by:
supportsJdbcBatchInsertsin interfaceorg.hibernate.id.IdentifierGenerator
-
getOptimizer
- Specified by:
getOptimizerin interfaceorg.hibernate.id.OptimizableGenerator
-