Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.param
Class PositionalParameterSpecification  view PositionalParameterSpecification download PositionalParameterSpecification.java

java.lang.Object
  extended byorg.hibernate.param.AbstractExplicitParameterSpecification
      extended byorg.hibernate.param.PositionalParameterSpecification
All Implemented Interfaces:
ExplicitParameterSpecification, ParameterSpecification

public class PositionalParameterSpecification
extends AbstractExplicitParameterSpecification
implements ParameterSpecification

Relates to an explicit query positional (or ordinal) parameter.


Field Summary
private  int hqlPosition
           
 
Fields inherited from class org.hibernate.param.AbstractExplicitParameterSpecification
 
Constructor Summary
PositionalParameterSpecification(int sourceLine, int sourceColumn, int hqlPosition)
           
 
Method Summary
 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.
 int getHqlPosition()
           
 java.lang.String renderDisplayInfo()
           
 
Methods inherited from class org.hibernate.param.AbstractExplicitParameterSpecification
getExpectedType, getSourceColumn, getSourceLine, setExpectedType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.param.ParameterSpecification
getExpectedType, setExpectedType
 

Field Detail

hqlPosition

private final int hqlPosition
Constructor Detail

PositionalParameterSpecification

public PositionalParameterSpecification(int sourceLine,
                                        int sourceColumn,
                                        int hqlPosition)
Method Detail

bind

public int bind(java.sql.PreparedStatement statement,
                org.hibernate.engine.QueryParameters qp,
                org.hibernate.engine.SessionImplementor session,
                int position)
         throws java.sql.SQLException
Bind the appropriate value into the given statement at the specified position.

Specified by:
bind in interface ParameterSpecification

renderDisplayInfo

public java.lang.String renderDisplayInfo()
Specified by:
renderDisplayInfo in interface ParameterSpecification

getHqlPosition

public int getHqlPosition()