Package org.hibernate.query.spi
Interface ParameterMetadataImplementor
- All Superinterfaces:
ParameterMetadata
- All Known Subinterfaces:
ProcedureParameterMetadataImplementor
- All Known Implementing Classes:
ParameterMetadataImpl
,ProcedureParameterMetadataImpl
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
collectAllParameters
(Consumer<QueryParameterImplementor<?>> collector) createBindings
(SessionFactoryImplementor sessionFactory) findQueryParameter
(int positionLabel) Find the QueryParameter registered under the given position-label, if one.findQueryParameter
(String name) Find the QueryParameter registered under the given name, if one.getQueryParameter
(int positionLabel) Get the QueryParameter reference registered here under the given position-label.getQueryParameter
(String name) Get the QueryParameter reference registered here under the given name.boolean
hasAnyMatching
(Predicate<QueryParameterImplementor<?>> filter) <P> QueryParameterImplementor<P>
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 functionalMethods inherited from interface org.hibernate.query.ParameterMetadata
containsReference, getInferredParameterType, getNamedParameterNames, getOrdinalParameterLabels, getParameterCount, getRegistrations, hasNamedParameters, hasPositionalParameters
-
Method Details
-
visitParameters
-
collectAllParameters
-
visitRegistrations
Description copied from interface:ParameterMetadata
General purpose visitation using functional- Specified by:
visitRegistrations
in interfaceParameterMetadata
-
hasAnyMatching
-
findQueryParameter
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:
-
getQueryParameter
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
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:
-
getQueryParameter
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
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
-
createBindings
-