当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
ImmutableType (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.type
Class ImmutableType
java.lang.Object
net.sf.hibernate.type.AbstractType
net.sf.hibernate.type.NullableType
net.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
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 |
ImmutableType
public ImmutableType()
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