Class AbstractParameterDescriptor<T>
java.lang.Object
org.hibernate.engine.query.spi.AbstractParameterDescriptor<T>
- All Implemented Interfaces:
Parameter<T>, QueryParameter<T>
- Direct Known Subclasses:
NamedParameterDescriptor, OrdinalParameterDescriptor
@Incubating
public abstract class AbstractParameterDescriptor<T>
extends Object
implements QueryParameter<T>
- API Note:
- Consider this contract (and its subcontracts) as incubating as we transition to 6.0 and SQM.
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractParameterDescriptor(int[] sourceLocations, @Nullable BindableType<T> expectedType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanDoes this parameter allow multi-valued (collection, array, etc) binding?@Nullable BindableType<T> @Nullable BindableType<T> Get the Hibernate Type associated with this parameter, if one.@Nullable StringgetName()@Nullable IntegervoidresetExpectedType(@Nullable BindableType<T> expectedType) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface QueryParameter
isNamed, isOrdinal
-
Constructor Details
-
AbstractParameterDescriptor
-
-
Method Details
-
getName
-
getPosition
- Specified by:
getPositionin interfaceParameter<T>
-
getParameterType
- Specified by:
getParameterTypein interfaceParameter<T>
-
getHibernateType
Description copied from interface:QueryParameterGet the Hibernate Type associated with this parameter, if one. May returnnull.- Specified by:
getHibernateTypein interfaceQueryParameter<T>- Returns:
- The associated Hibernate Type, may be
null.
-
getExpectedType
-
resetExpectedType
-
allowsMultiValuedBinding
public boolean allowsMultiValuedBinding()Description copied from interface:QueryParameterDoes this parameter allow multi-valued (collection, array, etc) binding?This is only valid for HQL/JPQL and (I think) Criteria queries, and is determined based on the context of the parameters declaration.
- Specified by:
allowsMultiValuedBindingin interfaceQueryParameter<T>- Returns:
trueindicates that multi-valued binding is allowed for this parameter
-