Package org.hibernate.param
Class AbstractExplicitParameterSpecification
- java.lang.Object
-
- org.hibernate.param.AbstractExplicitParameterSpecification
-
- All Implemented Interfaces:
ExplicitParameterSpecification,ParameterBinder,ParameterSpecification
- Direct Known Subclasses:
NamedParameterSpecification,PositionalParameterSpecification
public abstract class AbstractExplicitParameterSpecification extends java.lang.Object implements ExplicitParameterSpecification
Convenience base class for explicitly defined query parameters.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractExplicitParameterSpecification(int sourceLine, int sourceColumn)Constructs an AbstractExplicitParameterSpecification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypegetExpectedType()Get the type which we are expeting for a bind into this parameter based on translated contextual information.intgetSourceColumn()Retrieves the column number (within theExplicitParameterSpecification.getSourceLine()) where this parameter occurs.intgetSourceLine()Retrieves the line number on which this parameter occurs in the source query.voidsetExpectedType(Type expectedType)Injects the expected type.-
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.ParameterBinder
bind
-
Methods inherited from interface org.hibernate.param.ParameterSpecification
renderDisplayInfo
-
-
-
-
Constructor Detail
-
AbstractExplicitParameterSpecification
protected AbstractExplicitParameterSpecification(int sourceLine, int sourceColumn)Constructs an AbstractExplicitParameterSpecification.- Parameters:
sourceLine- SeegetSourceLine()sourceColumn- SeegetSourceColumn()
-
-
Method Detail
-
getSourceLine
public int getSourceLine()
Description copied from interface:ExplicitParameterSpecificationRetrieves the line number on which this parameter occurs in the source query.- Specified by:
getSourceLinein interfaceExplicitParameterSpecification- Returns:
- The line number.
-
getSourceColumn
public int getSourceColumn()
Description copied from interface:ExplicitParameterSpecificationRetrieves the column number (within theExplicitParameterSpecification.getSourceLine()) where this parameter occurs.- Specified by:
getSourceColumnin interfaceExplicitParameterSpecification- Returns:
- The column number.
-
getExpectedType
public Type getExpectedType()
Description copied from interface:ParameterSpecificationGet the type which we are expeting for a bind into this parameter based on translated contextual information.- Specified by:
getExpectedTypein interfaceParameterSpecification- Returns:
- The expected type.
-
setExpectedType
public void setExpectedType(Type expectedType)
Description copied from interface:ParameterSpecificationInjects the expected type. Called during translation.- Specified by:
setExpectedTypein interfaceParameterSpecification- Parameters:
expectedType- The type to expect.
-
-