Package org.hibernate.engine.query.spi
Class AbstractParameterDescriptor
- java.lang.Object
-
- org.hibernate.engine.query.spi.AbstractParameterDescriptor
-
- All Implemented Interfaces:
Parameter,QueryParameter
- Direct Known Subclasses:
NamedParameterDescriptor,OrdinalParameterDescriptor
public abstract class AbstractParameterDescriptor extends java.lang.Object implements QueryParameter
NOTE: Consider this contract (and its sub-contracts) as incubating as we transition to 6.0 and SQM
-
-
Constructor Summary
Constructors Constructor Description AbstractParameterDescriptor(int[] sourceLocations, Type expectedType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypegetExpectedType()TypegetHibernateType()Get the Hibernate Type associated with this parameter.java.lang.StringgetName()java.lang.ClassgetParameterType()java.lang.IntegergetPosition()int[]getSourceLocations()voidresetExpectedType(Type expectedType)
-
-
-
Constructor Detail
-
AbstractParameterDescriptor
public AbstractParameterDescriptor(int[] sourceLocations, Type expectedType)
-
-
Method Detail
-
getPosition
public java.lang.Integer getPosition()
- Specified by:
getPositionin interfaceParameter
-
getParameterType
public java.lang.Class getParameterType()
- Specified by:
getParameterTypein interfaceParameter
-
getHibernateType
public Type getHibernateType()
Description copied from interface:QueryParameterGet the Hibernate Type associated with this parameter.- Specified by:
getHibernateTypein interfaceQueryParameter- Returns:
- The Hibernate Type.
-
getSourceLocations
public int[] getSourceLocations()
- Specified by:
getSourceLocationsin interfaceQueryParameter
-
getExpectedType
public Type getExpectedType()
-
resetExpectedType
public void resetExpectedType(Type expectedType)
-
-