Package org.hibernate.query
Class TypedParameterValue<J>
- java.lang.Object
-
- org.hibernate.query.TypedParameterValue<J>
-
public final class TypedParameterValue<J> extends Object
Can be used to bind query parameter values. Allows providing additional details about the parameter value/binding.
-
-
Constructor Summary
Constructors Constructor Description TypedParameterValue(BindableType<J> type, J value)
TypedParameterValue(BasicTypeReference<J> type, J value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BindableType<J>
getType()
The specific Hibernate type to use to bind the value.BasicTypeReference<J>
getTypeReference()
The specific Hibernate type reference to use to bind the value.J
getValue()
The value to bind
-
-
-
Constructor Detail
-
TypedParameterValue
public TypedParameterValue(BindableType<J> type, J value)
-
TypedParameterValue
public TypedParameterValue(BasicTypeReference<J> type, J value)
-
-
Method Detail
-
getValue
public J getValue()
The value to bind- Returns:
- The value to be bound
-
getType
public BindableType<J> getType()
The specific Hibernate type to use to bind the value.- Returns:
- The Hibernate type to use.
-
getTypeReference
public BasicTypeReference<J> getTypeReference()
The specific Hibernate type reference to use to bind the value.- Returns:
- The Hibernate type reference to use.
-
-