Class ReactiveGeneratorWrapper

  • All Implemented Interfaces:
    java.io.Serializable, org.hibernate.boot.model.relational.ExportableProducer, org.hibernate.generator.BeforeExecutionGenerator, org.hibernate.generator.Generator, org.hibernate.id.Configurable, org.hibernate.id.IdentifierGenerator, ReactiveIdentifierGenerator<java.lang.Object>

    public class ReactiveGeneratorWrapper
    extends java.lang.Object
    implements org.hibernate.id.IdentifierGenerator, org.hibernate.boot.model.relational.ExportableProducer, ReactiveIdentifierGenerator<java.lang.Object>
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from interface org.hibernate.id.IdentifierGenerator

        CONTRIBUTOR_NAME, ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object generate​(org.hibernate.engine.spi.SharedSessionContractImplementor session, java.lang.Object object)  
      java.util.concurrent.CompletionStage<java.lang.Object> generate​(ReactiveConnectionSupplier session, java.lang.Object entity)
      Returns a generated identifier, via a CompletionStage.
      void initialize​(org.hibernate.boot.model.relational.SqlStringGenerationContext context)  
      void registerExportables​(org.hibernate.boot.model.relational.Database database)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.hibernate.generator.BeforeExecutionGenerator

        generatedOnExecution
      • Methods inherited from interface org.hibernate.generator.Generator

        generatesOnInsert, generatesOnUpdate, generatesSometimes
      • Methods inherited from interface org.hibernate.id.IdentifierGenerator

        configure, generate, getEventTypes, supportsJdbcBatchInserts
    • Constructor Detail

      • ReactiveGeneratorWrapper

        public ReactiveGeneratorWrapper​(ReactiveIdentifierGenerator<?> reactiveGenerator,
                                        org.hibernate.id.IdentifierGenerator generator)
    • Method Detail

      • initialize

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

        public java.lang.Object generate​(org.hibernate.engine.spi.SharedSessionContractImplementor session,
                                         java.lang.Object object)
        Specified by:
        generate in interface org.hibernate.id.IdentifierGenerator
      • 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