Interface ParameterMetadata

    • Method Detail

      • getParameterCount

        int getParameterCount()
        The total number of registered parameters.
      • getQueryParameter

        QueryParameter<?> getQueryParameter​(String name)
        Resolve the QueryParameter reference registered here under the given name, if one.
        Returns:
        The registered parameter
        Throws:
        IllegalArgumentException - if no parameter is registered under that name
      • getQueryParameter

        QueryParameter<?> getQueryParameter​(int positionLabel)
        Resolve the QueryParameter reference registered here under the given position/ordinal label, if one.
        Returns:
        The registered parameter
        Throws:
        IllegalArgumentException - if no parameter is registered under that label
      • resolve

        <P> QueryParameter<P> resolve​(Parameter<P> param)
        A deeper resolution attempt from a JPA parameter reference to Hibernate's contract. Generally should return the same param reference. According to the spec, only Parameter references obtained from the provider are valid.
      • containsReference

        boolean containsReference​(QueryParameter<?> parameter)
        Is this parameter reference registered in this collection?
      • visitRegistrations

        void visitRegistrations​(Consumer<? extends QueryParameter<?>> action)
        General purpose visitation using functional
      • hasNamedParameters

        boolean hasNamedParameters()
        Does this parameter set contain any named parameters?
        Returns:
        true if there are named parameters; false otherwise.
      • getNamedParameterNames

        Set<String> getNamedParameterNames()
        Return the names of all named parameters of the query.
        Returns:
        the parameter names
      • hasPositionalParameters

        boolean hasPositionalParameters()
        Does this parameter set contain any positional parameters?
        Returns:
        true if there are positional parameters; false otherwise.
      • getOrdinalParameterLabels

        Set<Integer> getOrdinalParameterLabels()