Package org.hibernate.procedure.internal
Class ProcedureParameterMetadataImpl
java.lang.Object
org.hibernate.procedure.internal.ProcedureParameterMetadataImpl
- All Implemented Interfaces:
ParameterMetadata,ParameterMetadataImplementor,ProcedureParameterMetadataImplementor
public class ProcedureParameterMetadataImpl
extends Object
implements ProcedureParameterMetadataImplementor
Specialized ParameterMetadataImplementor for callable queries implementing
expandable parameter registrations
-
Constructor Summary
ConstructorsConstructorDescriptionProcedureParameterMetadataImpl(NamedCallableQueryMemento memento, SharedSessionContractImplementor session) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsReference(QueryParameter<?> parameter) Is this parameter reference registered in this collection?createBindings(SessionFactoryImplementor sessionFactory) findQueryParameter(int positionLabel) Find the parameter reference registered at the given position-label, if there is one.findQueryParameter(String name) Find the parameter reference registered under the given name, if there is one.<T> BindableType<T> getInferredParameterType(QueryParameter<T> parameter) Get the type of the given parameter.Return the names of all named parameters of the query.Get the position labels of all positional parameters.intThe total number of registered parameters.TheQueryParameters representing the parameters of the query, in no particular well-defined order.getQueryParameter(int positionLabel) Get the parameter reference registered at the given position-label.getQueryParameter(String name) Get the parameter reference registered under the given name.Set<? extends QueryParameter<?>> List<? extends ProcedureParameterImplementor<?>> booleanhasAnyMatching(Predicate<QueryParameterImplementor<?>> filter) booleanDoes this parameter set contain any named parameters?booleanDoes this parameter set contain any positional parameters?voidregisterParameter(ProcedureParameterImplementor<?> parameter) Obtain aQueryParameterrepresenting the same parameter as the given JPA-standardParameter.voidvisitParameters(Consumer<QueryParameter<?>> consumer) voidvisitRegistrations(Consumer<QueryParameter<?>> action) General purpose visitation using functionalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.query.spi.ParameterMetadataImplementor
collectAllParameters
-
Constructor Details
-
ProcedureParameterMetadataImpl
public ProcedureParameterMetadataImpl()
-
-
Method Details
-
registerParameter
-
createBindings
- Specified by:
createBindingsin interfaceParameterMetadataImplementor
-
visitParameters
- Specified by:
visitParametersin interfaceParameterMetadataImplementor
-
getParameters
Description copied from interface:ParameterMetadataTheQueryParameters representing the parameters of the query, in no particular well-defined order.- Specified by:
getParametersin interfaceParameterMetadata
-
hasNamedParameters
public boolean hasNamedParameters()Description copied from interface:ParameterMetadataDoes this parameter set contain any named parameters?- Specified by:
hasNamedParametersin interfaceParameterMetadata- Returns:
trueif there are named parameters;falseotherwise.
-
hasPositionalParameters
public boolean hasPositionalParameters()Description copied from interface:ParameterMetadataDoes this parameter set contain any positional parameters?- Specified by:
hasPositionalParametersin interfaceParameterMetadata- Returns:
trueif there are positional parameters;falseotherwise.
-
getNamedParameterNames
Description copied from interface:ParameterMetadataReturn the names of all named parameters of the query.- Specified by:
getNamedParameterNamesin interfaceParameterMetadata- Returns:
- the parameter names
-
getParameterCount
public int getParameterCount()Description copied from interface:ParameterMetadataThe total number of registered parameters.- Specified by:
getParameterCountin interfaceParameterMetadata
-
containsReference
Description copied from interface:ParameterMetadataIs this parameter reference registered in this collection?- Specified by:
containsReferencein interfaceParameterMetadata
-
getParameterStrategy
-
hasAnyMatching
- Specified by:
hasAnyMatchingin interfaceParameterMetadataImplementor
-
findQueryParameter
Description copied from interface:ParameterMetadataFind the parameter reference registered under the given name, if there is one.- Specified by:
findQueryParameterin interfaceParameterMetadata- Specified by:
findQueryParameterin interfaceParameterMetadataImplementor- Returns:
- The registered match, or
nullis there is no match - See Also:
-
getQueryParameter
Description copied from interface:ParameterMetadataGet the parameter reference registered under the given name.- Specified by:
getQueryParameterin interfaceParameterMetadata- Specified by:
getQueryParameterin interfaceParameterMetadataImplementor- Returns:
- The registered match. Never
null
-
findQueryParameter
Description copied from interface:ParameterMetadataFind the parameter reference registered at the given position-label, if there is one.- Specified by:
findQueryParameterin interfaceParameterMetadata- Specified by:
findQueryParameterin interfaceParameterMetadataImplementor- Returns:
- The registered match, or
nullis there is no match - See Also:
-
getQueryParameter
Description copied from interface:ParameterMetadataGet the parameter reference registered at the given position-label.- Specified by:
getQueryParameterin interfaceParameterMetadata- Specified by:
getQueryParameterin interfaceParameterMetadataImplementor- Returns:
- The registered match. Never
null
-
resolve
Description copied from interface:ParameterMetadataObtain aQueryParameterrepresenting the same parameter as the given JPA-standardParameter.- Specified by:
resolvein interfaceParameterMetadata- Specified by:
resolvein interfaceParameterMetadataImplementor
-
getRegistrations
- Specified by:
getRegistrationsin interfaceParameterMetadata
-
getRegistrationsAsList
- Specified by:
getRegistrationsAsListin interfaceProcedureParameterMetadataImplementor
-
visitRegistrations
Description copied from interface:ParameterMetadataGeneral purpose visitation using functional- Specified by:
visitRegistrationsin interfaceParameterMetadata- Specified by:
visitRegistrationsin interfaceParameterMetadataImplementor
-
getOrdinalParameterLabels
Description copied from interface:ParameterMetadataGet the position labels of all positional parameters.- Specified by:
getOrdinalParameterLabelsin interfaceParameterMetadata- Returns:
- the position labels
-
getInferredParameterType
Description copied from interface:ParameterMetadataGet the type of the given parameter.- Specified by:
getInferredParameterTypein interfaceParameterMetadata
-