Package org.hibernate.query
Interface QueryParameter<T>
- All Superinterfaces:
Parameter<T>
- All Known Subinterfaces:
FunctionReturn<T>
,FunctionReturnImplementor<T>
,ProcedureParameter<T>
,ProcedureParameterImplementor<T>
,QueryParameterImplementor<T>
- All Known Implementing Classes:
AbstractParameterDescriptor
,AbstractQueryParameter
,FunctionReturnImpl
,JpaCriteriaParameter
,NamedParameterDescriptor
,OrdinalParameterDescriptor
,ProcedureParameterImpl
,QueryParameterNamedImpl
,QueryParameterPositionalImpl
,ValueBindJpaCriteriaParameter
Represents a parameter defined in the source (HQL/JPQL or criteria) query.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Does this parameter allow multi-valued (collection, array, etc) binding?Get the Hibernate Type associated with this parameter, if one.Methods inherited from interface jakarta.persistence.Parameter
getName, getParameterType, getPosition
-
Method Details
-
allowsMultiValuedBinding
boolean allowsMultiValuedBinding()Does 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.
- Returns:
true
indicates that multi-valued binding is allowed for this parameter
-
getHibernateType
BindableType<T> getHibernateType()Get the Hibernate Type associated with this parameter, if one. May returnnull
.- Returns:
- The associated Hibernate Type, may be
null
.
-