Top Methods
org.hibernate.param

public Interface ParameterBinder

Known Direct Subinterfaces
org.hibernate.param.ParameterSpecification
Known Direct Implementers
org.hibernate.hql.internal.classic.AbstractParameterInformation, org.hibernate.loader.custom.sql.NamedParamBinder, org.hibernate.loader.custom.sql.PositionalParamBinder
Imports
java.sql.PreparedStatement, .SQLException, org.hibernate.engine.spi.QueryParameters, .SharedSessionContractImplementor

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The number of sql bind positions "eaten" by this bind operation.
bind
(PreparedStatement
The statement into which the value should be bound.
statement
,
QueryParameters
The defined values for the current query execution.
qp
,
SharedSessionContractImplementor
The session against which the current execution is occuring.
session
,
int
The position from which to start binding value(s).
position
)

Bind the appropriate value into the given statement at the specified position.

Method Detail

bindback to summary
public int bind(PreparedStatement statement, QueryParameters qp, SharedSessionContractImplementor session, int position) throws SQLException

Bind the appropriate value into the given statement at the specified position.

Parameters
statement:PreparedStatement

The statement into which the value should be bound.

qp:QueryParameters

The defined values for the current query execution.

session:SharedSessionContractImplementor

The session against which the current execution is occuring.

position:int

The position from which to start binding value(s).

Returns:int

The number of sql bind positions "eaten" by this bind operation.

Exceptions
SQLException:
Indicates problems performing the JDBC bind operation.