KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > param > ParameterSpecification


1 // $Id: ParameterSpecification.java,v 1.1 2005/07/12 19:56:56 steveebersole Exp $
2
package org.hibernate.param;
3
4 import org.hibernate.engine.QueryParameters;
5 import org.hibernate.engine.SessionImplementor;
6
7 import java.sql.PreparedStatement JavaDoc;
8 import java.sql.SQLException JavaDoc;
9
10 /**
11  * Maintains information relating to parameters which need to get bound into a
12  * JDBC {@link PreparedStatement}.
13  *
14  * @author Steve Ebersole
15  */

16 public interface ParameterSpecification {
17     /**
18      * Bind the appropriate value into the given statement at the specified position.
19      *
20      * @param statement The statement into which the value should be bound.
21      * @param qp The defined values for the current query execution.
22      * @param session The session against which the current execution is occuring.
23      * @param position The position from which to start binding value(s).
24      *
25      * @return The number of sql bind positions "eaten" by this bind operation.
26      */

27     public int bind(PreparedStatement JavaDoc statement, QueryParameters qp, SessionImplementor session, int position) throws SQLException JavaDoc;
28 }
29
Popular Tags