Package org.hibernate.engine
Class ParameterBinder
java.lang.Object
org.hibernate.engine.ParameterBinder
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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic intbindNamedParameters(PreparedStatement ps, Map namedParams, int start, ParameterBinder.NamedParameterSource source, SessionImplementor session) static intbindNamedParameters(PreparedStatement ps, QueryParameters queryParameters, int start, ParameterBinder.NamedParameterSource source, SessionImplementor session) static intbindPositionalParameters(PreparedStatement st, Object[] values, Type[] types, int start, SessionImplementor session) static intbindPositionalParameters(PreparedStatement st, QueryParameters queryParameters, int start, SessionImplementor session) static intbindQueryParameters(PreparedStatement st, QueryParameters queryParameters, int start, ParameterBinder.NamedParameterSource source, SessionImplementor session)
-
Method Details
-
bindQueryParameters
public static int bindQueryParameters(PreparedStatement st, QueryParameters queryParameters, int start, ParameterBinder.NamedParameterSource source, SessionImplementor session) throws SQLException, HibernateException - Throws:
SQLExceptionHibernateException
-
bindPositionalParameters
public static int bindPositionalParameters(PreparedStatement st, QueryParameters queryParameters, int start, SessionImplementor session) throws SQLException, HibernateException - Throws:
SQLExceptionHibernateException
-
bindPositionalParameters
public static int bindPositionalParameters(PreparedStatement st, Object[] values, Type[] types, int start, SessionImplementor session) throws SQLException, HibernateException - Throws:
SQLExceptionHibernateException
-
bindNamedParameters
public static int bindNamedParameters(PreparedStatement ps, QueryParameters queryParameters, int start, ParameterBinder.NamedParameterSource source, SessionImplementor session) throws SQLException, HibernateException - Throws:
SQLExceptionHibernateException
-
bindNamedParameters
public static int bindNamedParameters(PreparedStatement ps, Map namedParams, int start, ParameterBinder.NamedParameterSource source, SessionImplementor session) throws SQLException, HibernateException - Throws:
SQLExceptionHibernateException
-