PositionalParameterSpecificationpublic class PositionalParameterSpecification extends AbstractExplicitParameterSpecification implements ParameterSpecificationRelates to an explicit query positional (or ordinal) parameter. |
Fields Summary |
---|
private final int | hqlPosition |
Constructors Summary |
---|
public PositionalParameterSpecification(int sourceLine, int sourceColumn, int hqlPosition)
super( sourceLine, sourceColumn );
this.hqlPosition = hqlPosition;
|
Methods Summary |
---|
public int | bind(java.sql.PreparedStatement statement, org.hibernate.engine.QueryParameters qp, org.hibernate.engine.SessionImplementor session, int position)Bind the appropriate value into the given statement at the specified position.
Type type = qp.getPositionalParameterTypes()[hqlPosition];
Object value = qp.getPositionalParameterValues()[hqlPosition];
type.nullSafeSet( statement, value, position, session );
return type.getColumnSpan( session.getFactory() );
| public int | getHqlPosition()
return hqlPosition;
| public java.lang.String | renderDisplayInfo()
return "ordinal=" + hqlPosition + ", expectedType=" + getExpectedType();
|
|