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 Type
getExpectedType()
Type
getHibernateType()
Get the Hibernate Type associated with this parameter.java.lang.String
getName()
java.lang.Class
getParameterType()
java.lang.Integer
getPosition()
int[]
getSourceLocations()
void
resetExpectedType(Type expectedType)
-
-
-
Constructor Detail
-
AbstractParameterDescriptor
public AbstractParameterDescriptor(int[] sourceLocations, Type expectedType)
-
-
Method Detail
-
getPosition
public java.lang.Integer getPosition()
- Specified by:
getPosition
in interfaceParameter
-
getParameterType
public java.lang.Class getParameterType()
- Specified by:
getParameterType
in interfaceParameter
-
getHibernateType
public Type getHibernateType()
Description copied from interface:QueryParameter
Get the Hibernate Type associated with this parameter.- Specified by:
getHibernateType
in interfaceQueryParameter
- Returns:
- The Hibernate Type.
-
getSourceLocations
public int[] getSourceLocations()
- Specified by:
getSourceLocations
in interfaceQueryParameter
-
getExpectedType
public Type getExpectedType()
-
resetExpectedType
public void resetExpectedType(Type expectedType)
-
-