Package org.hibernate.type.internal
Class UserTypeJavaTypeWrapper.MutabilityPlanWrapper<J>
- java.lang.Object
-
- org.hibernate.type.internal.UserTypeJavaTypeWrapper.MutabilityPlanWrapper<J>
-
- All Implemented Interfaces:
Serializable,MutabilityPlan<J>
- Enclosing class:
- UserTypeJavaTypeWrapper<J>
public static class UserTypeJavaTypeWrapper.MutabilityPlanWrapper<J> extends Object implements MutabilityPlan<J>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MutabilityPlanWrapper(UserType<J> userType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Jassemble(Serializable cached, SharedSessionContract session)Assemble a previously disassembled value.JdeepCopy(J value)Return a deep copy of the value.Serializabledisassemble(J value, SharedSessionContract session)Return a disassembled representation of the value.booleanisMutable()Can the internal state of instances ofTbe changed?
-
-
-
Method Detail
-
isMutable
public boolean isMutable()
Description copied from interface:MutabilityPlanCan the internal state of instances ofTbe changed?- Specified by:
isMutablein interfaceMutabilityPlan<J>- Returns:
- True if the internal state can be changed; false otherwise.
-
deepCopy
public J deepCopy(J value)
Description copied from interface:MutabilityPlanReturn a deep copy of the value.- Specified by:
deepCopyin interfaceMutabilityPlan<J>- Parameters:
value- The value to deep copy- Returns:
- The deep copy.
-
disassemble
public Serializable disassemble(J 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<J>- See Also:
MutabilityPlan.assemble(java.io.Serializable, org.hibernate.SharedSessionContract)
-
assemble
public J 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<J>- See Also:
MutabilityPlan.disassemble(T, org.hibernate.SharedSessionContract)
-
-