/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.query.spi;
import javax.persistence.TemporalType;
import org.hibernate.Incubating;
import org.hibernate.type.Type;
The value/type binding information for a particular query parameter.
Author: Steve Ebersole
/**
* The value/type binding information for a particular query parameter.
*
* @author Steve Ebersole
*/
@Incubating
public interface QueryParameterBinding<T> {
boolean isBound();
Sets the parameter binding value. The inherent parameter type (if known) is assumed
Params: - value – The bind value
/**
* Sets the parameter binding value. The inherent parameter type (if known) is assumed
*
* @param value The bind value
*/
void setBindValue(T value);
Sets the parameter binding value using the explicit Type.
Params: - value – The bind value
- clarifiedType – The explicit Type to use
/**
* Sets the parameter binding value using the explicit Type.
*
* @param value The bind value
* @param clarifiedType The explicit Type to use
*/
void setBindValue(T value, Type clarifiedType);
Sets the parameter binding value using the explicit TemporalType.
Params: - value – The bind value
- clarifiedTemporalType – The temporal type to use
/**
* Sets the parameter binding value using the explicit TemporalType.
*
* @param value The bind value
* @param clarifiedTemporalType The temporal type to use
*/
void setBindValue(T value, TemporalType clarifiedTemporalType);
Get the value current bound.
Returns: The currently bound value
/**
* Get the value current bound.
*
* @return The currently bound value
*/
T getBindValue();
Get the Type currently associated with this binding.
Returns: The currently associated Type
/**
* Get the Type currently associated with this binding.
*
* @return The currently associated Type
*/
Type getBindType();
}