Top Description Fields Constructors Methods
org.eclipse.persistence.oxm.mappings

public Class XMLAnyObjectMapping

extends XMLAbstractAnyMapping
implements XMLMapping, AnyObjectMapping<AbstractSession, AttributeAccessor, ContainerPolicy, XMLConverter, ClassDescriptor, DatabaseField, XMLMarshaller, Session, UnmarshalKeepAsElementPolicy, XMLUnmarshaller, XMLRecord>
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.internal.oxm.mappings.AnyObjectMapping, org.eclipse.persistence.internal.oxm.mappings.XMLConverterMapping, org.eclipse.persistence.internal.oxm.mappings.Mapping, org.eclipse.persistence.oxm.mappings.XMLMapping
Imports
java.util.ArrayList, .Collection, .Iterator, .Map, .Vector, javax.xml.namespace.QName, org.eclipse.persistence.descriptors.ClassDescriptor, org.eclipse.persistence.exceptions.DatabaseException, .DescriptorException, .XMLMarshalException, org.eclipse.persistence.internal.descriptors.DescriptorIterator, org.eclipse.persistence.internal.helper.DatabaseField, org.eclipse.persistence.internal.identitymaps.CacheKey, org.eclipse.persistence.internal.oxm.XMLObjectBuilder, .XPathEngine, .XPathFragment, org.eclipse.persistence.internal.oxm.mappings.AnyObjectMapping, org.eclipse.persistence.internal.queries.ContainerPolicy, .JoinedAttributeManager, org.eclipse.persistence.internal.sessions.AbstractRecord, .AbstractSession, .ChangeRecord, .MergeManager, .ObjectChangeSet, .UnitOfWorkImpl, org.eclipse.persistence.internal.sessions.remote.ObjectDescriptor, org.eclipse.persistence.mappings.AttributeAccessor, .DatabaseMapping, org.eclipse.persistence.oxm.XMLConstants, .XMLContext, .XMLDescriptor, .XMLField, .XMLMarshaller, .XMLRoot, .XMLUnmarshaller, org.eclipse.persistence.oxm.mappings.converters.XMLConverter, org.eclipse.persistence.oxm.record.DOMRecord, .XMLRecord, org.eclipse.persistence.platform.xml.XMLPlatform, .XMLPlatformFactory, org.eclipse.persistence.queries.ObjectBuildingQuery, .ObjectLevelReadQuery, org.eclipse.persistence.sessions.Session, org.eclipse.persistence.sessions.remote.DistributedSession, org.w3c.dom.Element, .Node, .NodeList, .Text

Any object XML mappings map an attribute that contains a single object to an XML element. The referenced object may be of any type (including String), and does not need not be related to any other particular type through inheritance or a common interface. The corresponding object attribute value should be generic enough for all possible application values. Note that each of the referenced objects (except String) must specify a default root element on their descriptor.

Any object XML mappings are useful with the following XML schema constructs:

Setting the XPath: TopLink XML mappings make use of XPath statements to find the relevant data in an XML document. The XPath statement is relative to the context node specified in the descriptor. The XPath may contain node type, path, and positional information. The XPath is specified on the mapping using the setXPath method. Note that for XML Any Object Mappings the XPath is optional.

The following XPath statements may be used to specify the location of XML data relating to an object's name attribute:

XPath statements
XPath Description
contact-method The name information is stored in the contact-method element.
contact-method/info The XPath statement may be used to specify any valid path.
contact-method[2] The XPath statement may contain positional information. In this case the contact information is stored in the second occurrence of the contact-method element.

Mapping an element of type xs:anyType as an Any Object Mapping:

XML Schema
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:element name="customer" type="customer-type"/>
  <xsd:complexType name="customer-type">
    <xsd:sequence>
      <xsd:element name="contact-method" type="xsd:anyType"/>
    </xsd:sequence>
  </xsd:complexType>
  <xsd:element name="address">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="street" type="xsd:string"/>
        <xsd:element name="city" type="xsd:string"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
  <xsd:element name="phone-number" type="xsd:string"/>
</xsd:schema>

