org.hibernate.hql.ast.exec

Class MultiTableDeleteExecutor

Implemented Interfaces:
StatementExecutor

public class MultiTableDeleteExecutor
extends AbstractStatementExecutor

Implementation of MultiTableDeleteExecutor.
Author:
Steve Ebersole

Constructor Summary

MultiTableDeleteExecutor(HqlSqlWalker walker)

Method Summary

int
execute(QueryParameters parameters, SessionImplementor session)
Execute the sql managed by this executor using the given parameters.
protected Queryable[]
getAffectedQueryables()
String[]
getSqlStatements()

Methods inherited from class org.hibernate.hql.ast.exec.AbstractStatementExecutor

coordinateSharedCacheCleanup, createTemporaryTableIfNecessary, dropTemporaryTableIfNecessary, generateIdInsertSelect, generateIdSubselect, getAffectedQueryables, getFactory, getWalker, shouldIsolateTemporaryTableDDL

Constructor Details

MultiTableDeleteExecutor

public MultiTableDeleteExecutor(HqlSqlWalker walker)

Method Details

execute

public int execute(QueryParameters parameters,
                   SessionImplementor session)
            throws HibernateException
Execute the sql managed by this executor using the given parameters.
Specified by:
execute in interface StatementExecutor
Parameters:
parameters - Essentially bind information for this processing.
session - The session originating the request.
Returns:
The number of entities updated/deleted.

getAffectedQueryables

protected Queryable[] getAffectedQueryables()
Overrides:
getAffectedQueryables in interface AbstractStatementExecutor

getSqlStatements

public String[] getSqlStatements()
Specified by:
getSqlStatements in interface StatementExecutor