Interface MutabilityPlan<T>
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
ArrayMutabilityPlan
,AttributeConverterMutabilityPlanImpl
,BlobTypeDescriptor.BlobMutabilityPlan
,CalendarTypeDescriptor.CalendarMutabilityPlan
,ClobTypeDescriptor.ClobMutabilityPlan
,DateTypeDescriptor.DateMutabilityPlan
,ImmutableMutabilityPlan
,JdbcDateTypeDescriptor.DateMutabilityPlan
,JdbcTimestampTypeDescriptor.TimestampMutabilityPlan
,JdbcTimeTypeDescriptor.TimeMutabilityPlan
,MutableMutabilityPlan
,NClobTypeDescriptor.NClobMutabilityPlan
,SerializableTypeDescriptor.SerializableMutabilityPlan
public interface MutabilityPlan<T> extends java.io.Serializable
Describes the mutability aspects of a Java type. The term mutability refers to the fact that generally speaking the aspects described by this contract are defined by whether the Java type's internal state is mutable or not.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
assemble(java.io.Serializable cached)
Assemble a previously disassembled value.T
deepCopy(T value)
Return a deep copy of the value.java.io.Serializable
disassemble(T value)
Return a "disassembled" representation of the value.boolean
isMutable()
Can the internal state of instances of T be changed?
-
-
-
Method Detail
-
isMutable
boolean isMutable()
Can the internal state of instances of T be changed?- Returns:
- True if the internal state can be changed; false otherwise.
-
deepCopy
T deepCopy(T value)
Return a deep copy of the value.- Parameters:
value
- The value to deep copy- Returns:
- The deep copy.
-
disassemble
java.io.Serializable disassemble(T value)
Return a "disassembled" representation of the value. This is used to push values onto the second level cache. Compliment toassemble(java.io.Serializable)
- Parameters:
value
- The value to disassemble- Returns:
- The disassembled value.
- See Also:
assemble(java.io.Serializable)
-
assemble
T assemble(java.io.Serializable cached)
Assemble a previously disassembled value. This is used when pulling values from the second level cache. Compliment todisassemble(T)
- Parameters:
cached
- The disassembled state- Returns:
- The re-assembled value.
- See Also:
disassemble(T)
-
-