
Package ca.uhn.fhir.jpa.model.dialect
Class HapiSequenceStyleGenerator
java.lang.Object
ca.uhn.fhir.jpa.model.dialect.HapiSequenceStyleGenerator
- All Implemented Interfaces:
org.hibernate.boot.model.relational.ExportableProducer
,org.hibernate.id.BulkInsertionCapableIdentifierGenerator
,org.hibernate.id.Configurable
,org.hibernate.id.IdentifierGenerator
,org.hibernate.id.PersistentIdentifierGenerator
public class HapiSequenceStyleGenerator
extends Object
implements org.hibernate.id.IdentifierGenerator, org.hibernate.id.PersistentIdentifierGenerator, org.hibernate.id.BulkInsertionCapableIdentifierGenerator
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.-
Field Summary
Fields inherited from interface org.hibernate.id.IdentifierGenerator
ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
Fields inherited from interface org.hibernate.id.PersistentIdentifierGenerator
CATALOG, IDENTIFIER_NORMALIZER, PK, SCHEMA, TABLE, TABLES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(org.hibernate.type.Type theType, Properties theParams, org.hibernate.service.ServiceRegistry theServiceRegistry) determineBulkInsertionIdentifierGenerationSelectFragment
(org.hibernate.boot.model.relational.SqlStringGenerationContext theContext) void
initialize
(org.hibernate.boot.model.relational.SqlStringGenerationContext context) void
registerExportables
(org.hibernate.boot.model.relational.Database database) boolean
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.id.BulkInsertionCapableIdentifierGenerator
determineBulkInsertionIdentifierGenerationSelectFragment
Methods inherited from interface org.hibernate.id.PersistentIdentifierGenerator
generatorKey
-
Constructor Details
-
HapiSequenceStyleGenerator
public HapiSequenceStyleGenerator()
-
-
Method Details
-
supportsBulkInsertionIdentifierGeneration
- Specified by:
supportsBulkInsertionIdentifierGeneration
in interfaceorg.hibernate.id.BulkInsertionCapableIdentifierGenerator
-
determineBulkInsertionIdentifierGenerationSelectFragment
public String determineBulkInsertionIdentifierGenerationSelectFragment(org.hibernate.boot.model.relational.SqlStringGenerationContext theContext) - Specified by:
determineBulkInsertionIdentifierGenerationSelectFragment
in 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:
configure
in interfaceorg.hibernate.id.Configurable
- Specified by:
configure
in interfaceorg.hibernate.id.IdentifierGenerator
- Throws:
org.hibernate.MappingException
-
registerExportables
- Specified by:
registerExportables
in interfaceorg.hibernate.boot.model.relational.ExportableProducer
- Specified by:
registerExportables
in interfaceorg.hibernate.id.IdentifierGenerator
-
initialize
- Specified by:
initialize
in interfaceorg.hibernate.id.IdentifierGenerator
-
supportsJdbcBatchInserts
- Specified by:
supportsJdbcBatchInserts
in interfaceorg.hibernate.id.IdentifierGenerator
-