Class AbstractParameterDescriptor<T>

    • Constructor Detail

      • AbstractParameterDescriptor

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

      • 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>
        Returns:
        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>
        Returns:
        true indicates that multi-valued binding is allowed for this parameter