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.
  • Constructor Details

  • Method Details

    • supportsBulkInsertionIdentifierGeneration

      Specified by:
      supportsBulkInsertionIdentifierGeneration in interface org.hibernate.id.BulkInsertionCapableIdentifierGenerator
    • determineBulkInsertionIdentifierGenerationSelectFragment

      public String determineBulkInsertionIdentifierGenerationSelectFragment(org.hibernate.boot.model.relational.SqlStringGenerationContext theContext)
      Specified by:
      determineBulkInsertionIdentifierGenerationSelectFragment in interface org.hibernate.id.BulkInsertionCapableIdentifierGenerator
    • generate

      public Serializable generate(org.hibernate.engine.spi.SharedSessionContractImplementor theSession, Object theObject) throws org.hibernate.HibernateException
      Specified by:
      generate in interface org.hibernate.id.IdentifierGenerator
      Throws:
      org.hibernate.HibernateException
    • configure

      public void configure(org.hibernate.type.Type theType, Properties theParams, org.hibernate.service.ServiceRegistry theServiceRegistry) throws org.hibernate.MappingException
      Specified by:
      configure in interface org.hibernate.id.Configurable
      Specified by:
      configure in interface org.hibernate.id.IdentifierGenerator
      Throws:
      org.hibernate.MappingException
    • registerExportables

      public void registerExportables(org.hibernate.boot.model.relational.Database database)
      Specified by:
      registerExportables in interface org.hibernate.boot.model.relational.ExportableProducer
      Specified by:
      registerExportables in interface org.hibernate.id.IdentifierGenerator
    • initialize

      public void initialize(org.hibernate.boot.model.relational.SqlStringGenerationContext context)
      Specified by:
      initialize in interface org.hibernate.id.IdentifierGenerator
    • supportsJdbcBatchInserts

      public boolean supportsJdbcBatchInserts()
      Specified by:
      supportsJdbcBatchInserts in interface org.hibernate.id.IdentifierGenerator