Package org.hibernate.procedure.internal
Class ProcedureParamBindings
- java.lang.Object
-
- org.hibernate.procedure.internal.ProcedureParamBindings
-
- All Implemented Interfaces:
QueryParameterBindings
public class ProcedureParamBindings extends Object implements QueryParameterBindings
-
-
Field Summary
-
Fields inherited from interface org.hibernate.query.spi.QueryParameterBindings
NO_PARAM_BINDINGS, NO_PARAMETER_BINDING_MEMENTO
-
-
Constructor Summary
Constructors Constructor Description ProcedureParamBindings(ProcedureParameterMetadataImpl parameterMetadata, SessionFactoryImplementor sessionFactory)
-
Method Summary
-
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 Detail
-
ProcedureParamBindings
public ProcedureParamBindings(ProcedureParameterMetadataImpl parameterMetadata, SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
getParameterMetadata
public ProcedureParameterMetadataImpl getParameterMetadata()
-
isBound
public boolean isBound(QueryParameterImplementor<?> parameter)
Description copied from interface:QueryParameterBindingsHas 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:
isBoundin interfaceQueryParameterBindings- Parameters:
parameter- The parameter to check for a binding- Returns:
trueif its value has been bound;falseotherwise.
-
getBinding
public <P> ProcedureParameterBinding<P> getBinding(QueryParameterImplementor<P> parameter)
Description copied from interface:QueryParameterBindingsAccess to the binding via QueryParameter reference- Specified by:
getBindingin interfaceQueryParameterBindings- Parameters:
parameter- The QueryParameter reference- Returns:
- The binding, or
nullif not yet bound
-
getQueryParamerBinding
public <P> ProcedureParameterBinding<P> getQueryParamerBinding(ProcedureParameterImplementor<P> parameter)
-
getBinding
public <P> ProcedureParameterBinding<P> getBinding(String name)
Description copied from interface:QueryParameterBindingsAccess to the binding via name- Specified by:
getBindingin interfaceQueryParameterBindings- Parameters:
name- The parameter name- Returns:
- The binding, or
nullif not yet bound
-
getBinding
public <P> ProcedureParameterBinding<P> getBinding(int position)
Description copied from interface:QueryParameterBindingsAccess to the binding via position- Specified by:
getBindingin interfaceQueryParameterBindings- Parameters:
position- The parameter position- Returns:
- The binding, or
nullif not yet bound
-
validate
public void validate()
Description copied from interface:QueryParameterBindingsValidate the bindings. Called just before execution- Specified by:
validatein interfaceQueryParameterBindings
-
hasAnyMultiValuedBindings
public boolean hasAnyMultiValuedBindings()
- Specified by:
hasAnyMultiValuedBindingsin interfaceQueryParameterBindings
-
visitBindings
public void visitBindings(BiConsumer<QueryParameterImplementor<?>,QueryParameterBinding<?>> action)
- Specified by:
visitBindingsin interfaceQueryParameterBindings
-
generateQueryKeyMemento
public QueryKey.ParameterBindingsMemento generateQueryKeyMemento(SharedSessionContractImplementor persistenceContext)
Description copied from interface:QueryParameterBindingsGenerate a "memento" for these parameter bindings that can be used in creating aQueryKey- Specified by:
generateQueryKeyMementoin interfaceQueryParameterBindings
-
-