Top Description Fields Constructors Methods
org.hibernate.param

public Class PositionalParameterSpecification

extends AbstractExplicitParameterSpecification
Class Inheritance
Imports
java.sql.PreparedStatement, .SQLException, org.hibernate.engine.spi.QueryParameters, .SharedSessionContractImplementor, .TypedValue

Parameter bind specification for an explicit positional (or ordinal) parameter.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final int
private final int

Constructor Summary

AccessConstructor and Description
public
PositionalParameterSpecification(int sourceLine, int sourceColumn, int
The position in the source query, relative to the other source positional parameters.
label
,
int bindingPosition)

Constructs a position/ordinal parameter bind specification.

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 occurring.
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.
public int
public String
renderDisplayInfo()

Implements org.hibernate.param.ParameterSpecification.renderDisplayInfo.

Render this parameter into displayable info (for logging, etc).
Inherited from org.hibernate.param.AbstractExplicitParameterSpecification:
getExpectedTypegetSourceColumngetSourceLinesetExpectedType

Field Detail

bindingPositionback to summary
private final int bindingPosition
labelback to summary
private final int label

Constructor Detail

PositionalParameterSpecificationback to summary
public PositionalParameterSpecification(int sourceLine, int sourceColumn, int label, int bindingPosition)

Constructs a position/ordinal parameter bind specification.

Parameters
sourceLine:int

See getSourceLine()

sourceColumn:int

See getSourceColumn()

label:int

The position in the source query, relative to the other source positional parameters.

Method Detail

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

Implements 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 occurring.

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:

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

Indicates problems performing the JDBC bind operation.

getLabelback to summary
public int getLabel()
renderDisplayInfoback to summary
public String renderDisplayInfo()

Implements org.hibernate.param.ParameterSpecification.renderDisplayInfo.

Doc from org.hibernate.param.ParameterSpecification.renderDisplayInfo.

Render this parameter into displayable info (for logging, etc).

Returns:String

The displayable info.

Annotations
@Override