org.hibernate.type.descriptor.java.JavaTypeDescriptor<T> |
Descriptor for the Java side of a value mapping.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determine if two instances are equal
| |||||||||||
Extract a proper hash code for this value.
| |||||||||||
Extract a loggable representation of the value.
| |||||||||||
Retrieve the natural comparator for this type.
| |||||||||||
Retrieve the Java type handled here.
| |||||||||||
Retrieve the mutability plan for this Java type.
| |||||||||||
Unwrap an instance of our handled Java type into the requested type.
| |||||||||||
Wrap a value as our handled Java type.
|
Determine if two instances are equal
one | One instance |
---|---|
another | The other instance |
Extract a proper hash code for this value.
value | The value for which to extract a hash code. |
---|
Extract a loggable representation of the value.
value | The value for which to extract a loggable representation. |
---|
Retrieve the natural comparator for this type.
Retrieve the Java type handled here.
Retrieve the mutability plan for this Java type.
Unwrap an instance of our handled Java type into the requested type.
As an example, if this is aJavaTypeDescriptor<Integer>
and we are asked to unwrap
the Integer value
as a Long
we would return something like
Long.valueOf( value.longValue() )
.
Intended use is during PreparedStatement
binding.value | The value to unwrap |
---|---|
type | The type as which to unwrap |
options | The options |
Wrap a value as our handled Java type.
Intended use is duringResultSet
extraction.value | The value to wrap. |
---|---|
options | The options |