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

@Incubating public interface QueryParameter<T> extends Parameter<T>
Represents a parameter defined in the source (HQL/JPQL or criteria) query.
  • 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 return null.
      Returns:
      The associated Hibernate Type, may be null.