类 AbstractTypeDescriptor<T>
- java.lang.Object
-
- org.hibernate.type.descriptor.java.AbstractTypeDescriptor<T>
-
- 所有已实现的接口:
Serializable,BasicJavaDescriptor<T>,JavaTypeDescriptor<T>
- 直接已知子类:
BigDecimalTypeDescriptor,BigIntegerTypeDescriptor,BlobTypeDescriptor,BooleanTypeDescriptor,ByteArrayTypeDescriptor,ByteTypeDescriptor,CalendarDateTypeDescriptor,CalendarTimeTypeDescriptor,CalendarTypeDescriptor,CharacterArrayTypeDescriptor,CharacterTypeDescriptor,ClassTypeDescriptor,ClobTypeDescriptor,CurrencyTypeDescriptor,DateTypeDescriptor,DoubleTypeDescriptor,DurationJavaDescriptor,EnumJavaTypeDescriptor,FloatTypeDescriptor,InstantJavaDescriptor,IntegerTypeDescriptor,JavaTypeDescriptorRegistry.FallbackJavaTypeDescriptor,JdbcDateTypeDescriptor,JdbcTimestampTypeDescriptor,JdbcTimeTypeDescriptor,LocalDateJavaDescriptor,LocalDateTimeJavaDescriptor,LocaleTypeDescriptor,LocalTimeJavaDescriptor,LongTypeDescriptor,NClobTypeDescriptor,OffsetDateTimeJavaDescriptor,OffsetTimeJavaDescriptor,PrimitiveByteArrayTypeDescriptor,PrimitiveCharacterArrayTypeDescriptor,RowVersionTypeDescriptor,SerializableTypeDescriptor,ShortTypeDescriptor,StringTypeDescriptor,TimeZoneTypeDescriptor,UrlTypeDescriptor,UUIDTypeDescriptor,ZonedDateTimeJavaDescriptor
public abstract class AbstractTypeDescriptor<T> extends Object implements BasicJavaDescriptor<T>, Serializable
Abstract adapter for Java type descriptors.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 限定符 构造器 说明 protectedAbstractTypeDescriptor(Class<T> type)Initialize a type descriptor for the given type.protectedAbstractTypeDescriptor(Class<T> type, MutabilityPlan<T> mutabilityPlan)Initialize a type descriptor for the given type.
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 booleanareEqual(T one, T another)Determine if two instances are equalintextractHashCode(T value)Extract a proper hash code for this value.StringextractLoggableRepresentation(T value)Extract a loggable representation of the value.Comparator<T>getComparator()Retrieve the natural comparator for this type.Class<T>getJavaType()Get the Java type describedClass<T>getJavaTypeClass()已过时。UsegetJavaType()insteadMutabilityPlan<T>getMutabilityPlan()Retrieve the mutability plan for this Java type.protected HibernateExceptionunknownUnwrap(Class conversionType)protected HibernateExceptionunknownWrap(Class conversionType)-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.type.descriptor.java.BasicJavaDescriptor
getJdbcRecommendedSqlType
-
从接口继承的方法 org.hibernate.type.descriptor.java.JavaTypeDescriptor
fromString, toString, unwrap, wrap
-
-
-
-
构造器详细资料
-
AbstractTypeDescriptor
protected AbstractTypeDescriptor(Class<T> type)
Initialize a type descriptor for the given type. Assumed immutable.- 参数:
type- The Java type.- 另请参阅:
AbstractTypeDescriptor(Class, MutabilityPlan)
-
AbstractTypeDescriptor
protected AbstractTypeDescriptor(Class<T> type, MutabilityPlan<T> mutabilityPlan)
Initialize a type descriptor for the given type. Assumed immutable.- 参数:
type- The Java type.mutabilityPlan- The plan for handling mutability aspects of the java type.
-
-
方法详细资料
-
getMutabilityPlan
public MutabilityPlan<T> getMutabilityPlan()
从接口复制的说明:JavaTypeDescriptorRetrieve the mutability plan for this Java type.- 指定者:
getMutabilityPlan在接口中JavaTypeDescriptor<T>
-
getJavaType
public Class<T> getJavaType()
从接口复制的说明:JavaTypeDescriptorGet the Java type described- 指定者:
getJavaType在接口中JavaTypeDescriptor<T>
-
getJavaTypeClass
@Deprecated public Class<T> getJavaTypeClass()
已过时。UsegetJavaType()instead从接口复制的说明:JavaTypeDescriptorRetrieve the Java type handled here.- 指定者:
getJavaTypeClass在接口中JavaTypeDescriptor<T>- 返回:
- The Java type.
-
extractHashCode
public int extractHashCode(T value)
从接口复制的说明:JavaTypeDescriptorExtract a proper hash code for this value.- 指定者:
extractHashCode在接口中JavaTypeDescriptor<T>- 参数:
value- The value for which to extract a hash code.- 返回:
- The extracted hash code.
-
areEqual
public boolean areEqual(T one, T another)
从接口复制的说明:JavaTypeDescriptorDetermine if two instances are equal- 指定者:
areEqual在接口中JavaTypeDescriptor<T>- 参数:
one- One instanceanother- The other instance- 返回:
- True if the two are considered equal; false otherwise.
-
getComparator
public Comparator<T> getComparator()
从接口复制的说明:JavaTypeDescriptorRetrieve the natural comparator for this type.- 指定者:
getComparator在接口中JavaTypeDescriptor<T>
-
extractLoggableRepresentation
public String extractLoggableRepresentation(T value)
从接口复制的说明:JavaTypeDescriptorExtract a loggable representation of the value.- 指定者:
extractLoggableRepresentation在接口中JavaTypeDescriptor<T>- 参数:
value- The value for which to extract a loggable representation.- 返回:
- The loggable representation
-
unknownUnwrap
protected HibernateException unknownUnwrap(Class conversionType)
-
unknownWrap
protected HibernateException unknownWrap(Class conversionType)
-
-