Package org.hibernate.reactive.id.impl
Class ReactiveGeneratorWrapper
- java.lang.Object
-
- org.hibernate.reactive.id.impl.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
-
-
Constructor Summary
Constructors Constructor Description ReactiveGeneratorWrapper(ReactiveIdentifierGenerator<?> reactiveGenerator)
ReactiveGeneratorWrapper(ReactiveIdentifierGenerator<?> reactiveGenerator, org.hibernate.id.IdentifierGenerator generator)
-
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 aCompletionStage
.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
-
-
-
-
Constructor Detail
-
ReactiveGeneratorWrapper
public ReactiveGeneratorWrapper(ReactiveIdentifierGenerator<?> reactiveGenerator)
-
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 interfaceorg.hibernate.id.IdentifierGenerator
-
generate
public java.util.concurrent.CompletionStage<java.lang.Object> generate(ReactiveConnectionSupplier session, java.lang.Object entity)
Description copied from interface:ReactiveIdentifierGenerator
Returns a generated identifier, via aCompletionStage
.- Specified by:
generate
in interfaceReactiveIdentifierGenerator<java.lang.Object>
- Parameters:
session
- the reactive session
-
generate
public java.lang.Object generate(org.hibernate.engine.spi.SharedSessionContractImplementor session, java.lang.Object object)
- Specified by:
generate
in interfaceorg.hibernate.id.IdentifierGenerator
-
registerExportables
public void registerExportables(org.hibernate.boot.model.relational.Database database)
- Specified by:
registerExportables
in interfaceorg.hibernate.boot.model.relational.ExportableProducer
- Specified by:
registerExportables
in interfaceorg.hibernate.id.IdentifierGenerator
-
-