Class MutableMutabilityPlan<T>
java.lang.Object
org.hibernate.type.descriptor.java.MutableMutabilityPlan<T>
- All Implemented Interfaces:
Serializable
,MutabilityPlan<T>
- Direct Known Subclasses:
ArrayMutabilityPlan
,AttributeConverterMutabilityPlanImpl
,CalendarJavaType.CalendarMutabilityPlan
,DateJavaType.DateMutabilityPlan
,ImmutableObjectArrayMutabilityPlan
,JdbcDateJavaType.DateMutabilityPlan
,JdbcTimeJavaType.TimeMutabilityPlan
,JdbcTimestampJavaType.TimestampMutabilityPlan
,SerializableJavaType.SerializableMutabilityPlan
Mutability plan for mutable objects
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassemble
(Serializable cached, SharedSessionContract session) Assemble a previously disassembled value.final T
Return a deep copy of the value.protected abstract T
deepCopyNotNull
(T value) disassemble
(T value, SharedSessionContract session) Return a disassembled representation of the value.boolean
Can the internal state of instances ofT
be changed?
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
MutableMutabilityPlan
public MutableMutabilityPlan()
-
-
Method Details
-
isMutable
public boolean isMutable()Description copied from interface:MutabilityPlan
Can the internal state of instances ofT
be changed?- Specified by:
isMutable
in interfaceMutabilityPlan<T>
- Returns:
- True if the internal state can be changed; false otherwise.
-
deepCopy
Description copied from interface:MutabilityPlan
Return a deep copy of the value.- Specified by:
deepCopy
in interfaceMutabilityPlan<T>
- Parameters:
value
- The value to deep copy- Returns:
- The deep copy.
-
deepCopyNotNull
-