Top Fields Constructors Methods
org.hibernate.loader.custom.sql

public Class NamedParamBinder

extends Object
implements ParameterBinder
Class Inheritance
All Implemented Interfaces
org.hibernate.param.ParameterBinder
Imports
java.sql.PreparedStatement, .SQLException, org.hibernate.engine.spi.QueryParameters, .SharedSessionContractImplementor, .TypedValue, org.hibernate.param.ParameterBinder

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
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
)

Implements org.hibernate.param.ParameterBinder.bind.

Bind the appropriate value into the given statement at the specified position.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
private final String name

Constructor Detail

NamedParamBinderback to summary
public NamedParamBinder(String name)

Method Detail

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

Implements org.hibernate.param.ParameterBinder.bind.

Doc from org.hibernate.param.ParameterBinder.bind.

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.

Annotations
@Override
Exceptions
SQLException:
Indicates problems performing the JDBC bind operation.