Top Description Inners Fields Constructors Methods
org.hibernate.engine

public Class ParameterBinder

extends Object
Class Inheritance
Imports
org.hibernate.HibernateException, org.hibernate.type.Type, org.slf4j.Logger, .LoggerFactory, java.sql.PreparedStatement, .SQLException, java.util.Map, .Iterator

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 and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static int
bindNamedParameters(final PreparedStatement ps, final QueryParameters queryParameters, final int start, final ParameterBinder.NamedParameterSource source, final SessionImplementor session)

public static int
bindNamedParameters(final PreparedStatement ps, final Map<K, V> namedParams, final int start, final ParameterBinder.NamedParameterSource source, final SessionImplementor session)

public static int
bindPositionalParameters(final PreparedStatement st, final QueryParameters queryParameters, final int start, final SessionImplementor session)

public static int
bindPositionalParameters(final PreparedStatement st, final Object[] values, final Type[] types, final int start, final SessionImplementor session)

public static int
bindQueryParameters(final PreparedStatement st, final QueryParameters queryParameters, final int start, final ParameterBinder.NamedParameterSource source, SessionImplementor session)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private static final Logger log

Constructor Detail

ParameterBinderback to summary
private ParameterBinder()

Method Detail

bindNamedParametersback to summary
public static int bindNamedParameters(final PreparedStatement ps, final QueryParameters queryParameters, final int start, final ParameterBinder.NamedParameterSource source, final SessionImplementor session) throws SQLException, HibernateException
bindNamedParametersback to summary
public static int bindNamedParameters(final PreparedStatement ps, final Map<K, V> namedParams, final int start, final ParameterBinder.NamedParameterSource source, final SessionImplementor session) throws SQLException, HibernateException
bindPositionalParametersback to summary
public static int bindPositionalParameters(final PreparedStatement st, final QueryParameters queryParameters, final int start, final SessionImplementor session) throws SQLException, HibernateException
bindPositionalParametersback to summary
public static int bindPositionalParameters(final PreparedStatement st, final Object[] values, final Type[] types, final int start, final SessionImplementor session) throws SQLException, HibernateException
bindQueryParametersback to summary
public static int bindQueryParameters(final PreparedStatement st, final QueryParameters queryParameters, final int start, final ParameterBinder.NamedParameterSource source, SessionImplementor session) throws SQLException, HibernateException
org.hibernate.engine back to summary

public Interface ParameterBinder.NamedParameterSource

Known Direct Implementers
org.hibernate.hql.ast.HqlSqlWalker

Method Summary

Modifier and TypeMethod and Description
public int[]

Method Detail

getNamedParameterLocationsback to summary
public int[] getNamedParameterLocations(String name)