org.hibernate.param
Interface ParameterSpecification
- All Known Subinterfaces:
- ExplicitParameterSpecification
- All Known Implementing Classes:
- AbstractExplicitParameterSpecification, NamedParameterSpecification, PositionalParameterSpecification, VersionTypeSeedParameterSpecification
- public interface ParameterSpecification
Maintains information relating to parameters which need to get bound into a
JDBC PreparedStatement
.
- Author:
- Steve Ebersole
bind
public int bind(PreparedStatement statement,
QueryParameters qp,
SessionImplementor session,
int position)
throws SQLException
- Bind the appropriate value into the given statement at the specified position.
- Parameters:
statement
- The statement into which the value should be bound.qp
- The defined values for the current query execution.session
- The session against which the current execution is occuring.position
- The position from which to start binding value(s).
- Returns:
- The number of sql bind positions "eaten" by this bind operation.
- Throws:
SQLException
getExpectedType
public Type getExpectedType()
setExpectedType
public void setExpectedType(Type expectedType)
renderDisplayInfo
public String renderDisplayInfo()