Class BlobTypeDescriptor.BlobMutabilityPlan
- java.lang.Object
-
- org.hibernate.type.descriptor.java.BlobTypeDescriptor.BlobMutabilityPlan
-
- All Implemented Interfaces:
java.io.Serializable
,MutabilityPlan<java.sql.Blob>
- Enclosing class:
- BlobTypeDescriptor
public static class BlobTypeDescriptor.BlobMutabilityPlan extends java.lang.Object implements MutabilityPlan<java.sql.Blob>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BlobTypeDescriptor.BlobMutabilityPlan
INSTANCE
-
Constructor Summary
Constructors Constructor Description BlobMutabilityPlan()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.Blob
assemble(java.io.Serializable cached)
Assemble a previously disassembled value.java.sql.Blob
deepCopy(java.sql.Blob value)
Return a deep copy of the value.java.io.Serializable
disassemble(java.sql.Blob value)
Return a "disassembled" representation of the value.boolean
isMutable()
Can the internal state of instances of T be changed?
-
-
-
Field Detail
-
INSTANCE
public static final BlobTypeDescriptor.BlobMutabilityPlan INSTANCE
-
-
Method Detail
-
isMutable
public boolean isMutable()
Description copied from interface:MutabilityPlan
Can the internal state of instances of T be changed?- Specified by:
isMutable
in interfaceMutabilityPlan<java.sql.Blob>
- Returns:
- True if the internal state can be changed; false otherwise.
-
deepCopy
public java.sql.Blob deepCopy(java.sql.Blob value)
Description copied from interface:MutabilityPlan
Return a deep copy of the value.- Specified by:
deepCopy
in interfaceMutabilityPlan<java.sql.Blob>
- Parameters:
value
- The value to deep copy- Returns:
- The deep copy.
-
disassemble
public java.io.Serializable disassemble(java.sql.Blob value)
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)
- Specified by:
disassemble
in interfaceMutabilityPlan<java.sql.Blob>
- Parameters:
value
- The value to disassemble- Returns:
- The disassembled value.
- See Also:
MutabilityPlan.assemble(java.io.Serializable)
-
assemble
public java.sql.Blob assemble(java.io.Serializable cached)
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)
- Specified by:
assemble
in interfaceMutabilityPlan<java.sql.Blob>
- Parameters:
cached
- The disassembled state- Returns:
- The re-assembled value.
- See Also:
MutabilityPlan.disassemble(T)
-
-