org.hibernate.type
Class MutableType
java.lang.Object
org.hibernate.type.AbstractType
org.hibernate.type.NullableType
org.hibernate.type.MutableType
- All Implemented Interfaces:
- Serializable, StringRepresentableType, Type, XmlRepresentableType
- Direct Known Subclasses:
- AbstractBynaryType, AbstractCharArrayType
Deprecated. Use the AbstractStandardBasicType
approach instead
public abstract class MutableType
- extends NullableType
Superclass for mutable nullable types
- See Also:
- Serialized Form
Methods inherited from class org.hibernate.type.NullableType |
defaultSize, defaultSizes, dictatedSize, dictatedSizes, fromStringValue, fromXMLNode, fromXMLString, get, getColumnSpan, isDirty, isEqual, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, nullSafeSet, nullSafeToString, set, setToXMLNode, sqlType, sqlTypes, toColumnNullness, toLoggableString, toString, toXMLString |
Methods inherited from class org.hibernate.type.AbstractType |
assemble, beforeAssemble, compare, disassemble, getHashCode, getHashCode, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isEntityType, isEqual, isModified, isSame, isXMLElement, replace, replaceNode, resolve, semiResolve |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MutableType
public MutableType()
- Deprecated.
isMutable
public final boolean isMutable()
- Deprecated.
- 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
deepCopyNotNull
protected abstract Object deepCopyNotNull(Object value)
throws HibernateException
- Deprecated.
- Throws:
HibernateException
deepCopy
public final Object deepCopy(Object value,
SessionFactoryImplementor factory)
throws HibernateException
- Deprecated.
- Description copied from interface:
Type
- Return a deep copy of the persistent state, stopping at entities and at collections.
- Parameters:
value
- The value to be copiedfactory
- The session factory
- Returns:
- The deep copy
- Throws:
HibernateException
- An error from Hibernate
replace
public Object replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache)
throws HibernateException
- Deprecated.
- Description copied from interface:
Type
- During merge, replace the existing (target) value in the entity we are merging to
with a new (original) value from the detached entity we are merging. For immutable
objects, or null values, it is safe to simply return the first parameter. For
mutable objects, it is safe to return a copy of the first parameter. For objects
with component values, it might make sense to recursively replace component values.
- Parameters:
original
- the value from the detached entity being mergedtarget
- the value in the managed entitysession
- The originating sessionowner
- The owner of the valuecopyCache
- The cache of already copied/replaced values
- Returns:
- the value to be merged
- Throws:
HibernateException
- An error from Hibernate
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.