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

public Class MultiTableUpdateExecutor

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

Implementation of MultiTableUpdateExecutor.
Author
Steve Ebersole

Field Summary

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

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.
public Queryable
protected Queryable[]
public String[]
Inherited from org.hibernate.hql.ast.exec.AbstractStatementExecutor:
coordinateSharedCacheCleanupcreateTemporaryTableIfNecessarydropTemporaryTableIfNecessarygenerateIdInsertSelectgenerateIdSubselectgetFactorygetIdSelectParameterSpecificationsgetWalkershouldIsolateTemporaryTableDDL

Field Detail

hqlParametersback to summary
private final ParameterSpecification[][] hqlParameters
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
updatesback to summary
private final String[] updates

Constructor Detail

MultiTableUpdateExecutorback to summary
public MultiTableUpdateExecutor(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.

getAffectedQueryableback to summary
public Queryable getAffectedQueryable()
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.