org.hibernate.hql.ast
Class UpdateStatementExecutor
java.lang.Object
org.hibernate.hql.ast.UpdateStatementExecutor
- public class UpdateStatementExecutor
- extends Object
Performs exeuction of update/delete statements issued through HQL.
- Author:
- Steve Ebersole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
-
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