Package org.hibernate.engine.query.spi
Class OrdinalParameterDescriptor<T>
java.lang.Object
org.hibernate.engine.query.spi.AbstractParameterDescriptor<T>
org.hibernate.engine.query.spi.OrdinalParameterDescriptor<T>
- All Implemented Interfaces:
Parameter<T>,QueryParameter<T>
Descriptor regarding an ordinal parameter.
- Author:
- Steve Ebersole
-
Constructor Summary
ConstructorsConstructorDescriptionOrdinalParameterDescriptor(int label, int valuePosition, BindableType<T> expectedType, int[] sourceLocations) Constructs an ordinal parameter descriptor. -
Method Summary
Modifier and TypeMethodDescriptionReturn the parameter position, or null if the parameter is not a positional parameter.intMethods inherited from class org.hibernate.engine.query.spi.AbstractParameterDescriptor
allowsMultiValuedBinding, getExpectedType, getHibernateType, getName, getParameterType, resetExpectedType
-
Constructor Details
-
OrdinalParameterDescriptor
public OrdinalParameterDescriptor(int label, int valuePosition, BindableType<T> expectedType, int[] sourceLocations) Constructs an ordinal parameter descriptor.
-
-
Method Details
-
getPosition
Description copied from interface:ParameterReturn the parameter position, or null if the parameter is not a positional parameter.- Specified by:
getPositionin interfaceParameter<T>- Overrides:
getPositionin classAbstractParameterDescriptor<T>- Returns:
- position of parameter
-
getValuePosition
public int getValuePosition()
-