站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.4 正式版 API 英文文档

AbstractExplicitParameterSpecification (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


org.hibernate.param
Class AbstractExplicitParameterSpecification

java.lang.Object
  extended byorg.hibernate.param.AbstractExplicitParameterSpecification
All Implemented Interfaces:
ExplicitParameterSpecification, ParameterSpecification
Direct Known Subclasses:
NamedParameterSpecification, PositionalParameterSpecification

public abstract class AbstractExplicitParameterSpecification
extends Object
implements ExplicitParameterSpecification

Convenience base class for explicitly defined query parameters.

Author:
Steve Ebersole

Constructor Summary
protected 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.
 
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.ParameterSpecification
bind, renderDisplayInfo
 

Constructor Detail

AbstractExplicitParameterSpecification

protected AbstractExplicitParameterSpecification(int sourceLine,
                                                 int sourceColumn)
Method Detail

getSourceLine

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

getSourceColumn

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

getExpectedType

public Type getExpectedType()
Description copied from interface: ParameterSpecification
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.

setExpectedType

public void setExpectedType(Type expectedType)
Description copied from interface: ParameterSpecification
Injects the expected type. Called during translation.

Specified by:
setExpectedType in interface ParameterSpecification
Parameters:
expectedType - The type to expect.