org.hibernate.query.spi.QueryParameterBinding Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
JPMS Module-Info's for a few of the Jakarta Libraries just until they add them in themselves
/*
* 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 .
*/
package org.hibernate.query.spi;
import jakarta.persistence.TemporalType;
import org.hibernate.Incubating;
import org.hibernate.type.Type;
/**
* The value/type binding information for a particular query parameter.
*
* @author Steve Ebersole
*/
@Incubating
public interface QueryParameterBinding {
boolean isBound();
/**
* 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.
*
* @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.
*
* @param value The bind value
* @param clarifiedTemporalType The temporal type to use
*/
void setBindValue(T value, TemporalType clarifiedTemporalType);
/**
* Get the value current bound.
*
* @return The currently bound value
*/
T getBindValue();
/**
* Get the Type currently associated with this binding.
*
* @return The currently associated Type
*/
Type getBindType();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy