org.hibernate.hql.ast.exec

Class BasicExecutor

Implemented Interfaces:
StatementExecutor

public class BasicExecutor
extends AbstractStatementExecutor

Implementation of BasicExecutor.
Author:
Steve Ebersole

Constructor Summary

BasicExecutor(HqlSqlWalker walker, Queryable persister)

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

BasicExecutor

public BasicExecutor(HqlSqlWalker walker,
                     Queryable persister)

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