Class ComponentArrayMutabilityPlan
- java.lang.Object
-
- org.hibernate.type.descriptor.java.ComponentArrayMutabilityPlan
-
- All Implemented Interfaces:
Serializable,MutabilityPlan<Object[]>
public class ComponentArrayMutabilityPlan extends Object implements MutabilityPlan<Object[]>
Mutability plan for component based arrays.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComponentArrayMutabilityPlan(JavaType<Object>[] components)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]assemble(Serializable cached, SharedSessionContract session)Assemble a previously disassembled value.Object[]deepCopy(Object[] value)Return a deep copy of the value.Serializabledisassemble(Object[] 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<Object[]>- Returns:
- True if the internal state can be changed; false otherwise.
-
disassemble
public Serializable disassemble(Object[] value, SharedSessionContract session)
Description copied from interface:MutabilityPlanReturn 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:
disassemblein interfaceMutabilityPlan<Object[]>- See Also:
MutabilityPlan.assemble(java.io.Serializable, org.hibernate.SharedSessionContract)
-
assemble
public Object[] assemble(Serializable cached, SharedSessionContract session)
Description copied from interface:MutabilityPlanAssemble a previously disassembled value. This is used when pulling values from the second level cache. Compliment toMutabilityPlan.disassemble(T, org.hibernate.SharedSessionContract)- Specified by:
assemblein interfaceMutabilityPlan<Object[]>- See Also:
MutabilityPlan.disassemble(T, org.hibernate.SharedSessionContract)
-
deepCopy
public final Object[] deepCopy(Object[] value)
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.
-
-