Package org.hibernate.procedure.internal
Class ProcedureParamBindings
java.lang.Object
org.hibernate.procedure.internal.ProcedureParamBindings
- All Implemented Interfaces:
QueryParameterBindings
-
Field Summary
Fields inherited from interface org.hibernate.query.spi.QueryParameterBindings
NO_PARAM_BINDINGS, NO_PARAMETER_BINDING_MEMENTO
-
Constructor Summary
ConstructorsConstructorDescriptionProcedureParamBindings
(ProcedureParameterMetadataImpl parameterMetadata, SessionFactoryImplementor sessionFactory) -
Method Summary
Modifier and TypeMethodDescriptiongenerateQueryKeyMemento
(SharedSessionContractImplementor persistenceContext) Generate a "memento" for these parameter bindings that can be used in creating aQueryKey
<P> ProcedureParameterBinding<P>
getBinding
(int position) Access to the binding via position<P> ProcedureParameterBinding<P>
getBinding
(String name) Access to the binding via name<P> ProcedureParameterBinding<P>
getBinding
(QueryParameterImplementor<P> parameter) Access to the binding via QueryParameter reference<P> ProcedureParameterBinding<P>
getQueryParamerBinding
(ProcedureParameterImplementor<P> parameter) boolean
boolean
isBound
(QueryParameterImplementor<?> parameter) Has binding been done for the given parameter.void
validate()
Validate the bindings.void
visitBindings
(BiConsumer<QueryParameterImplementor<?>, QueryParameterBinding<?>> action) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.query.spi.QueryParameterBindings
getBinding
-
Constructor Details
-
ProcedureParamBindings
public ProcedureParamBindings(ProcedureParameterMetadataImpl parameterMetadata, SessionFactoryImplementor sessionFactory)
-
-
Method Details
-
getParameterMetadata
-
isBound
Description copied from interface:QueryParameterBindings
Has binding been done for the given parameter. Handles cases where we do not (yet) have a binding object as well by simply returning false.- Specified by:
isBound
in interfaceQueryParameterBindings
- Parameters:
parameter
- The parameter to check for a binding- Returns:
true
if its value has been bound;false
otherwise.
-
getBinding
Description copied from interface:QueryParameterBindings
Access to the binding via QueryParameter reference- Specified by:
getBinding
in interfaceQueryParameterBindings
- Parameters:
parameter
- The QueryParameter reference- Returns:
- The binding, or
null
if not yet bound
-
getQueryParamerBinding
public <P> ProcedureParameterBinding<P> getQueryParamerBinding(ProcedureParameterImplementor<P> parameter) -
getBinding
Description copied from interface:QueryParameterBindings
Access to the binding via name- Specified by:
getBinding
in interfaceQueryParameterBindings
- Parameters:
name
- The parameter name- Returns:
- The binding, or
null
if not yet bound
-
getBinding
Description copied from interface:QueryParameterBindings
Access to the binding via position- Specified by:
getBinding
in interfaceQueryParameterBindings
- Parameters:
position
- The parameter position- Returns:
- The binding, or
null
if not yet bound
-
validate
public void validate()Description copied from interface:QueryParameterBindings
Validate the bindings. Called just before execution- Specified by:
validate
in interfaceQueryParameterBindings
-
hasAnyMultiValuedBindings
public boolean hasAnyMultiValuedBindings()- Specified by:
hasAnyMultiValuedBindings
in interfaceQueryParameterBindings
-
visitBindings
- Specified by:
visitBindings
in interfaceQueryParameterBindings
-