Class TableBasedDeleteHandler
- java.lang.Object
-
- org.hibernate.query.sqm.mutation.spi.AbstractMutationHandler
-
- org.hibernate.query.sqm.mutation.internal.temptable.TableBasedDeleteHandler
-
- All Implemented Interfaces:
DeleteHandler
,Handler
public class TableBasedDeleteHandler extends AbstractMutationHandler implements DeleteHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TableBasedDeleteHandler.ExecutionDelegate
-
Constructor Summary
Constructors Constructor Description TableBasedDeleteHandler(SqmDeleteStatement<?> sqmDeleteStatement, DomainParameterXref domainParameterXref, TemporaryTable idTable, AfterUseAction afterUseAction, Function<SharedSessionContractImplementor,String> sessionUidAccess, SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
execute(DomainQueryExecutionContext executionContext)
Execute the multi-table update or delete indicated by the SQM AST passed in when this Handler was created.protected AfterUseAction
getAfterUseAction()
protected DomainParameterXref
getDomainParameterXref()
protected TemporaryTable
getIdTable()
protected Function<SharedSessionContractImplementor,String>
getSessionUidAccess()
SqmDeleteStatement<?>
getSqmDeleteOrUpdateStatement()
protected TableBasedDeleteHandler.ExecutionDelegate
resolveDelegate(DomainQueryExecutionContext executionContext)
-
Methods inherited from class org.hibernate.query.sqm.mutation.spi.AbstractMutationHandler
getEntityDescriptor, getSessionFactory
-
-
-
-
Constructor Detail
-
TableBasedDeleteHandler
public TableBasedDeleteHandler(SqmDeleteStatement<?> sqmDeleteStatement, DomainParameterXref domainParameterXref, TemporaryTable idTable, AfterUseAction afterUseAction, Function<SharedSessionContractImplementor,String> sessionUidAccess, SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
execute
public int execute(DomainQueryExecutionContext executionContext)
Description copied from interface:Handler
Execute the multi-table update or delete indicated by the SQM AST passed in when this Handler was created.
-
resolveDelegate
protected TableBasedDeleteHandler.ExecutionDelegate resolveDelegate(DomainQueryExecutionContext executionContext)
-
getIdTable
protected TemporaryTable getIdTable()
-
getAfterUseAction
protected AfterUseAction getAfterUseAction()
-
getSessionUidAccess
protected Function<SharedSessionContractImplementor,String> getSessionUidAccess()
-
getDomainParameterXref
protected DomainParameterXref getDomainParameterXref()
-
getSqmDeleteOrUpdateStatement
public SqmDeleteStatement<?> getSqmDeleteOrUpdateStatement()
- Overrides:
getSqmDeleteOrUpdateStatement
in classAbstractMutationHandler
-
-