Class ImmutableMutabilityPlan<T>
java.lang.Object
org.hibernate.type.descriptor.java.ImmutableMutabilityPlan<T>
- All Implemented Interfaces:
Serializable,MutabilityPlan<T>
Mutability plan for immutable objects
- See Also:
- API Note:
- For use with
Mutability, users should instead useImmutabilityas the type parameterization here does not work with the parameterization defined onMutability.value()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ImmutableMutabilityPlanDeprecated, 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(T value, SharedSessionContract session) Return a disassembled representation of the value.static <X> ImmutableMutabilityPlan<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
-
ImmutableMutabilityPlan
public ImmutableMutabilityPlan()
-
-
Method Details
-
instance
-
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.
-
deepCopy
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.
-
instance()