类 AbstractExplicitParameterSpecification
- java.lang.Object
-
- org.hibernate.param.AbstractExplicitParameterSpecification
-
public abstract class AbstractExplicitParameterSpecification extends Object implements ExplicitParameterSpecification
Convenience base class for explicitly defined query parameters.- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 限定符 构造器 说明 protectedAbstractExplicitParameterSpecification(int sourceLine, int sourceColumn)Constructs an AbstractExplicitParameterSpecification.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 TypegetExpectedType()Get the type which we are expecting 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.-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.param.ParameterBinder
bind
-
从接口继承的方法 org.hibernate.param.ParameterSpecification
renderDisplayInfo
-
-
-
-
构造器详细资料
-
AbstractExplicitParameterSpecification
protected AbstractExplicitParameterSpecification(int sourceLine, int sourceColumn)Constructs an AbstractExplicitParameterSpecification.- 参数:
sourceLine- SeegetSourceLine()sourceColumn- SeegetSourceColumn()
-
-
方法详细资料
-
getSourceLine
public int getSourceLine()
从接口复制的说明:ExplicitParameterSpecificationRetrieves the line number on which this parameter occurs in the source query.- 指定者:
getSourceLine在接口中ExplicitParameterSpecification- 返回:
- The line number.
-
getSourceColumn
public int getSourceColumn()
从接口复制的说明:ExplicitParameterSpecificationRetrieves the column number (within theExplicitParameterSpecification.getSourceLine()) where this parameter occurs.- 指定者:
getSourceColumn在接口中ExplicitParameterSpecification- 返回:
- The column number.
-
getExpectedType
public Type getExpectedType()
从接口复制的说明:ParameterSpecificationGet the type which we are expecting for a bind into this parameter based on translated contextual information.- 指定者:
getExpectedType在接口中ParameterSpecification- 返回:
- The expected type.
-
setExpectedType
public void setExpectedType(Type expectedType)
从接口复制的说明:ParameterSpecificationInjects the expected type. Called during translation.- 指定者:
setExpectedType在接口中ParameterSpecification- 参数:
expectedType- The type to expect.
-
-