Top Description Fields Constructors Methods
org.hibernate.hql.ast.exec

public Class MultiTableDeleteExecutor

extends AbstractStatementExecutor
Class Inheritance
Imports
java.sql.PreparedStatement, .SQLException, java.util.Iterator, org.hibernate.HibernateException, org.hibernate.engine.QueryParameters, .SessionImplementor, org.hibernate.exception.JDBCExceptionHelper, org.hibernate.hql.ast.HqlSqlWalker, org.hibernate.hql.ast.tree.DeleteStatement, .FromElement, org.hibernate.param.ParameterSpecification, org.hibernate.persister.entity.Queryable, org.hibernate.sql.Delete, org.hibernate.util.StringHelper, org.slf4j.Logger, .LoggerFactory

Implementation of MultiTableDeleteExecutor.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final String[]
private final String
private static final Logger
private final Queryable

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
execute(QueryParameters
Essentially bind information for this processing.
parameters
,
SessionImplementor
The session originating the request.
session
)

Implements org.hibernate.hql.ast.exec.StatementExecutor.execute.

Execute the sql managed by this executor using the given parameters.
protected Queryable[]
public String[]
Inherited from org.hibernate.hql.ast.exec.AbstractStatementExecutor:
coordinateSharedCacheCleanupcreateTemporaryTableIfNecessarydropTemporaryTableIfNecessarygenerateIdInsertSelectgenerateIdSubselectgetFactorygetIdSelectParameterSpecificationsgetWalkershouldIsolateTemporaryTableDDL

Field Detail

deletesback to summary
private final String[] deletes
idInsertSelectback to summary
private final String idInsertSelect
logback to summary
private static final Logger log

Hides org.hibernate.hql.ast.exec.AbstractStatementExecutor.log.

persisterback to summary
private final Queryable persister

Constructor Detail

MultiTableDeleteExecutorback to summary
public MultiTableDeleteExecutor(HqlSqlWalker walker)

Method Detail

executeback to summary
public int execute(QueryParameters parameters, SessionImplementor session) throws HibernateException

Implements org.hibernate.hql.ast.exec.StatementExecutor.execute.

Doc from org.hibernate.hql.ast.exec.StatementExecutor.execute.

Execute the sql managed by this executor using the given parameters.

Parameters
parameters:QueryParameters

Essentially bind information for this processing.

session:SessionImplementor

The session originating the request.

Returns:int

The number of entities updated/deleted.

getAffectedQueryablesback to summary
protected Queryable[] getAffectedQueryables()

Implements abstract org.hibernate.hql.ast.exec.AbstractStatementExecutor.getAffectedQueryables.

getSqlStatementsback to summary
public String[] getSqlStatements()

Implements org.hibernate.hql.ast.exec.StatementExecutor.getSqlStatements.