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 voidcollectAllParameters(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.booleanhasAnyMatching(Predicate<QueryParameterImplementor<?>> filter)<P> QueryParameterImplementor<P>resolve(Parameter<P> param)A deeper resolution attempt from a JPA parameter reference to Hibernate's contract.voidvisitParameters(Consumer<QueryParameterImplementor<?>> consumer)default voidvisitRegistrations(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:ParameterMetadataGeneral purpose visitation using functional- Specified by:
visitRegistrationsin interfaceParameterMetadata
-
hasAnyMatching
boolean hasAnyMatching(Predicate<QueryParameterImplementor<?>> filter)
-
findQueryParameter
QueryParameterImplementor<?> findQueryParameter(String name)
Description copied from interface:ParameterMetadataFind the QueryParameter registered under the given name, if one.- Specified by:
findQueryParameterin interfaceParameterMetadata- Returns:
- The registered match, or
nullis there is no match - See Also:
ParameterMetadata.getQueryParameter(String)
-
getQueryParameter
QueryParameterImplementor<?> getQueryParameter(String name)
Description copied from interface:ParameterMetadataGet the QueryParameter reference registered here under the given name.- Specified by:
getQueryParameterin interfaceParameterMetadata- Returns:
- The registered match. Never
null
-
findQueryParameter
QueryParameterImplementor<?> findQueryParameter(int positionLabel)
Description copied from interface:ParameterMetadataFind the QueryParameter registered under the given position-label, if one.- Specified by:
findQueryParameterin interfaceParameterMetadata- Returns:
- The registered match, or
nullis there is no match - See Also:
ParameterMetadata.getQueryParameter(int)
-
getQueryParameter
QueryParameterImplementor<?> getQueryParameter(int positionLabel)
Description copied from interface:ParameterMetadataGet the QueryParameter reference registered here under the given position-label.- Specified by:
getQueryParameterin interfaceParameterMetadata- Returns:
- The registered match. Never
null
-
resolve
<P> QueryParameterImplementor<P> resolve(Parameter<P> param)
Description copied from interface:ParameterMetadataA 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:
resolvein interfaceParameterMetadata
-
-