|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.persistence.mappings.converters.SerializedObjectConverter
public class SerializedObjectConverter
Purpose: The serialized object converter can be used to store an arbitrary object or set of objects into a database blob field. It uses the Java serializer so the target must be serializable.
| Constructor Summary | |
|---|---|
SerializedObjectConverter()
PUBLIC: Default constructor. |
|
SerializedObjectConverter(DatabaseMapping mapping)
PUBLIC: Default constructor. |
|
| Method Summary | |
|---|---|
Object |
convertDataValueToObjectValue(Object fieldValue,
Session session)
INTERNAL: The fieldValue will be a byte array. |
Object |
convertObjectValueToDataValue(Object attributeValue,
Session session)
INTERNAL: Convert the object to a byte array through serialize. |
void |
initialize(DatabaseMapping mapping,
Session session)
INTERNAL: Set the mapping. |
boolean |
isMutable()
INTERNAL: If the converter converts the value to a non-atomic value, i.e. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SerializedObjectConverter()
public SerializedObjectConverter(DatabaseMapping mapping)
| Method Detail |
|---|
public Object convertDataValueToObjectValue(Object fieldValue,
Session session)
throws DescriptorException
convertDataValueToObjectValue in interface ConverterDescriptorException
public Object convertObjectValueToDataValue(Object attributeValue,
Session session)
convertObjectValueToDataValue in interface Converter
public void initialize(DatabaseMapping mapping,
Session session)
initialize in interface Converterpublic boolean isMutable()
isMutable in interface Converter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||