Top Description Fields Constructors Methods
org.hibernate.procedure.internal

public Class ParameterBindImpl<T>

extends Object
implements ParameterBind<T>
Class Inheritance
All Implemented Interfaces
org.hibernate.procedure.ParameterBind, org.hibernate.query.spi.QueryParameterBinding
Imports
javax.persistence.ParameterMode, .TemporalType, org.hibernate.procedure.ParameterBind, org.hibernate.query.internal.BindingTypeHelper, org.hibernate.query.procedure.internal.ProcedureParamBindings, org.hibernate.query.procedure.spi.ProcedureParameterImplementor, org.hibernate.type.Type, org.jboss.logging.Logger

Implementation of the ParameterBind contract.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private TemporalType
private Type
private boolean
private static final Logger
private final ProcedureParamBindings
private final ProcedureParameterImplementor<T>
private T

Constructor Summary

AccessConstructor and Description
public
ParameterBindImpl(ProcedureParameterImplementor<T> procedureParameter, ProcedureParamBindings procedureParamBindings)

Method Summary

Modifier and TypeMethod and Description
public Type
getBindType()

Implements org.hibernate.query.spi.QueryParameterBinding.getBindType.

Get the Type currently associated with this binding.
public T
public TemporalType
getExplicitTemporalType()

Implements org.hibernate.procedure.ParameterBind.getExplicitTemporalType.

If <T> represents a DATE/TIME type value, JPA usually allows specifying the particular parts of the DATE/TIME value to be bound.
public T
getValue()

Implements org.hibernate.procedure.ParameterBind.getValue.

Retrieves the bound value.
private void
public boolean
public void
setBindValue(T
The bind value
value
)

Implements org.hibernate.query.spi.QueryParameterBinding.setBindValue.

Sets the parameter binding value.
public void
setBindValue(T
The bind value
value
,
Type
The explicit Type to use
clarifiedType
)

Implements org.hibernate.query.spi.QueryParameterBinding.setBindValue.

Sets the parameter binding value using the explicit Type.
public void
setBindValue(T
The bind value
value
,
TemporalType
The temporal type to use
clarifiedTemporalType
)

Implements org.hibernate.query.spi.QueryParameterBinding.setBindValue.

Sets the parameter binding value using the explicit TemporalType.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

explicitTemporalTypeback to summary
private TemporalType explicitTemporalType
hibernateTypeback to summary
private Type hibernateType
isBoundback to summary
private boolean isBound
logback to summary
private static final Logger log
procedureParamBindingsback to summary
private final ProcedureParamBindings procedureParamBindings
procedureParameterback to summary
private final ProcedureParameterImplementor<T> procedureParameter
valueback to summary
private T value

Constructor Detail

ParameterBindImplback to summary
public ParameterBindImpl(ProcedureParameterImplementor<T> procedureParameter, ProcedureParamBindings procedureParamBindings)

Method Detail

getBindTypeback to summary
public Type getBindType()

Implements org.hibernate.query.spi.QueryParameterBinding.getBindType.

Doc from org.hibernate.query.spi.QueryParameterBinding.getBindType.

Get the Type currently associated with this binding.

Returns:Type

The currently associated Type

Annotations
@Override
getBindValueback to summary
public T getBindValue()

Implements org.hibernate.query.spi.QueryParameterBinding.getBindValue.

Doc from org.hibernate.query.spi.QueryParameterBinding.getBindValue.

Get the value current bound.

Returns:T

The currently bound value

Annotations
@Override
getExplicitTemporalTypeback to summary
public TemporalType getExplicitTemporalType()

Implements org.hibernate.procedure.ParameterBind.getExplicitTemporalType.

Doc from org.hibernate.procedure.ParameterBind.getExplicitTemporalType.

If <T> represents a DATE/TIME type value, JPA usually allows specifying the particular parts of the DATE/TIME value to be bound. This value represents the particular part the user requested to be bound.

Returns:TemporalType

The explicitly supplied TemporalType.

Annotations
@Override
getValueback to summary
public T getValue()

Implements org.hibernate.procedure.ParameterBind.getValue.

Doc from org.hibernate.procedure.ParameterBind.getValue.

Retrieves the bound value.

Returns:T

The bound value.

Annotations
@Override
internalSetValueback to summary
private void internalSetValue(T value)
isBoundback to summary
public boolean isBound()

Implements org.hibernate.query.spi.QueryParameterBinding.isBound.

Annotations
@Override
setBindValueback to summary
public void setBindValue(T value)

Implements org.hibernate.query.spi.QueryParameterBinding.setBindValue.

Doc from org.hibernate.query.spi.QueryParameterBinding.setBindValue.

Sets the parameter binding value. The inherent parameter type (if known) is assumed

Parameters
value:T

The bind value

Annotations
@Override
setBindValueback to summary
public void setBindValue(T value, Type clarifiedType)

Implements org.hibernate.query.spi.QueryParameterBinding.setBindValue.

Doc from org.hibernate.query.spi.QueryParameterBinding.setBindValue.

Sets the parameter binding value using the explicit Type.

Parameters
value:T

The bind value

clarifiedType:Type

The explicit Type to use

Annotations
@Override
setBindValueback to summary
public void setBindValue(T value, TemporalType clarifiedTemporalType)

Implements org.hibernate.query.spi.QueryParameterBinding.setBindValue.

Doc from org.hibernate.query.spi.QueryParameterBinding.setBindValue.

Sets the parameter binding value using the explicit TemporalType.

Parameters
value:T

The bind value

clarifiedTemporalType:TemporalType

The temporal type to use

Annotations
@Override