Package org.hibernate.type.internal
Class CompositeUserTypeJavaTypeWrapper<J>
java.lang.Object
org.hibernate.type.internal.CompositeUserTypeJavaTypeWrapper<J>
- All Implemented Interfaces:
Serializable,JavaType<J>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface org.hibernate.type.descriptor.java.JavaType
JavaType.CoercionContext -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine if two instances are equalintextractHashCode(J value) Extract a proper hash code for the given value.fromString(CharSequence string) Retrieve the natural comparator for this type.Get the Java type (theClassobject) described by thisJavaType.Retrieve the mutability plan for this Java type.getRecommendedJdbcType(JdbcTypeIndicators context) Obtain the "recommended"SQL type descriptorfor this Java type.<X> Xunwrap(J value, Class<X> type, WrapperOptions options) Unwrap an instance of our handled Java type into the requested type.<X> Jwrap(X value, WrapperOptions options) Wrap a value as our handled Java type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.type.descriptor.java.JavaType
appendEncodedString, coerce, createJavaType, extractLoggableRepresentation, fromEncodedString, fromEncodedString, getCheckCondition, getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getDefaultValue, getJavaType, getLongSqlLength, getReplacement, getTypeName, isInstance, isTemporalType, isWider, toString, useObjectEqualsHashCode
-
Field Details
-
userType
-
-
Constructor Details
-
CompositeUserTypeJavaTypeWrapper
-
-
Method Details
-
getMutabilityPlan
Description copied from interface:JavaTypeRetrieve the mutability plan for this Java type.- Specified by:
getMutabilityPlanin interfaceJavaType<J>
-
getRecommendedJdbcType
Description copied from interface:JavaTypeObtain the "recommended"SQL type descriptorfor this Java type. Often, but not always, the source of this recommendation is the JDBC specification.- Specified by:
getRecommendedJdbcTypein interfaceJavaType<J>- Parameters:
context- Contextual information- Returns:
- The recommended SQL type descriptor
-
getComparator
Description copied from interface:JavaTypeRetrieve the natural comparator for this type.- Specified by:
getComparatorin interfaceJavaType<J>
-
extractHashCode
Description copied from interface:JavaTypeExtract a proper hash code for the given value.- Specified by:
extractHashCodein interfaceJavaType<J>- Parameters:
value- The value for which to extract a hash code.- Returns:
- The extracted hash code.
-
areEqual
Description copied from interface:JavaTypeDetermine if two instances are equal -
fromString
- Specified by:
fromStringin interfaceJavaType<J>
-
unwrap
Description copied from interface:JavaTypeUnwrap an instance of our handled Java type into the requested type.As an example, if this is a
JavaType<Integer>and we are asked to unwrap theInteger valueas aLong, we would return something likeLong.valueOf( value.longValue() ).Intended use is during
PreparedStatementbinding. -
wrap
Description copied from interface:JavaTypeWrap a value as our handled Java type.Intended use is during
ResultSetextraction. -
getJavaTypeClass
Description copied from interface:JavaTypeGet the Java type (theClassobject) described by thisJavaType.- Specified by:
getJavaTypeClassin interfaceJavaType<J>- See Also:
-