public abstract class AbstractTypeDescriptor<T> extends java.lang.Object implements JavaTypeDescriptor<T>, java.io.Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTypeDescriptor(java.lang.Class<T> type)
Initialize a type descriptor for the given type.
|
protected |
AbstractTypeDescriptor(java.lang.Class<T> type,
MutabilityPlan<T> mutabilityPlan)
Initialize a type descriptor for the given type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
areEqual(T one,
T another)
Determine if two instances are equal
|
int |
extractHashCode(T value)
Extract a proper hash code for this value.
|
java.lang.String |
extractLoggableRepresentation(T value)
Extract a loggable representation of the value.
|
java.util.Comparator<T> |
getComparator()
Retrieve the natural comparator for this type.
|
java.lang.Class<T> |
getJavaTypeClass()
Retrieve the Java type handled here.
|
MutabilityPlan<T> |
getMutabilityPlan()
Retrieve the mutability plan for this Java type.
|
protected HibernateException |
unknownUnwrap(java.lang.Class conversionType) |
protected HibernateException |
unknownWrap(java.lang.Class conversionType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromString, toString, unwrap, wrapprotected AbstractTypeDescriptor(java.lang.Class<T> type)
type - The Java type.AbstractTypeDescriptor(Class, MutabilityPlan)protected AbstractTypeDescriptor(java.lang.Class<T> type, MutabilityPlan<T> mutabilityPlan)
type - The Java type.mutabilityPlan - The plan for handling mutability aspects of the java type.public MutabilityPlan<T> getMutabilityPlan()
getMutabilityPlan in interface JavaTypeDescriptor<T>public java.lang.Class<T> getJavaTypeClass()
getJavaTypeClass in interface JavaTypeDescriptor<T>public int extractHashCode(T value)
extractHashCode in interface JavaTypeDescriptor<T>value - The value for which to extract a hash code.public boolean areEqual(T one, T another)
areEqual in interface JavaTypeDescriptor<T>one - One instanceanother - The other instancepublic java.util.Comparator<T> getComparator()
getComparator in interface JavaTypeDescriptor<T>public java.lang.String extractLoggableRepresentation(T value)
extractLoggableRepresentation in interface JavaTypeDescriptor<T>value - The value for which to extract a loggable representation.protected HibernateException unknownUnwrap(java.lang.Class conversionType)
protected HibernateException unknownWrap(java.lang.Class conversionType)
Copyright © 2013. All Rights Reserved.