KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > hql > ast > exec > StatementExecutor


1 // $Id: StatementExecutor.java,v 1.1 2005/07/12 20:27:16 steveebersole Exp $
2
package org.hibernate.hql.ast.exec;
3
4 import org.hibernate.HibernateException;
5 import org.hibernate.engine.QueryParameters;
6 import org.hibernate.engine.SessionImplementor;
7
8 /**
9  * Encapsulates the strategy required to execute various types of update, delete,
10  * and insert statements issued through HQL.
11  *
12  * @author Steve Ebersole
13  */

14 public interface StatementExecutor {
15
16     /**
17      * Execute the sql managed by this executor using the given parameters.
18      *
19      * @param parameters Essentially bind information for this processing.
20      * @param session The session originating the request.
21      * @return The number of entities updated/deleted.
22      * @throws HibernateException
23      */

24     public int execute(QueryParameters parameters, SessionImplementor session) throws HibernateException;
25
26 }
27
Popular Tags