Top Description Fields Constructors Methods
org.hibernate.param

public abstract Class AbstractExplicitParameterSpecification

extends Object
implements ExplicitParameterSpecification
Class Inheritance
All Implemented Interfaces
org.hibernate.param.ExplicitParameterSpecification, org.hibernate.param.ParameterSpecification
Known Direct Subclasses
org.hibernate.param.NamedParameterSpecification, org.hibernate.param.PositionalParameterSpecification
Imports
org.hibernate.type.Type

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

Field Summary

Modifier and TypeField and Description
private Type
private final int
private final int

Constructor Summary

AccessConstructor and Description
protected
AbstractExplicitParameterSpecification(int sourceLine, int sourceColumn)

Constructs an AbstractExplicitParameterSpecification.

Method Summary

Modifier and TypeMethod and Description
public Type
getExpectedType()

Implements org.hibernate.param.ParameterSpecification.getExpectedType.

Get the type which we are expeting for a bind into this parameter based on translated contextual information.
public int
getSourceColumn()

Implements org.hibernate.param.ExplicitParameterSpecification.getSourceColumn.

Retrieves the column number (within the getSourceLine()) where this parameter occurs.
public int
getSourceLine()

Implements org.hibernate.param.ExplicitParameterSpecification.getSourceLine.

Retrieves the line number on which this parameter occurs in the source query.
public void
setExpectedType(Type
The type to expect.
expectedType
)

Implements org.hibernate.param.ParameterSpecification.setExpectedType.

Injects the expected type.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

expectedTypeback to summary
private Type expectedType
sourceColumnback to summary
private final int sourceColumn
sourceLineback to summary
private final int sourceLine

Constructor Detail

AbstractExplicitParameterSpecificationback to summary
protected AbstractExplicitParameterSpecification(int sourceLine, int sourceColumn)

Constructs an AbstractExplicitParameterSpecification.

Parameters
sourceLine:int

See getSourceLine()

sourceColumn:int

See getSourceColumn()

Method Detail

getExpectedTypeback to summary
public Type getExpectedType()

Implements org.hibernate.param.ParameterSpecification.getExpectedType.

Doc from org.hibernate.param.ParameterSpecification.getExpectedType.

Get the type which we are expeting for a bind into this parameter based on translated contextual information.

Returns:Type

The expected type.

getSourceColumnback to summary
public int getSourceColumn()

Implements org.hibernate.param.ExplicitParameterSpecification.getSourceColumn.

Doc from org.hibernate.param.ExplicitParameterSpecification.getSourceColumn.

Retrieves the column number (within the getSourceLine()) where this parameter occurs.

Returns:int

The column number.

getSourceLineback to summary
public int getSourceLine()

Implements org.hibernate.param.ExplicitParameterSpecification.getSourceLine.

Doc from org.hibernate.param.ExplicitParameterSpecification.getSourceLine.

Retrieves the line number on which this parameter occurs in the source query.

Returns:int

The line number.

setExpectedTypeback to summary
public void setExpectedType(Type expectedType)

Implements org.hibernate.param.ParameterSpecification.setExpectedType.

Doc from org.hibernate.param.ParameterSpecification.setExpectedType.

Injects the expected type. Called during translation.

Parameters
expectedType:Type

The type to expect.