Interface QueryParameterBinding<T>

    • Method Detail

      • isBound

        boolean isBound()
        Is any value (including null) bound? Asked another way, were any of the `#set` methods called?
      • isMultiValued

        boolean isMultiValued()
        Is the binding multi-valued?
      • getBindType

        AllowableParameterType<T> getBindType()
        Get the Type currently associated with this binding.
        Returns:
        The currently associated Type
      • getExplicitTemporalPrecision

        jakarta.persistence.TemporalType getExplicitTemporalPrecision()
        If the parameter represents a temporal type, return the explicitly specified precision - if one.
      • setBindValue

        default void setBindValue​(T value)
        Sets the parameter binding value. The inherent parameter type (if known) is assumed
      • setBindValue

        void setBindValue​(T value,
                          boolean resolveJdbcTypeIfNecessary)
        Sets the parameter binding value. The inherent parameter type (if known) is assumed. The flag controls whether the parameter type should be resolved if necessary.
      • setBindValue

        void setBindValue​(T value,
                          AllowableParameterType<T> clarifiedType)
        Sets the parameter binding value using the explicit Type.
        Parameters:
        value - The bind value
        clarifiedType - The explicit Type to use
      • setBindValue

        void setBindValue​(T value,
                          jakarta.persistence.TemporalType temporalTypePrecision)
        Sets the parameter binding value using the explicit TemporalType.
        Parameters:
        value - The bind value
        temporalTypePrecision - The temporal type to use
      • getBindValue

        T getBindValue()
        Get the value current bound.
        Returns:
        The currently bound value
      • setBindValues

        void setBindValues​(Collection<? extends T> values)
        Sets the parameter binding values. The inherent parameter type (if known) is assumed in regards to the individual values.
        Parameters:
        values - The bind values
      • setBindValues

        void setBindValues​(Collection<? extends T> values,
                           AllowableParameterType<T> clarifiedType)
        Sets the parameter binding values using the explicit Type in regards to the individual values.
        Parameters:
        values - The bind values
        clarifiedType - The explicit Type to use
      • setBindValues

        void setBindValues​(Collection<? extends T> values,
                           jakarta.persistence.TemporalType temporalTypePrecision,
                           TypeConfiguration typeConfiguration)
        Sets the parameter binding value using the explicit TemporalType in regards to the individual values.
        Parameters:
        values - The bind values
        temporalTypePrecision - The temporal type to use
      • getBindValues

        Collection<T> getBindValues()
        Get the values currently bound.
        Returns:
        The currently bound values
      • getType

        MappingModelExpressable<T> getType()
        Returns the inferred mapping model expressable i.e. the model reference against which this parameter is compared.
        Returns:
        the inferred mapping model expressable or null
      • setType

        boolean setType​(MappingModelExpressable<T> type)
        Sets the mapping model expressable for this parameter.
        Parameters:
        type - The mapping model expressable
        Returns:
        Whether the bind type was changed