public abstract class

AbstractExplicitParameterSpecification

extends Object
implements ExplicitParameterSpecification
java.lang.Object
   ↳ org.hibernate.param.AbstractExplicitParameterSpecification
Known Direct Subclasses

Class Overview

Convenience base class for explicitly defined query parameters.

Summary

Protected Constructors
AbstractExplicitParameterSpecification(int sourceLine, int sourceColumn)
Constructs an AbstractExplicitParameterSpecification.
Public Methods
Type getExpectedType()
Get the type which we are expeting for a bind into this parameter based on translated contextual information.
int getSourceColumn()
Retrieves the column number (within the getSourceLine()) where this parameter occurs.
int getSourceLine()
Retrieves the line number on which this parameter occurs in the source query.
void setExpectedType(Type expectedType)
Injects the expected type.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.param.ExplicitParameterSpecification
From interface org.hibernate.param.ParameterSpecification

Protected Constructors

protected AbstractExplicitParameterSpecification (int sourceLine, int sourceColumn)

Constructs an AbstractExplicitParameterSpecification.

Parameters
sourceLine See getSourceLine()
sourceColumn See getSourceColumn()

Public Methods

public Type getExpectedType ()

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

Returns
  • The expected type.

public int getSourceColumn ()

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

Returns
  • The column number.

public int getSourceLine ()

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

Returns
  • The line number.

public void setExpectedType (Type expectedType)

Injects the expected type. Called during translation.

Parameters
expectedType The type to expect.