Top Fields Constructors Methods
org.hibernate.query.internal

public Class QueryParameterBindingImpl<T>

extends Object
implements QueryParameterBinding<T>
Class Inheritance
All Implemented Interfaces
org.hibernate.query.spi.QueryParameterBinding
Imports
javax.persistence.TemporalType, org.hibernate.query.spi.QueryParameterBinding, .QueryParameterBindingTypeResolver, .QueryParameterBindingValidator, org.hibernate.type.Type

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private Type
private T
private final boolean
private boolean
private final QueryParameterBindingTypeResolver

Constructor Summary

AccessConstructor and Description
public
QueryParameterBindingImpl(Type type, QueryParameterBindingTypeResolver typeResolver, boolean isBindingValidationRequired)

Method Summary

Modifier and TypeMethod and Description
private void
bindValue(T value)

public Type
getBindType()

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

Get the Type currently associated with this binding.
public T
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.
private void
validate(T value)

private void
validate(T value, Type clarifiedType)

private void
validate(T value, TemporalType clarifiedTemporalType)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bindTypeback to summary
private Type bindType
bindValueback to summary
private T bindValue
isBindingValidationRequiredback to summary
private final boolean isBindingValidationRequired
isBoundback to summary
private boolean isBound
typeResolverback to summary
private final QueryParameterBindingTypeResolver typeResolver

Constructor Detail

QueryParameterBindingImplback to summary
public QueryParameterBindingImpl(Type type, QueryParameterBindingTypeResolver typeResolver, boolean isBindingValidationRequired)

Method Detail

bindValueback to summary
private void bindValue(T value)
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
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
validateback to summary
private void validate(T value)
validateback to summary
private void validate(T value, Type clarifiedType)
validateback to summary
private void validate(T value, TemporalType clarifiedTemporalType)