Class AbstractQueryParameter<T>
java.lang.Object
org.hibernate.query.spi.AbstractQueryParameter<T>
- All Implemented Interfaces:
Parameter<T>, QueryParameter<T>, QueryParameterImplementor<T>
@Internal
public abstract class AbstractQueryParameter<T>
extends Object
implements QueryParameterImplementor<T>
Base implementation of
QueryParameter.- API Note:
- This class is now considered internal implementation and will move to an internal package in a future version. Application programs should never depend directly on this class.
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractQueryParameter(boolean allowMultiValuedBinding, @Nullable BindableType<T> anticipatedType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanDoes this parameter allow multi-valued (collection, array, etc) binding?voidapplyAnticipatedType(BindableType<?> type) void@Nullable BindableType<T> Get the Hibernate Type associated with this parameter, if one.getName()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface QueryParameter
isNamed, isOrdinalMethods inherited from interface QueryParameterImplementor
toMemento
-
Constructor Details
-
AbstractQueryParameter
public AbstractQueryParameter(boolean allowMultiValuedBinding, @Nullable BindableType<T> anticipatedType)
-
-
Method Details
-
disallowMultiValuedBinding
public void disallowMultiValuedBinding()- Specified by:
disallowMultiValuedBindingin interfaceQueryParameterImplementor<T>
-
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
-
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.
-
applyAnticipatedType
- Specified by:
applyAnticipatedTypein interfaceQueryParameterImplementor<T>
-
getName
-
getPosition
- Specified by:
getPositionin interfaceParameter<T>
-
getParameterType
- Specified by:
getParameterTypein interfaceParameter<T>
-