Class AbstractParameterDescriptor<T>

    • Constructor Detail

      • AbstractParameterDescriptor

        public AbstractParameterDescriptor​(int[] sourceLocations,
                                           BindableType<T> expectedType)
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface jakarta.persistence.Parameter<T>
      • getPosition

        public Integer getPosition()
        Specified by:
        getPosition in interface jakarta.persistence.Parameter<T>
      • getParameterType

        public Class<T> getParameterType()
        Specified by:
        getParameterType in interface jakarta.persistence.Parameter<T>
      • getHibernateType

        public BindableType<T> getHibernateType()
        Description copied from interface: QueryParameter
        Get the Hibernate Type associated with this parameter, if one. May return null.
        Specified by:
        getHibernateType in interface QueryParameter<T>
        The associated Hibernate Type, may be null.
      • resetExpectedType

        public void resetExpectedType​(BindableType<T> expectedType)
      • allowsMultiValuedBinding

        public boolean allowsMultiValuedBinding()
        Description copied from interface: QueryParameter
        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.

        Specified by:
        allowsMultiValuedBinding in interface QueryParameter<T>
        true indicates that multi-valued binding is allowed for this parameter