Code Sample
XMLAnyObjectMapping contactMethodMapping = new XMLAnyObjectMapping();
contactMethodMapping.setAttributeName("contactMethod");
contactMethodMapping.setXPath("contact-method");

More Information: For more information about using the XML Any Object Mapping, see the "Understanding XML Mappings" chapter of the Oracle TopLink Developer's Guide.

Since
Oracle TopLink 10g Release 2 (10.1.3)

Field Summary

Modifier and TypeField and Description
private boolean
private XMLConverter
private XMLField
private boolean
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
buildBackupClone(Object
TODO
clone
,
Object
TODO
backup
,
UnitOfWorkImpl
TODO
unitOfWork
)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.buildBackupClone.

INTERNAL: Clone the attribute from the clone and assign it to the backup.
public void
buildClone(Object
TODO
original
,
CacheKey
TODO
cacheKey
,
Object
TODO
clone
,
Integer
TODO
refreshCascade
,
AbstractSession
TODO
cloningSession
)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.buildClone.

INTERNAL: Clone the attribute from the original and assign it to the clone.
public void
buildCloneFromRow(AbstractRecord
TODO
databaseRow
,
JoinedAttributeManager
TODO
joinManager
,
Object
TODO
clone
,
CacheKey
TODO
sharedCacheKey
,
ObjectBuildingQuery
TODO
sourceQuery
,
UnitOfWorkImpl
TODO
unitOfWork
,
AbstractSession
TODO
executionSession
)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.buildCloneFromRow.

INTERNAL: A combination of readFromRowIntoObject and buildClone.
protected AbstractRecord
buildCompositeRow(Object attributeValue, AbstractSession session, XMLDescriptor referenceDescriptor, AbstractRecord parentRow, DatabaseField field, Object originalObject, boolean wasXMLRoot)

private Object
public void
cascadePerformRemoveIfRequired(Object
TODO
object
,
UnitOfWorkImpl
TODO
uow
,
Map<K, V>
TODO
visitedObjects
)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.cascadePerformRemoveIfRequired.

INTERNAL: Cascade perform delete through mappings that require the cascade
public void
cascadeRegisterNewIfRequired(Object
TODO
object
,
UnitOfWorkImpl
TODO
uow
,
Map<K, V>
TODO
visitedObjects
)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.cascadeRegisterNewIfRequired.

INTERNAL: Cascade registerNew for Create through mappings that require the cascade
public Object
public ChangeRecord

Returns:

prototype.changeset.ChangeRecord
compareForChange
(Object
TODO
clone
,
Object
TODO
backup
,
ObjectChangeSet
TODO
owner
,
AbstractSession
TODO
session
)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.compareForChange.

INTERNAL: This method was created in VisualAge.
public boolean
compareObjects(Object
TODO
firstObject
,
Object
TODO
secondObject
,
AbstractSession
TODO
session
)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.compareObjects.

INTERNAL: Compare the attributes belonging to this mapping for the objects.
public Object
public Object
public void
fixObjectReferences(Object
TODO
object
,
Map<Object, ObjectDescriptor>
TODO
objectDescriptors
,
Map<Object, Object>
TODO
processedObjects
,
ObjectLevelReadQuery
TODO
query
,
DistributedSession
TODO
session
)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.fixObjectReferences.

INTERNAL: An object has been serialized from the server to the client.
public XMLConverter
public DatabaseField
getField()

Overrides org.eclipse.persistence.mappings.DatabaseMapping.getField.

Implements org.eclipse.persistence.internal.oxm.mappings.Mapping.getField.

INTERNAL: Return the field associated with this mapping if there is exactly one.
public Vector<E>
getFields()

Overrides org.eclipse.persistence.mappings.DatabaseMapping.getFields.

INTERNAL: Returns a vector of all the fields this mapping represents.
private XPathFragment<XML_FIELD extends Field>
public Node
private ArrayList<E>
public void
initialize(AbstractSession session)

Overrides org.eclipse.persistence.mappings.DatabaseMapping.initialize.

INTERNAL: Allow for initialization of properties and validation.
public boolean
private boolean
public boolean
isXMLMapping()

Overrides org.eclipse.persistence.mappings.DatabaseMapping.isXMLMapping.

