Interface MutabilityPlan<T>
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ArrayMutabilityPlan,AttributeConverterMutabilityPlanImpl,BlobJavaType.BlobMutabilityPlan,CalendarJavaType.CalendarMutabilityPlan,ClobJavaType.ClobMutabilityPlan,ComponentArrayMutabilityPlan,DateJavaType.DateMutabilityPlan,ImmutableMutabilityPlan,JdbcDateJavaType.DateMutabilityPlan,JdbcTimeJavaType.TimeMutabilityPlan,JdbcTimestampJavaType.TimestampMutabilityPlan,MutableMutabilityPlan,NClobJavaType.NClobMutabilityPlan,SerializableJavaType.SerializableMutabilityPlan
public interface MutabilityPlan<T> extends 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 Tassemble(Serializable cached, SharedSessionContract session)Assemble a previously disassembled value.TdeepCopy(T value)Return a deep copy of the value.Serializabledisassemble(T value, SharedSessionContract session)Return a disassembled representation of the value.booleanisMutable()Can the internal state of instances ofTbe changed?
-
-
-
Method Detail
-
isMutable
boolean isMutable()
Can the internal state of instances ofTbe 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
Serializable disassemble(T value, SharedSessionContract session)
Return a disassembled representation of the value. This is used to push values onto the second level cache. Compliment toassemble(java.io.Serializable, org.hibernate.SharedSessionContract)
-
assemble
T assemble(Serializable cached, SharedSessionContract session)
Assemble a previously disassembled value. This is used when pulling values from the second level cache. Compliment todisassemble(T, org.hibernate.SharedSessionContract)
-
-