Package org.hibernate.query.spi
Interface ParameterMetadataImplementor
-
- All Superinterfaces:
ParameterMetadata
- All Known Subinterfaces:
ProcedureParameterMetadataImplementor
- All Known Implementing Classes:
ParameterMetadataImpl
,ProcedureParameterMetadataImpl
public interface ParameterMetadataImplementor extends ParameterMetadata
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
collectAllParameters(Consumer<QueryParameterImplementor<?>> collector)
QueryParameterImplementor<?>
findQueryParameter(int positionLabel)
Find the QueryParameter registered under the given position-label, if one.QueryParameterImplementor<?>
findQueryParameter(String name)
Find the QueryParameter registered under the given name, if one.QueryParameterImplementor<?>
getQueryParameter(int positionLabel)
Get the QueryParameter reference registered here under the given position-label.QueryParameterImplementor<?>
getQueryParameter(String name)
Get the QueryParameter reference registered here under the given name.boolean
hasAnyMatching(Predicate<QueryParameterImplementor<?>> filter)
<P> QueryParameterImplementor<P>
resolve(Parameter<P> param)
A deeper resolution attempt from a JPA parameter reference to Hibernate's contract.void
visitParameters(Consumer<QueryParameterImplementor<?>> consumer)
default void
visitRegistrations(Consumer<? extends QueryParameter<?>> action)
General purpose visitation using functional-
Methods inherited from interface org.hibernate.query.ParameterMetadata
containsReference, getInferredParameterType, getNamedParameterNames, getOrdinalParameterLabels, getParameterCount, getRegistrations, hasNamedParameters, hasPositionalParameters
-
-
-
-
Method Detail
-
visitParameters
void visitParameters(Consumer<QueryParameterImplementor<?>> consumer)
-
collectAllParameters
default void collectAllParameters(Consumer<QueryParameterImplementor<?>> collector)
-
visitRegistrations
default void visitRegistrations(Consumer<? extends QueryParameter<?>> action)
Description copied from interface:ParameterMetadata
General purpose visitation using functional- Specified by:
visitRegistrations
in interfaceParameterMetadata
-
hasAnyMatching
boolean hasAnyMatching(Predicate<QueryParameterImplementor<?>> filter)
-
findQueryParameter
QueryParameterImplementor<?> findQueryParameter(String name)
Description copied from interface:ParameterMetadata
Find the QueryParameter registered under the given name, if one.- Specified by:
findQueryParameter
in interfaceParameterMetadata
- Returns:
- The registered match, or
null
is there is no match - See Also:
ParameterMetadata.getQueryParameter(String)
-
getQueryParameter
QueryParameterImplementor<?> getQueryParameter(String name)
Description copied from interface:ParameterMetadata
Get the QueryParameter reference registered here under the given name.- Specified by:
getQueryParameter
in interfaceParameterMetadata
- Returns:
- The registered match. Never
null
-
findQueryParameter
QueryParameterImplementor<?> findQueryParameter(int positionLabel)
Description copied from interface:ParameterMetadata
Find the QueryParameter registered under the given position-label, if one.- Specified by:
findQueryParameter
in interfaceParameterMetadata
- Returns:
- The registered match, or
null
is there is no match - See Also:
ParameterMetadata.getQueryParameter(int)
-
getQueryParameter
QueryParameterImplementor<?> getQueryParameter(int positionLabel)
Description copied from interface:ParameterMetadata
Get the QueryParameter reference registered here under the given position-label.- Specified by:
getQueryParameter
in interfaceParameterMetadata
- Returns:
- The registered match. Never
null
-
resolve
<P> QueryParameterImplementor<P> resolve(Parameter<P> param)
Description copied from interface:ParameterMetadata
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.- Specified by:
resolve
in interfaceParameterMetadata
-
-