Package org.hibernate.reactive.id.insert
Class ReactiveInsertReturningDelegate
- java.lang.Object
-
- org.hibernate.generator.values.AbstractGeneratedValuesMutationDelegate
-
- org.hibernate.id.insert.AbstractReturningDelegate
-
- org.hibernate.reactive.id.insert.ReactiveInsertReturningDelegate
-
- All Implemented Interfaces:
GeneratedValuesMutationDelegate
,InsertGeneratedIdentifierDelegate
,ReactiveGeneratedValuesMutationDelegate
,ReactiveAbstractReturningDelegate
,ReactiveInsertGeneratedIdentifierDelegate
public class ReactiveInsertReturningDelegate extends AbstractReturningDelegate implements ReactiveAbstractReturningDelegate
- See Also:
InsertReturningDelegate
-
-
Field Summary
-
Fields inherited from class org.hibernate.generator.values.AbstractGeneratedValuesMutationDelegate
jdbcValuesMappingProducer
-
-
Constructor Summary
Constructors Constructor Description ReactiveInsertReturningDelegate(PostInsertIdentityPersister persister, Dialect dialect)
ReactiveInsertReturningDelegate(EntityPersister persister, EventType timing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TableMutationBuilder<?>
createTableMutationBuilder(Expectation expectation, SessionFactoryImplementor sessionFactory)
protected GeneratedValues
executeAndExtractReturning(String sql, PreparedStatement preparedStatement, SharedSessionContractImplementor session)
PostInsertIdentityPersister
getPersister()
GeneratedValues
performMutation(PreparedStatementDetails statementDetails, JdbcValueBindings valueBindings, Object entity, SharedSessionContractImplementor session)
String
prepareIdentifierGeneratingInsert(String insertSQL)
PreparedStatement
prepareStatement(String sql, SharedSessionContractImplementor session)
CompletionStage<GeneratedValues>
reactiveExecuteAndExtractReturning(String sql, Object[] params, SharedSessionContractImplementor session)
-
Methods inherited from class org.hibernate.id.insert.AbstractReturningDelegate
executeAndExtract, performInsertReturning, releaseStatement
-
Methods inherited from class org.hibernate.generator.values.AbstractGeneratedValuesMutationDelegate
dialect, getGeneratedValuesMappingProducer, getTiming, supportsArbitraryValues, supportsRowId
-
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.values.GeneratedValuesMutationDelegate
getGeneratedValuesMappingProducer, getTiming, supportsArbitraryValues, supportsRowId
-
Methods inherited from interface org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
createTableInsertBuilder, performInsert, performInsert
-
Methods inherited from interface org.hibernate.reactive.id.insert.ReactiveAbstractReturningDelegate
reactivePerformInsertReturning, reactivePerformMutation, validateGeneratedIdentityId
-
-
-
-
Constructor Detail
-
ReactiveInsertReturningDelegate
public ReactiveInsertReturningDelegate(EntityPersister persister, EventType timing)
-
ReactiveInsertReturningDelegate
public ReactiveInsertReturningDelegate(PostInsertIdentityPersister persister, Dialect dialect)
-
-
Method Detail
-
createTableMutationBuilder
public TableMutationBuilder<?> createTableMutationBuilder(Expectation expectation, SessionFactoryImplementor sessionFactory)
- Specified by:
createTableMutationBuilder
in interfaceGeneratedValuesMutationDelegate
-
prepareIdentifierGeneratingInsert
public String prepareIdentifierGeneratingInsert(String insertSQL)
- Specified by:
prepareIdentifierGeneratingInsert
in interfaceInsertGeneratedIdentifierDelegate
-
prepareStatement
public PreparedStatement prepareStatement(String sql, SharedSessionContractImplementor session)
- Specified by:
prepareStatement
in interfaceGeneratedValuesMutationDelegate
- Specified by:
prepareStatement
in interfaceInsertGeneratedIdentifierDelegate
- Specified by:
prepareStatement
in interfaceReactiveAbstractReturningDelegate
-
getPersister
public PostInsertIdentityPersister getPersister()
- Specified by:
getPersister
in interfaceReactiveAbstractReturningDelegate
-
performMutation
public GeneratedValues performMutation(PreparedStatementDetails statementDetails, JdbcValueBindings valueBindings, Object entity, SharedSessionContractImplementor session)
- Specified by:
performMutation
in interfaceGeneratedValuesMutationDelegate
- Overrides:
performMutation
in classAbstractReturningDelegate
-
reactiveExecuteAndExtractReturning
public CompletionStage<GeneratedValues> reactiveExecuteAndExtractReturning(String sql, Object[] params, SharedSessionContractImplementor session)
- Specified by:
reactiveExecuteAndExtractReturning
in interfaceReactiveAbstractReturningDelegate
-
executeAndExtractReturning
protected GeneratedValues executeAndExtractReturning(String sql, PreparedStatement preparedStatement, SharedSessionContractImplementor session)
- Specified by:
executeAndExtractReturning
in classAbstractReturningDelegate
-
-