org.hibernate.param

Class AbstractExplicitParameterSpecification

Implemented Interfaces:
ExplicitParameterSpecification, ParameterSpecification
Known Direct Subclasses:
NamedParameterSpecification, PositionalParameterSpecification

public abstract class AbstractExplicitParameterSpecification
extends java.lang.Object
implements ExplicitParameterSpecification

Convenience base class for explicitly defined query parameters.
Author:
Steve Ebersole

Constructor Summary

AbstractExplicitParameterSpecification(int sourceLine, int sourceColumn)

Method Summary

Type
getExpectedType()
Get the type which we are expeting for a bind into this parameter based on translated contextual information.
int
getSourceColumn()
int
getSourceLine()
void
setExpectedType(Type expectedType)
Injects the expected type.

Constructor Details

AbstractExplicitParameterSpecification

protected AbstractExplicitParameterSpecification(int sourceLine,
                                                 int sourceColumn)

Method Details

getExpectedType

public Type getExpectedType()
Get the type which we are expeting for a bind into this parameter based on translated contextual information.
Specified by:
getExpectedType in interface ParameterSpecification
Returns:
The expected type.

getSourceColumn

public int getSourceColumn()
Specified by:
getSourceColumn in interface ExplicitParameterSpecification

getSourceLine

public int getSourceLine()
Specified by:
getSourceLine in interface ExplicitParameterSpecification

setExpectedType

public void setExpectedType(Type expectedType)
Injects the expected type. Called during translation.
Specified by:
setExpectedType in interface ParameterSpecification
Parameters:
expectedType - The type to expect.