Class MutableMutabilityPlan<T>
- java.lang.Object
-
- org.hibernate.type.descriptor.java.MutableMutabilityPlan<T>
-
- All Implemented Interfaces:
Serializable,MutabilityPlan<T>
- Direct Known Subclasses:
ArrayMutabilityPlan,CalendarJavaType.CalendarMutabilityPlan,DateJavaType.DateMutabilityPlan,JdbcDateJavaType.DateMutabilityPlan,JdbcTimeJavaType.TimeMutabilityPlan,JdbcTimestampJavaType.TimestampMutabilityPlan,SerializableJavaType.SerializableMutabilityPlan
public abstract class MutableMutabilityPlan<T> extends Object implements MutabilityPlan<T>
Mutability plan for mutable objects- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static MutableMutabilityPlan<Object>INSTANCE
-
Constructor Summary
Constructors Constructor Description MutableMutabilityPlan()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tassemble(Serializable cached, SharedSessionContract session)Assemble a previously disassembled value.TdeepCopy(T value)Return a deep copy of the value.protected abstract TdeepCopyNotNull(T value)Serializabledisassemble(T value, SharedSessionContract session)Return a disassembled representation of the value.booleanisMutable()Can the internal state of instances ofTbe changed?
-
-
-
Field Detail
-
INSTANCE
public static final MutableMutabilityPlan<Object> INSTANCE
-
-
Method Detail
-
isMutable
public boolean isMutable()
Description copied from interface:MutabilityPlanCan the internal state of instances ofTbe changed?- Specified by:
isMutablein interfaceMutabilityPlan<T>- Returns:
- True if the internal state can be changed; false otherwise.
-
disassemble
public Serializable disassemble(T value, SharedSessionContract session)
Description copied from interface:MutabilityPlanReturn a disassembled representation of the value.Called before storing a value in the second-level cache.
Complementary to
MutabilityPlan.assemble(java.io.Serializable, org.hibernate.SharedSessionContract).- Specified by:
disassemblein interfaceMutabilityPlan<T>- See Also:
MutabilityPlan.assemble(java.io.Serializable, org.hibernate.SharedSessionContract)
-
assemble
public T assemble(Serializable cached, SharedSessionContract session)
Description copied from interface:MutabilityPlanAssemble a previously disassembled value.Called after reading a value from the second level cache.
Complementary to
MutabilityPlan.disassemble(T, org.hibernate.SharedSessionContract).- Specified by:
assemblein interfaceMutabilityPlan<T>- See Also:
MutabilityPlan.disassemble(T, org.hibernate.SharedSessionContract)
-
deepCopy
public final T deepCopy(T value)
Description copied from interface:MutabilityPlanReturn a deep copy of the value.- Specified by:
deepCopyin interfaceMutabilityPlan<T>- Parameters:
value- The value to deep copy- Returns:
- The deep copy.
-
-