站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

ImmutableType (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.type
Class ImmutableType

java.lang.Object
  extended bynet.sf.hibernate.type.AbstractType
      extended bynet.sf.hibernate.type.NullableType
          extended bynet.sf.hibernate.type.ImmutableType
All Implemented Interfaces:
Serializable, Type
Direct Known Subclasses:
BigDecimalType, BlobType, ClassType, ClobType, CurrencyType, LocaleType, PersistentEnumType, PrimitiveType, StringType, TextType, TimeZoneType

public abstract class ImmutableType
extends NullableType

Superclass of nullable immutable types.

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
ImmutableType()
           
 
Method Summary
 Object copy(Object original, Object target, SessionImplementor session, Object owner, Map copiedAlready)
           
 Object deepCopyNotNull(Object value)
           
 boolean hasNiceEquals()
          Does this type implement a well-behaved equals() method.
 boolean isMutable()
          Are objects of this type mutable.
 
Methods inherited from class net.sf.hibernate.type.NullableType
deepCopy, fromString, fromStringValue, get, getColumnSpan, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, set, sqlType, sqlTypes, toString, toString
 
Methods inherited from class net.sf.hibernate.type.AbstractType
assemble, disassemble, equals, hashCode, hydrate, isAssociationType, isComponentType, isDirty, isEntityType, isModified, isObjectType, isPersistentCollectionType, resolveIdentifier
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.hibernate.type.Type
equals, getName, getReturnedClass
 

Constructor Detail

ImmutableType

public ImmutableType()
Method Detail

deepCopyNotNull

public final Object deepCopyNotNull(Object value)
                             throws HibernateException
Specified by:
deepCopyNotNull in class NullableType
Throws:
HibernateException

isMutable

public final boolean isMutable()
Description copied from interface: Type
Are objects of this type mutable. (With respect to the referencing object ... entities and collections are considered immutable because they manage their own internal state.)

Returns:
boolean

hasNiceEquals

public boolean hasNiceEquals()
Description copied from interface: Type
Does this type implement a well-behaved equals() method. (ie. one that is consistent with Type.equals().) Strictly, if this method returns true then x.equals(y) implies Type.equals(x, y) and also Type.equals(x, y) implies that probably x.equals(y)

See Also:
Object.equals(java.lang.Object), Type.equals(java.lang.Object, java.lang.Object)

copy

public Object copy(Object original,
                   Object target,
                   SessionImplementor session,
                   Object owner,
                   Map copiedAlready)
            throws HibernateException
Specified by:
copy in interface Type
Overrides:
copy in class AbstractType
Throws:
HibernateException