站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

ParameterBinder (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.engine
Class ParameterBinder

java.lang.Object
  extended byorg.hibernate.engine.ParameterBinder

public class ParameterBinder
extends Object

Centralizes the commonality regarding binding of parameter values into PreparedStatements as this logic is used in many places.

Ideally would like to move to the parameter handling as it is done in the hql.ast package.

Author:
Steve Ebersole

Nested Class Summary
static interface ParameterBinder.NamedParameterSource
           
 
Method Summary
static int bindNamedParameters(PreparedStatement ps, Map namedParams, int start, ParameterBinder.NamedParameterSource source, SessionImplementor session)
           
static int bindNamedParameters(PreparedStatement ps, QueryParameters queryParameters, int start, ParameterBinder.NamedParameterSource source, SessionImplementor session)
           
static int bindPositionalParameters(PreparedStatement st, Object[] values, Type[] types, int start, SessionImplementor session)
           
static int bindPositionalParameters(PreparedStatement st, QueryParameters queryParameters, int start, SessionImplementor session)
           
static int bindQueryParameters(PreparedStatement st, QueryParameters queryParameters, int start, ParameterBinder.NamedParameterSource source, SessionImplementor session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

bindQueryParameters

public static int bindQueryParameters(PreparedStatement st,
                                      QueryParameters queryParameters,
                                      int start,
                                      ParameterBinder.NamedParameterSource source,
                                      SessionImplementor session)
                               throws SQLException,
                                      HibernateException
Throws:
SQLException
HibernateException

bindPositionalParameters

public static int bindPositionalParameters(PreparedStatement st,
                                           QueryParameters queryParameters,
                                           int start,
                                           SessionImplementor session)
                                    throws SQLException,
                                           HibernateException
Throws:
SQLException
HibernateException

bindPositionalParameters

public static int bindPositionalParameters(PreparedStatement st,
                                           Object[] values,
                                           Type[] types,
                                           int start,
                                           SessionImplementor session)
                                    throws SQLException,
                                           HibernateException
Throws:
SQLException
HibernateException

bindNamedParameters

public static int bindNamedParameters(PreparedStatement ps,
                                      QueryParameters queryParameters,
                                      int start,
                                      ParameterBinder.NamedParameterSource source,
                                      SessionImplementor session)
                               throws SQLException,
                                      HibernateException
Throws:
SQLException
HibernateException

bindNamedParameters

public static int bindNamedParameters(PreparedStatement ps,
                                      Map namedParams,
                                      int start,
                                      ParameterBinder.NamedParameterSource source,
                                      SessionImplementor session)
                               throws SQLException,
                                      HibernateException
Throws:
SQLException
HibernateException