Class UserTypeMutabilityPlanAdapter<T>
- java.lang.Object
-
- org.hibernate.boot.model.process.internal.UserTypeMutabilityPlanAdapter<T>
-
- All Implemented Interfaces:
Serializable
,MutabilityPlan<T>
public class UserTypeMutabilityPlanAdapter<T> extends Object implements MutabilityPlan<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserTypeMutabilityPlanAdapter(UserType<T> userType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
assemble(Serializable cached, SharedSessionContract session)
Assemble a previously disassembled value.T
deepCopy(T value)
Return a deep copy of the value.Serializable
disassemble(T value, SharedSessionContract session)
Return a disassembled representation of the value.boolean
isMutable()
Can the internal state of instances ofT
be changed?
-
-
-
Method Detail
-
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
public T deepCopy(T value)
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.
-
disassemble
public Serializable disassemble(T value, SharedSessionContract session)
Description copied from interface:MutabilityPlan
Return a disassembled representation of the value. This is used to push values onto the second level cache. Compliment toMutabilityPlan.assemble(java.io.Serializable, org.hibernate.SharedSessionContract)
- Specified by:
disassemble
in interfaceMutabilityPlan<T>
- See Also:
MutabilityPlan.assemble(java.io.Serializable, org.hibernate.SharedSessionContract)
-
assemble
public T assemble(Serializable cached, SharedSessionContract session)
Description copied from interface:MutabilityPlan
Assemble a previously disassembled value. This is used when pulling values from the second level cache. Compliment toMutabilityPlan.disassemble(T, org.hibernate.SharedSessionContract)
- Specified by:
assemble
in interfaceMutabilityPlan<T>
- See Also:
MutabilityPlan.disassemble(T, org.hibernate.SharedSessionContract)
-
-