public abstract class

MutableMutabilityPlan

extends Object
implements MutabilityPlan<T>
java.lang.Object
   ↳ org.hibernate.type.descriptor.java.MutableMutabilityPlan<T>
Known Direct Subclasses

Class Overview

Mutability plan for mutable objects

Summary

Public Constructors
MutableMutabilityPlan()
Public Methods
T assemble(Serializable cached)
Assemble a previously disassembled value.
final T deepCopy(T value)
Return a deep copy of the value.
Serializable disassemble(T value)
Return a "disassembled" representation of the value.
boolean isMutable()
Can the internal state of instances of T be changed?
Protected Methods
abstract T deepCopyNotNull(T value)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.type.descriptor.java.MutabilityPlan

Public Constructors

public MutableMutabilityPlan ()

Public Methods

public T assemble (Serializable cached)

Assemble a previously disassembled value. This is used when pulling values from the second level cache. Compliment to disassemble(T)

Parameters
cached The disassembled state
Returns
  • The re-assembled value.

public final T deepCopy (T value)

Return a deep copy of the value.

Parameters
value The value to deep copy
Returns
  • The deep copy.

public Serializable disassemble (T value)

Return a "disassembled" representation of the value. This is used to push values onto the second level cache. Compliment to assemble(Serializable)

Parameters
value The value to disassemble
Returns
  • The disassembled value.

public boolean isMutable ()

Can the internal state of instances of T be changed?

Returns
  • True if the internal state can be changed; false otherwise.

Protected Methods

protected abstract T deepCopyNotNull (T value)