Class Immutability
java.lang.Object
org.hibernate.type.descriptor.java.Immutability
- All Implemented Interfaces:
Serializable,MutabilityPlan<Object>
Object-typed form of
ImmutableMutabilityPlan for easier use
with Mutability for users- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ImmutabilityDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassemble(Serializable cached, SharedSessionContract session) Assemble a previously disassembled value.Return a deep copy of the value.disassemble(Object value, SharedSessionContract session) Return a disassembled representation of the value.static <X> MutabilityPlan<X> instance()booleanCan the internal state of instances ofTbe changed?
-
Field Details
-
INSTANCE
Deprecated, for removal: This API element is subject to removal in a future version.in favor ofinstance()Singleton access
-
-
Constructor Details
-
Immutability
public Immutability()
-
-
Method Details
-
instance
-
isMutable
public boolean isMutable()Description copied from interface:MutabilityPlanCan the internal state of instances ofTbe changed?- Specified by:
isMutablein interfaceMutabilityPlan<Object>- Returns:
- True if the internal state can be changed; false otherwise.
-
deepCopy
Description copied from interface:MutabilityPlanReturn a deep copy of the value.- Specified by:
deepCopyin interfaceMutabilityPlan<Object>- Parameters:
value- The value to deep copy- Returns:
- The deep copy.
-
instance()