public interface ParameterMetadata
Modifier and Type | Method and Description |
---|---|
boolean |
containsReference(QueryParameter<?> parameter)
Is this parameter reference registered in this collection?
|
Set<String> |
getNamedParameterNames()
Return the names of all named parameters of the query.
|
Set<Integer> |
getOrdinalParameterLabels() |
int |
getParameterCount()
The total number of registered parameters.
|
QueryParameter<?> |
getQueryParameter(int positionLabel)
Resolve the QueryParameter reference registered here under the
given position/ordinal label, if one.
|
QueryParameter<?> |
getQueryParameter(String name)
Resolve the QueryParameter reference registered here under the
given name, if one.
|
Set<? extends QueryParameter<?>> |
getRegistrations() |
boolean |
hasNamedParameters()
Does this parameter set contain any named parameters?
|
boolean |
hasPositionalParameters()
Does this parameter set contain any positional parameters?
|
QueryParameter<?> |
resolve(Parameter param)
A deeper resolution attempt from a JPA parameter reference to Hibernate's
contract.
|
void |
visitRegistrations(Consumer<? extends QueryParameter<?>> action)
General purpose visitation using functional
|
int getParameterCount()
QueryParameter<?> getQueryParameter(String name)
IllegalArgumentException
- if no parameter is registered under that nameQueryParameter<?> getQueryParameter(int positionLabel)
IllegalArgumentException
- if no parameter is registered under that labelQueryParameter<?> resolve(Parameter param)
boolean containsReference(QueryParameter<?> parameter)
Set<? extends QueryParameter<?>> getRegistrations()
void visitRegistrations(Consumer<? extends QueryParameter<?>> action)
boolean hasNamedParameters()
true
if there are named parameters; false
otherwise.Set<String> getNamedParameterNames()
boolean hasPositionalParameters()
true
if there are positional parameters; false
otherwise.Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.