org.hibernate.hql.ast
Class UpdateStatementExecutor

java.lang.Object
  extended byorg.hibernate.hql.ast.UpdateStatementExecutor

public class UpdateStatementExecutor
extends Object

Performs exeuction of update/delete statements issued through HQL.

Author:
Steve Ebersole

Constructor Summary
UpdateStatementExecutor(String sql, HqlSqlWalker walker, SessionFactoryImplementor factory)
          Constructs a instance of UpdateStatementExecutor.
 
Method Summary
 int execute(QueryParameters parameters, SessionImplementor session)
          Execute the sql managed by this executor using the given parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateStatementExecutor

public UpdateStatementExecutor(String sql,
                               HqlSqlWalker walker,
                               SessionFactoryImplementor factory)
Constructs a instance of UpdateStatementExecutor.

Parameters:
sql - The sql to be built into PreparedStatement.
walker - The walker containing the semantic analysis of the parsed HQL.
factory -
Method Detail

execute

public int execute(QueryParameters parameters,
                   SessionImplementor session)
            throws HibernateException
Execute the sql managed by this executor using the given parameters.

Parameters:
parameters - Essentially bind information for this processing.
session - The session originating the request.
Returns:
The number of entities updated/deleted.
Throws:
HibernateException