/*
 * 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.jpa;

import org.hibernate.type.Type;

Can be used to bind query parameter values. Allows to provide additional details about the parameter value/binding.
Author:Steve Ebersole
/** * Can be used to bind query parameter values. Allows to provide additional details about the * parameter value/binding. * * @author Steve Ebersole */
public class TypedParameterValue { private final Type type; private final Object value; public TypedParameterValue(Type type, Object value) { this.type = type; this.value = value; }
The value to bind
Returns:The value to be bound
/** * The value to bind * * @return The value to be bound */
public Object getValue() { return value; }
The specific Hibernate type to use to bind the value.
Returns:The Hibernate type to use.
/** * The specific Hibernate type to use to bind the value. * * @return The Hibernate type to use. */
public Type getType() { return type; } }