Top Fields Constructors Methods
org.hibernate.procedure.internal

public Class ProcedureParamBindings

extends Object
implements QueryParameterBindings
Class Inheritance
All Implemented Interfaces
org.hibernate.query.spi.QueryParameterBindings
Imports
java.util.HashMap, .Map, java.util.function.BiConsumer, org.hibernate.cache.spi.QueryKey, org.hibernate.engine.spi.SessionFactoryImplementor, .SharedSessionContractImplementor, org.hibernate.procedure.spi.ProcedureParameterBindingImplementor, .ProcedureParameterImplementor, org.hibernate.query.procedure.ProcedureParameterBinding, org.hibernate.query.spi.QueryParameterBinding, .QueryParameterBindings, .QueryParameterImplementor, org.jboss.logging.Logger, jakarta.persistence.ParameterMode

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Map<ProcedureParameterImplementor<?>, ProcedureParameterBindingImplementor<?>>
private static final Logger
private final ProcedureParameterMetadataImpl
private final SessionFactoryImplementor
sessionFactory

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Constructor Summary

AccessConstructor and Description
public
ProcedureParamBindings(ProcedureParameterMetadataImpl parameterMetadata, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
public QueryKey.ParameterBindingsMemento
generateQueryKeyMemento(SharedSessionContractImplementor persistenceContext)

Implements org.hibernate.query.spi.QueryParameterBindings.generateQueryKeyMemento.

Generate a "memento" for these parameter bindings that can be used in creating a QueryKey
public <P> ProcedureParameterBinding<P>
getBinding(QueryParameterImplementor<P>
The QueryParameter reference
parameter
)

Implements org.hibernate.query.spi.QueryParameterBindings.getBinding.

Access to the binding via QueryParameter reference
public <P> ProcedureParameterBinding<P>
getBinding(String
The parameter name
name
)

Implements org.hibernate.query.spi.QueryParameterBindings.getBinding.

Access to the binding via name
public <P> ProcedureParameterBinding<P>
getBinding(int
The parameter position
position
)

Implements org.hibernate.query.spi.QueryParameterBindings.getBinding.

Access to the binding via position
public ProcedureParameterMetadataImpl
public <P> ProcedureParameterBinding<P>
public boolean
public boolean
isBound(QueryParameterImplementor<?>
The parameter to check for a binding
parameter
)

Implements org.hibernate.query.spi.QueryParameterBindings.isBound.

Has binding been done for the given parameter.
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bindingMapback to summary
private final Map<ProcedureParameterImplementor<?>, ProcedureParameterBindingImplementor<?>> bindingMap
LOGback to summary
private static final Logger LOG
parameterMetadataback to summary
private final ProcedureParameterMetadataImpl parameterMetadata
sessionFactoryback to summary
private final SessionFactoryImplementor sessionFactory

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Constructor Detail

ProcedureParamBindingsback to summary
public ProcedureParamBindings(ProcedureParameterMetadataImpl parameterMetadata, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Method Detail

generateQueryKeyMementoback to summary
public QueryKey.ParameterBindingsMemento generateQueryKeyMemento(SharedSessionContractImplementor persistenceContext)

Implements org.hibernate.query.spi.QueryParameterBindings.generateQueryKeyMemento.

Doc from org.hibernate.query.spi.QueryParameterBindings.generateQueryKeyMemento.

Generate a "memento" for these parameter bindings that can be used in creating a QueryKey

Annotations
@Override
getBindingback to summary
public <P> ProcedureParameterBinding<P> getBinding(QueryParameterImplementor<P> parameter)

Implements org.hibernate.query.spi.QueryParameterBindings.getBinding.

Doc from org.hibernate.query.spi.QueryParameterBindings.getBinding.

Access to the binding via QueryParameter reference

Parameters
parameter:QueryParameterImplementor<P>

The QueryParameter reference

Returns:ProcedureParameterBinding<P>

The binding, or null if not yet bound

Annotations
@Override
getBindingback to summary
public <P> ProcedureParameterBinding<P> getBinding(String name)

Implements org.hibernate.query.spi.QueryParameterBindings.getBinding.

Doc from org.hibernate.query.spi.QueryParameterBindings.getBinding.

Access to the binding via name

Parameters
name:String

The parameter name

Returns:ProcedureParameterBinding<P>

The binding, or null if not yet bound

Annotations
@Override
getBindingback to summary
public <P> ProcedureParameterBinding<P> getBinding(int position)

Implements org.hibernate.query.spi.QueryParameterBindings.getBinding.

Doc from org.hibernate.query.spi.QueryParameterBindings.getBinding.

Access to the binding via position

Parameters
position:int

The parameter position

Returns:ProcedureParameterBinding<P>

The binding, or null if not yet bound

Annotations
@Override
getParameterMetadataback to summary
public ProcedureParameterMetadataImpl getParameterMetadata()
getQueryParamerBindingback to summary
public <P> ProcedureParameterBinding<P> getQueryParamerBinding(ProcedureParameterImplementor<P> parameter)
hasAnyMultiValuedBindingsback to summary
public boolean hasAnyMultiValuedBindings()

Implements org.hibernate.query.spi.QueryParameterBindings.hasAnyMultiValuedBindings.

Annotations
@Override
isBoundback to summary
public boolean isBound(QueryParameterImplementor<?> parameter)

Implements org.hibernate.query.spi.QueryParameterBindings.isBound.

Doc from org.hibernate.query.spi.QueryParameterBindings.isBound.

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.

Parameters
parameter:QueryParameterImplementor<?>

The parameter to check for a binding

Returns:boolean

true if its value has been bound; false otherwise.

Annotations
@Override
validateback to summary
public void validate()

Implements org.hibernate.query.spi.QueryParameterBindings.validate.

Doc from org.hibernate.query.spi.QueryParameterBindings.validate.

Validate the bindings. Called just before execution

Annotations
@Override
visitBindingsback to summary
public void visitBindings(BiConsumer<QueryParameterImplementor<?>, QueryParameterBinding<?>> action)

Implements org.hibernate.query.spi.QueryParameterBindings.visitBindings.

Annotations
@Override