| org.hibernate.param.ParameterSpecification
All known Subclasses: org.hibernate.param.NamedParameterSpecification, org.hibernate.param.DynamicFilterParameterSpecification, org.hibernate.param.VersionTypeSeedParameterSpecification, org.hibernate.param.PositionalParameterSpecification, org.hibernate.param.CollectionFilterKeyParameterSpecification,
ParameterSpecification | public interface ParameterSpecification (Code) | | Maintains information relating to parameters which need to get bound into a
JDBC
PreparedStatement .
author: Steve Ebersole |
Method Summary | |
public int | bind(PreparedStatement statement, QueryParameters qp, SessionImplementor session, int position) Bind the appropriate value into the given statement at the specified position.
Parameters: statement - The statement into which the value should be bound. Parameters: qp - The defined values for the current query execution. Parameters: session - The session against which the current execution is occuring. Parameters: position - The position from which to start binding value(s). | public Type | getExpectedType() Get the type which we are expeting for a bind into this parameter based
on translated contextual information. | public String | renderDisplayInfo() Render this parameter into displayable info (for logging, etc). | public void | setExpectedType(Type expectedType) Injects the expected type. |
bind | public int bind(PreparedStatement statement, QueryParameters qp, SessionImplementor session, int position) throws SQLException(Code) | | Bind the appropriate value into the given statement at the specified position.
Parameters: statement - The statement into which the value should be bound. Parameters: qp - The defined values for the current query execution. Parameters: session - The session against which the current execution is occuring. Parameters: position - The position from which to start binding value(s). The number of sql bind positions "eaten" by this bind operation. throws: java.sql.SQLException - Indicates problems performing the JDBC biind operation. |
getExpectedType | public Type getExpectedType()(Code) | | Get the type which we are expeting for a bind into this parameter based
on translated contextual information.
The expected type. |
renderDisplayInfo | public String renderDisplayInfo()(Code) | | Render this parameter into displayable info (for logging, etc).
The displayable info. |
setExpectedType | public void setExpectedType(Type expectedType)(Code) | | Injects the expected type. Called during translation.
Parameters: expectedType - The type to expect. |
|
|