类 ParameterBinder
- java.lang.Object
-
- org.hibernate.engine.internal.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.- 作者:
- Steve Ebersole
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interfaceParameterBinder.NamedParameterSourceHelper contract for dealing with named parameters and resolving their locations
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static intbindQueryParameters(PreparedStatement st, QueryParameters queryParameters, int start, ParameterBinder.NamedParameterSource source, SessionImplementor session)Perform parameter binding
-
-
-
方法详细资料
-
bindQueryParameters
public static int bindQueryParameters(PreparedStatement st, QueryParameters queryParameters, int start, ParameterBinder.NamedParameterSource source, SessionImplementor session) throws SQLException, HibernateException
Perform parameter binding- 参数:
st- The statement to bind parameters toqueryParameters- The parametersstart- The initial bind positionsource- The named parameter source, for resolving the locations of named parameterssession- The session- 返回:
- The next bind position after the last position we bound here.
- 抛出:
SQLException- Indicates a problem calling JDBC bind methodsHibernateException- Indicates a problem access bind values.
-
-