INTERNAL: All relational mappings should implement this method to return true.
public void
iterate(DescriptorIterator iterator)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.iterate.

INTERNAL: Iterate on the appropriate attribute value.
public void
mergeChangesIntoObject(Object target, ChangeRecord changeRecord, Object source, MergeManager mergeManager, AbstractSession targetSession)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.mergeChangesIntoObject.

INTERNAL: Merge changes from the source to the target object.
public void
mergeIntoObject(Object target, boolean isTargetUninitialized, Object source, MergeManager mergeManager, AbstractSession targetSession)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.mergeIntoObject.

INTERNAL: Merge changes from the source to the target object.
public void
public void
public void
public void
public void
public boolean
public Object
valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)

Overrides org.eclipse.persistence.mappings.DatabaseMapping.valueFromRow.

INTERNAL: A subclass should implement this method if it wants different behavior.
public void
writeFromObjectIntoRow(Object object, AbstractRecord row, AbstractSession session, DatabaseMapping.WriteType writeType)

Overrides org.eclipse.persistence.mappings.DatabaseMapping.writeFromObjectIntoRow.

INTERNAL: A subclass should implement this method if it wants different behavior.
private void
writeSimpleValue(XMLField xmlRootField, DOMRecord row, AbstractSession session, Object originalObject, Object value, Node root, Node toReplace, boolean wasXMLRoot)

public void
writeSingleValue(Object
- The value to be marshalled
value
,
Object parent, XMLRecord
- The Record the value is being marshalled too.
row
,
AbstractSession session)

Implements org.eclipse.persistence.oxm.mappings.XMLMapping.writeSingleValue, org.eclipse.persistence.internal.oxm.mappings.Mapping.writeSingleValue.

INTERNAL: A method that marshals a single value to the provided Record based on this mapping's XPath.
Inherited from org.eclipse.persistence.oxm.mappings.XMLAbstractAnyMapping:
buildObjectAndWrapInXMLRootbuildObjectForNonXMLRootbuildObjectNoReferenceDescriptorbuildXMLRootbuildXMLRootForTextgetDescriptorgetKeepAsElementPolicyisWriteOnlypreInitializesetAttributeValueInObjectsetIsWriteOnlysetKeepAsElementPolicy

Field Detail

areOtherMappingInThisContextback to summary
private boolean areOtherMappingInThisContext
converterback to summary
private XMLConverter converter
fieldback to summary
private XMLField field
isMixedContentback to summary
private boolean isMixedContent
useXMLRootback to summary
private boolean useXMLRoot

Constructor Detail

XMLAnyObjectMappingback to summary
public XMLAnyObjectMapping()

Method Detail

buildBackupCloneback to summary
public void buildBackupClone(Object clone, Object backup, UnitOfWorkImpl unitOfWork)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.buildBackupClone.

INTERNAL: Clone the attribute from the clone and assign it to the backup.

Parameters
clone:Object

Doc from org.eclipse.persistence.mappings.DatabaseMapping.buildBackupClone.

TODO

backup:Object

Doc from org.eclipse.persistence.mappings.DatabaseMapping.buildBackupClone.

TODO

unitOfWork:UnitOfWorkImpl

Doc from org.eclipse.persistence.mappings.DatabaseMapping.buildBackupClone.

TODO

