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

public Class BasicExecutor

extends AbstractStatementExecutor
Class Inheritance
Imports
java.sql.PreparedStatement, .SQLException, java.util.Iterator, .List, org.hibernate.HibernateException, org.hibernate.engine.QueryParameters, .RowSelection, .SessionImplementor, org.hibernate.exception.JDBCExceptionHelper, org.hibernate.hql.ast.HqlSqlWalker, .QuerySyntaxException, .SqlGenerator, org.hibernate.param.ParameterSpecification, org.hibernate.persister.entity.Queryable, antlr.RecognitionException, org.slf4j.Logger, .LoggerFactory

Implementation of BasicExecutor.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private static final Logger
private final List<E>
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.
protected Queryable[]
public String[]
Inherited from org.hibernate.hql.ast.exec.AbstractStatementExecutor:
coordinateSharedCacheCleanupcreateTemporaryTableIfNecessarydropTemporaryTableIfNecessarygenerateIdInsertSelectgenerateIdSubselectgetFactorygetIdSelectParameterSpecificationsgetWalkershouldIsolateTemporaryTableDDL

Field Detail

logback to summary
private static final Logger log

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

parameterSpecificationsback to summary
private final List<E> parameterSpecifications
persisterback to summary
private final Queryable persister
sqlback to summary
private final String sql

Constructor Detail

BasicExecutorback to summary
public BasicExecutor(HqlSqlWalker walker, Queryable persister)

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.