Class UpdateExecutionDelegate
- java.lang.Object
-
- org.hibernate.query.sqm.mutation.internal.temptable.UpdateExecutionDelegate
-
- All Implemented Interfaces:
TableBasedUpdateHandler.ExecutionDelegate
public class UpdateExecutionDelegate extends Object implements TableBasedUpdateHandler.ExecutionDelegate
-
-
Constructor Summary
Constructors Constructor Description UpdateExecutionDelegate(MultiTableSqmMutationConverter sqmConverter, TemporaryTable idTable, AfterUseAction afterUseAction, Function<SharedSessionContractImplementor,String> sessionUidAccess, DomainParameterXref domainParameterXref, TableGroup updatingTableGroup, Map<String,TableReference> tableReferenceByAlias, List<Assignment> assignments, Predicate suppliedPredicate, DomainQueryExecutionContext executionContext)
-
Method Summary
-
-
-
Constructor Detail
-
UpdateExecutionDelegate
public UpdateExecutionDelegate(MultiTableSqmMutationConverter sqmConverter, TemporaryTable idTable, AfterUseAction afterUseAction, Function<SharedSessionContractImplementor,String> sessionUidAccess, DomainParameterXref domainParameterXref, TableGroup updatingTableGroup, Map<String,TableReference> tableReferenceByAlias, List<Assignment> assignments, Predicate suppliedPredicate, DomainQueryExecutionContext executionContext)
-
-
Method Detail
-
execute
public int execute(ExecutionContext executionContext)
- Specified by:
execute
in interfaceTableBasedUpdateHandler.ExecutionDelegate
-
resolveTableReference
protected TableReference resolveTableReference(ColumnReference columnReference, Map<String,TableReference> tableReferenceByAlias)
-
resolveUnionTableReference
protected NamedTableReference resolveUnionTableReference(TableReference tableReference, String tableExpression)
-
isTableOptional
protected boolean isTableOptional(String tableExpression)
-
createExistsSubQuerySpec
protected QuerySpec createExistsSubQuerySpec(String targetTableExpression, Supplier<Consumer<SelectableConsumer>> tableKeyColumnVisitationSupplier, QuerySpec idTableSubQuery)
-
makeInsertSourceSelectQuerySpec
protected static QuerySpec makeInsertSourceSelectQuerySpec(QuerySpec idTableSubQuery)
-
resolveMutatingTableKeyExpression
protected Expression resolveMutatingTableKeyExpression(String tableExpression, Supplier<Consumer<SelectableConsumer>> tableKeyColumnVisitationSupplier)
-
asExpression
protected Expression asExpression(SelectClause selectClause)
-
getIdTable
protected TemporaryTable getIdTable()
For Hibernate Reactive
-
getSuppliedPredicate
protected Predicate getSuppliedPredicate()
-
getSqmConverter
protected MultiTableSqmMutationConverter getSqmConverter()
-
getSessionUidAccess
protected Function<SharedSessionContractImplementor,String> getSessionUidAccess()
-
getJdbcParameterBindings
protected JdbcParameterBindings getJdbcParameterBindings()
-
getEntityDescriptor
protected EntityMappingType getEntityDescriptor()
-
getAfterUseAction
protected AfterUseAction getAfterUseAction()
-
getUpdatingTableGroup
protected TableGroup getUpdatingTableGroup()
-
getAssignmentsByTable
protected Map<TableReference,List<Assignment>> getAssignmentsByTable()
-
getSessionFactory
protected SessionFactoryImplementor getSessionFactory()
-
-