|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.
Field Summary | |
---|---|
protected DatabaseMapping |
mapping
|
Constructor Summary | |
---|---|
SerializedObjectConverter()
PUBLIC: Default constructor. |
|
SerializedObjectConverter(DatabaseMapping mapping)
PUBLIC: Default constructor. |
Method Summary | |
---|---|
java.lang.Object |
convertDataValueToObjectValue(java.lang.Object fieldValue,
Session session)
INTERNAL: The fieldValue will be a byte array. |
java.lang.Object |
convertObjectValueToDataValue(java.lang.Object attributeValue,
Session session)
INTERNAL: Convert the object to a byte array through serialize. |
protected DatabaseMapping |
getMapping()
INTERNAL: Return the mapping. |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DatabaseMapping mapping
Constructor Detail |
---|
public SerializedObjectConverter()
public SerializedObjectConverter(DatabaseMapping mapping)
Method Detail |
---|
public java.lang.Object convertDataValueToObjectValue(java.lang.Object fieldValue, Session session) throws DescriptorException
convertDataValueToObjectValue
in interface Converter
DescriptorException
public java.lang.Object convertObjectValueToDataValue(java.lang.Object attributeValue, Session session)
convertObjectValueToDataValue
in interface Converter
public void initialize(DatabaseMapping mapping, Session session)
initialize
in interface Converter
protected DatabaseMapping getMapping()
public boolean isMutable()
isMutable
in interface Converter
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |