Top Description Methods
org.hibernate.query.spi

public Interface QueryParameterListBinding<T>

Known Direct Implementers
org.hibernate.query.internal.QueryParameterListBindingImpl
Annotations
@Incubating
Imports
java.util.Collection, javax.persistence.TemporalType, org.hibernate.Incubating, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.query.internal.QueryParameterBindingsImpl, org.hibernate.type.Type

Represents a "parameter list" binding: aka the binding of a collection of values for a single query parameter. At some point these need to be "expanded"; see QueryParameterBindingsImpl#expandListValuedParameters(String, SharedSessionContractImplementor) for details.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Type

Returns:

The currently associated Type
getBindType
()

Get the Type currently associated with this binding.

public Collection<T>

Returns:

The currently bound values
getBindValues
()

Get the values currently bound.

public void
setBindValues(Collection<T>
The bind values
values
)

Sets the parameter binding values.

public void
setBindValues(Collection<T>
The bind values
values
,
Type
The explicit Type to use
clarifiedType
)

Sets the parameter binding values using the explicit Type in regards to the individual values.

public void
setBindValues(Collection<T>
The bind values
values
,
TemporalType
The temporal type to use
clarifiedTemporalType
)

Sets the parameter binding value using the explicit TemporalType in regards to the individual values.

Method Detail

getBindTypeback to summary
public Type getBindType()

Get the Type currently associated with this binding.

Returns:Type

The currently associated Type

getBindValuesback to summary
public Collection<T> getBindValues()

Get the values currently bound.

Returns:Collection<T>

The currently bound values

setBindValuesback to summary
public void setBindValues(Collection<T> values)

Sets the parameter binding values. The inherent parameter type (if known) is assumed in regards to the individual values.

Parameters
values:Collection<T>

The bind values

setBindValuesback to summary
public void setBindValues(Collection<T> values, Type clarifiedType)

Sets the parameter binding values using the explicit Type in regards to the individual values.

Parameters
values:Collection<T>

The bind values

clarifiedType:Type

The explicit Type to use

setBindValuesback to summary
public void setBindValues(Collection<T> values, TemporalType clarifiedTemporalType)

Sets the parameter binding value using the explicit TemporalType in regards to the individual values.

Parameters
values:Collection<T>

The bind values

clarifiedTemporalType:TemporalType

The temporal type to use