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

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


net.sf.hibernate.type
Class MutableType

java.lang.Object
  extended bynet.sf.hibernate.type.AbstractType
      extended bynet.sf.hibernate.type.NullableType
          extended bynet.sf.hibernate.type.MutableType
All Implemented Interfaces:
Serializable, Type
Direct Known Subclasses:
BinaryType, CalendarDateType, CalendarType, DateType, SerializableType, TimestampType, TimeType

public abstract class MutableType
extends NullableType

Superclass for mutable nullable types

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
MutableType()
           
 
Method Summary
 Object copy(Object original, Object target, SessionImplementor session, Object owner, Map copiedAlready)
           
 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, deepCopyNotNull, 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

MutableType

public MutableType()
Method Detail

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