Annotations
@Override
buildCloneback to summary
public void buildClone(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.buildClone.

INTERNAL: Clone the attribute from the original and assign it to the clone.

Parameters
original:Object

Doc from org.eclipse.persistence.mappings.DatabaseMapping.buildClone.

TODO

cacheKey:CacheKey

Doc from org.eclipse.persistence.mappings.DatabaseMapping.buildClone.

TODO

clone:Object

Doc from org.eclipse.persistence.mappings.DatabaseMapping.buildClone.

TODO

refreshCascade:Integer

Doc from org.eclipse.persistence.mappings.DatabaseMapping.buildClone.

TODO

cloningSession:AbstractSession

Doc from org.eclipse.persistence.mappings.DatabaseMapping.buildClone.

TODO

Annotations
@Override
buildCloneFromRowback to summary
public void buildCloneFromRow(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.buildCloneFromRow.

Doc from org.eclipse.persistence.mappings.DatabaseMapping.buildCloneFromRow.

INTERNAL: A combination of readFromRowIntoObject and buildClone.

buildClone assumes the attribute value exists on the original and can simply be copied.

readFromRowIntoObject assumes that one is building an original.

Both of the above assumptions are false in this method, and actually attempts to do both at the same time.

Extract value from the row and set the attribute to this value in the working copy clone. In order to bypass the shared cache when in transaction a UnitOfWork must be able to populate working copies directly from the row.

Parameters
databaseRow:AbstractRecord

TODO

joinManager:JoinedAttributeManager

TODO

clone:Object

TODO

sharedCacheKey:CacheKey

TODO

sourceQuery:ObjectBuildingQuery

TODO

unitOfWork:UnitOfWorkImpl

TODO

executionSession:AbstractSession

TODO

Annotations
@Override
buildCompositeRowback to summary
protected AbstractRecord buildCompositeRow(Object attributeValue, AbstractSession session, XMLDescriptor referenceDescriptor, AbstractRecord parentRow, DatabaseField field, Object originalObject, boolean wasXMLRoot)
buildObjectValuesFromDOMRecordback to summary
private Object buildObjectValuesFromDOMRecord(DOMRecord record, AbstractSession session, ObjectBuildingQuery query, JoinedAttributeManager joinManager)
cascadePerformRemoveIfRequiredback to summary
public void cascadePerformRemoveIfRequired(Object object, UnitOfWorkImpl uow, Map<K, V> visitedObjects)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.cascadePerformRemoveIfRequired.

INTERNAL: Cascade perform delete through mappings that require the cascade

Parameters
object:Object

Doc from org.eclipse.persistence.mappings.DatabaseMapping.cascadePerformRemoveIfRequired.

TODO

uow:UnitOfWorkImpl

Doc from org.eclipse.persistence.mappings.DatabaseMapping.cascadePerformRemoveIfRequired.

TODO

visitedObjects:Map<K, V>

Doc from org.eclipse.persistence.mappings.DatabaseMapping.cascadePerformRemoveIfRequired.

TODO

Annotations
@Override
cascadeRegisterNewIfRequiredback to summary
public void cascadeRegisterNewIfRequired(Object object, UnitOfWorkImpl uow, Map<K, V> visitedObjects)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.cascadeRegisterNewIfRequired.

INTERNAL: Cascade registerNew for Create through mappings that require the cascade

Parameters
object:Object

Doc from org.eclipse.persistence.mappings.DatabaseMapping.cascadeRegisterNewIfRequired.

TODO

uow:UnitOfWorkImpl

Doc from org.eclipse.persistence.mappings.DatabaseMapping.cascadeRegisterNewIfRequired.

TODO

visitedObjects:Map<K, V>

Doc from org.eclipse.persistence.mappings.DatabaseMapping.cascadeRegisterNewIfRequired.

TODO

Annotations
@Override
cloneback to summary
public Object clone()

Overrides org.eclipse.persistence.mappings.DatabaseMapping.clone.

Doc from org.eclipse.persistence.mappings.DatabaseMapping.clone.

INTERNAL: Clones itself.

Returns:Object

new instance of itself

Annotations
@Override
compareForChangeback to summary
public ChangeRecord compareForChange(Object clone, Object backup, ObjectChangeSet owner, AbstractSession session)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.compareForChange.

INTERNAL: This method was created in VisualAge.

Parameters
clone:Object

Doc from org.eclipse.persistence.mappings.DatabaseMapping.compareForChange.

TODO

backup:Object

Doc from org.eclipse.persistence.mappings.DatabaseMapping.compareForChange.

TODO

owner:ObjectChangeSet

Doc from org.eclipse.persistence.mappings.DatabaseMapping.compareForChange.

TODO

session:AbstractSession

Doc from org.eclipse.persistence.mappings.DatabaseMapping.compareForChange.

TODO

Returns:ChangeRecord

prototype.changeset.ChangeRecord

Annotations
@Override
compareObjectsback to summary
public boolean compareObjects(Object firstObject, Object secondObject, AbstractSession session)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.compareObjects.

INTERNAL: Compare the attributes belonging to this mapping for the objects.

Parameters
firstObject:Object

Doc from org.eclipse.persistence.mappings.DatabaseMapping.compareObjects.

TODO

secondObject:Object

Doc from org.eclipse.persistence.mappings.DatabaseMapping.compareObjects.

TODO

session:AbstractSession

Doc from org.eclipse.persistence.mappings.DatabaseMapping.compareObjects.

TODO

Returns:boolean

Doc from org.eclipse.persistence.mappings.DatabaseMapping.compareObjects.

TODO

Annotations
@Override
convertDataValueToObjectValueback to summary
public Object convertDataValueToObjectValue(Object fieldValue, Session session, XMLUnmarshaller unmarshaller)

Implements org.eclipse.persistence.internal.oxm.mappings.XMLConverterMapping.convertDataValueToObjectValue.

INTERNAL

Annotations
@Override
Since
EclipseLink 2.5.0
convertObjectValueToDataValueback to summary
public Object convertObjectValueToDataValue(Object value, Session session, XMLMarshaller marshaller)

Implements org.eclipse.persistence.internal.oxm.mappings.XMLConverterMapping.convertObjectValueToDataValue.

INTERNAL

Annotations
@Override
Since
EclipseLink 2.5.0
fixObjectReferencesback to summary
public void fixObjectReferences(Object object, Map<Object, ObjectDescriptor> objectDescriptors, Map<Object, Object> processedObjects, ObjectLevelReadQuery query, DistributedSession session)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.fixObjectReferences.

INTERNAL: An object has been serialized from the server to the client. Replace the transient attributes of the remote value holders with client-side objects.

Parameters
object:Object

Doc from org.eclipse.persistence.mappings.DatabaseMapping.fixObjectReferences.

TODO

objectDescriptors:Map<Object, ObjectDescriptor>

Doc from org.eclipse.persistence.mappings.DatabaseMapping.fixObjectReferences.

TODO

processedObjects:Map<Object, Object>

Doc from org.eclipse.persistence.mappings.DatabaseMapping.fixObjectReferences.

TODO

query:ObjectLevelReadQuery

Doc from org.eclipse.persistence.mappings.DatabaseMapping.fixObjectReferences.

TODO

session:DistributedSession

Doc from org.eclipse.persistence.mappings.DatabaseMapping.fixObjectReferences.

TODO

Annotations
@Override
getConverterback to summary
public XMLConverter getConverter()
getFieldback to summary
public DatabaseField getField()

Overrides org.eclipse.persistence.mappings.DatabaseMapping.getField.

Implements org.eclipse.persistence.internal.oxm.mappings.Mapping.getField.

Doc from org.eclipse.persistence.mappings.DatabaseMapping.getField.

INTERNAL: Return the field associated with this mapping if there is exactly one. This is required for object relational mapping to print them, but because they are defined in in an Enterprise context they cannot be cast to. Mappings that have a field include direct mappings and object relational mappings.

Returns:DatabaseField

TODO

Annotations
@Override
getFieldsback to summary
public Vector<E> getFields()

Overrides org.eclipse.persistence.mappings.DatabaseMapping.getFields.

Doc from org.eclipse.persistence.mappings.DatabaseMapping.getFields.

INTERNAL: Returns a vector of all the fields this mapping represents.

Returns:Vector<E>

TODO

Annotations
@Override
getFragmentToCompareback to summary
private XPathFragment<XML_FIELD extends Field> getFragmentToCompare(XMLField field, XMLField context)
getNodeToReplaceback to summary
public Node getNodeToReplace(Node parent)
getUnmappedChildNodesback to summary
private ArrayList<E> getUnmappedChildNodes(NodeList nodes)
initializeback to summary
public void initialize(AbstractSession session) throws DescriptorException

Overrides org.eclipse.persistence.mappings.DatabaseMapping.initialize.

Doc from org.eclipse.persistence.mappings.DatabaseMapping.initialize.

INTERNAL: Allow for initialization of properties and validation.

Annotations
@Override
isMixedContentback to summary
public boolean isMixedContent()

Implements org.eclipse.persistence.internal.oxm.mappings.AnyObjectMapping.isMixedContent.

Annotations
@Override
isUnmappedContentback to summary
private boolean isUnmappedContent(Node node)
isXMLMappingback to summary
public boolean isXMLMapping()

Overrides org.eclipse.persistence.mappings.DatabaseMapping.isXMLMapping.

Doc from org.eclipse.persistence.mappings.DatabaseMapping.isXMLMapping.

INTERNAL: All relational mappings should implement this method to return true.

Annotations
@Override
iterateback to summary
public void iterate(DescriptorIterator iterator)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.iterate.

INTERNAL: Iterate on the appropriate attribute value.

Annotations
@Override
mergeChangesIntoObjectback to summary
public void mergeChangesIntoObject(Object target, ChangeRecord changeRecord, Object source, MergeManager mergeManager, AbstractSession targetSession)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.mergeChangesIntoObject.

INTERNAL: Merge changes from the source to the target object.

Annotations
@Override
mergeIntoObjectback to summary
public void mergeIntoObject(Object target, boolean isTargetUninitialized, Object source, MergeManager mergeManager, AbstractSession targetSession)

Implements abstract org.eclipse.persistence.mappings.DatabaseMapping.mergeIntoObject.

INTERNAL: Merge changes from the source to the target object.

Annotations
@Override
setConverterback to summary
public void setConverter(XMLConverter converter)

Implements org.eclipse.persistence.internal.oxm.mappings.AnyObjectMapping.setConverter.

Annotations
@Override
setFieldback to summary
public void setField(DatabaseField field)

Implements org.eclipse.persistence.internal.oxm.mappings.AnyObjectMapping.setField.

Annotations
@Override
setMixedContentback to summary
public void setMixedContent(boolean mixed)

Implements org.eclipse.persistence.internal.oxm.mappings.AnyObjectMapping.setMixedContent.

Annotations
@Override
setUseXMLRootback to summary
public void setUseXMLRoot(boolean useXMLRoot)

Implements org.eclipse.persistence.internal.oxm.mappings.AnyObjectMapping.setUseXMLRoot.

Annotations
@Override
setXPathback to summary
public void setXPath(String xpath)
usesXMLRootback to summary
public boolean usesXMLRoot()

Implements org.eclipse.persistence.internal.oxm.mappings.AnyObjectMapping.usesXMLRoot.

Annotations
@Override
valueFromRowback to summary
public Object valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) throws DatabaseException

Overrides org.eclipse.persistence.mappings.DatabaseMapping.valueFromRow.

Doc from org.eclipse.persistence.mappings.DatabaseMapping.valueFromRow.

INTERNAL: A subclass should implement this method if it wants different behavior. Returns the value for the mapping from the database row. The execution session is the session the query was executed on, and its platform should be used for data conversion.

Annotations
@Override
writeFromObjectIntoRowback to summary
public void writeFromObjectIntoRow(Object object, AbstractRecord row, AbstractSession session, DatabaseMapping.WriteType writeType) throws DescriptorException

Overrides org.eclipse.persistence.mappings.DatabaseMapping.writeFromObjectIntoRow.

Doc from org.eclipse.persistence.mappings.DatabaseMapping.writeFromObjectIntoRow.

INTERNAL: A subclass should implement this method if it wants different behavior. Write the attribute value from the object to the row.

Annotations
@Override
writeSimpleValueback to summary
private void writeSimpleValue(XMLField xmlRootField, DOMRecord row, AbstractSession session, Object originalObject, Object value, Node root, Node toReplace, boolean wasXMLRoot)
writeSingleValueback to summary
public void writeSingleValue(Object value, Object parent, XMLRecord row, AbstractSession session)

Implements org.eclipse.persistence.oxm.mappings.XMLMapping.writeSingleValue, org.eclipse.persistence.internal.oxm.mappings.Mapping.writeSingleValue.

Doc from org.eclipse.persistence.oxm.mappings.XMLMapping.writeSingleValue.

INTERNAL: A method that marshals a single value to the provided Record based on this mapping's XPath. Used for Sequenced marshalling.

Parameters
value:Object

- The value to be marshalled

row:XMLRecord

- The Record the value is being marshalled too.

Annotations
@Override