public class ProcedureParameterMetadata extends java.lang.Object implements ParameterMetadata
Constructor and Description |
---|
ProcedureParameterMetadata() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<QueryParameter<?>> |
collectAllParameters() |
java.util.Set<javax.persistence.Parameter<?>> |
collectAllParametersJpa() |
java.util.Set<java.lang.String> |
getNamedParameterNames()
Return the names of all named parameters of the query.
|
int |
getPositionalParameterCount()
Returns the number of positional parameters.
|
<T> QueryParameter<T> |
getQueryParameter(java.lang.Integer position) |
<T> QueryParameter<T> |
getQueryParameter(java.lang.String name) |
boolean |
hasNamedParameters()
Does this parameter set contain any named parameters?
|
boolean |
hasPositionalParameters()
Does this parameter set contain any positional parameters?
|
void |
registerParameter(ProcedureParameterImplementor parameter) |
<T> QueryParameter<T> |
resolve(javax.persistence.Parameter<T> param) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isOrdinalParametersZeroBased, setOrdinalParametersZeroBased
public void registerParameter(ProcedureParameterImplementor parameter)
public boolean hasNamedParameters()
ParameterMetadata
hasNamedParameters
in interface ParameterMetadata
true
if there are named parameters; false
otherwise.public boolean hasPositionalParameters()
ParameterMetadata
hasPositionalParameters
in interface ParameterMetadata
true
if there are positional parameters; false
otherwise.public java.util.Set<QueryParameter<?>> collectAllParameters()
collectAllParameters
in interface ParameterMetadata
public java.util.Set<javax.persistence.Parameter<?>> collectAllParametersJpa()
collectAllParametersJpa
in interface ParameterMetadata
public java.util.Set<java.lang.String> getNamedParameterNames()
ParameterMetadata
getNamedParameterNames
in interface ParameterMetadata
public int getPositionalParameterCount()
ParameterMetadata
getPositionalParameterCount
in interface ParameterMetadata
public <T> QueryParameter<T> getQueryParameter(java.lang.String name)
getQueryParameter
in interface ParameterMetadata
public <T> QueryParameter<T> getQueryParameter(java.lang.Integer position)
getQueryParameter
in interface ParameterMetadata
public <T> QueryParameter<T> resolve(javax.persistence.Parameter<T> param)
resolve
in interface ParameterMetadata
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.