Class XMLCompositeObjectMapping
- All Implemented Interfaces:
Serializable,Cloneable,CompositeObjectMapping<AbstractSession,,AttributeAccessor, ContainerPolicy, Converter, ClassDescriptor, DatabaseField, XMLMarshaller, Session, UnmarshalKeepAsElementPolicy, XMLUnmarshaller, XMLRecord> Mapping<AbstractSession,,AttributeAccessor, ContainerPolicy, ClassDescriptor, DatabaseField, XMLRecord> XMLConverterMapping<XMLMarshaller,,Session, XMLUnmarshaller> XMLMapping,XMLNillableMapping
- Direct Known Subclasses:
XMLVariableXPathObjectMapping
Composite object XML mappings represent a relationship between two classes. In XML, the "owned" class may be nested with the element tag representing the "owning" class. This mapping is, by definition, privately owned.
Composite object XML mappings can be used in the following scenarios:
- Mapping into the Parent Record
- Mapping to an Element
- Mapping to Different Elements by Element Name
- Mapping to Different Elements by Element Position
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 path and positional information; the last node in the XPath forms the local
root node for the composite object. The XPath is specified on the mapping using the setXPath
method.
The following XPath statements may be used to specify the location of XML data relating to an object's name attribute:
| XPath | Description |
|---|---|
| . | Indicates "self". |
| phone-number | The phone-number information is stored in the phone-number element. |
| contact-info/phone-number | The XPath statement may be used to specify any valid path. |
| phone-number[2] | The XPath statement may contain positional information. In this case the phone-number information is stored in the second occurrence of the phone-number element. |
Mapping into the Parent Record: The composite object may be mapped into the parent record in a corresponding XML document.
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="first-name" type="xsd:string"/>
<xsd:element name="last-name" type="xsd:string"/>
<xsd:element name="street" type="xsd:string"/>
<xsd:element name="city" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
Code Sample
XMLCompositeObjectMapping addressMapping = new XMLCompositeObjectMapping();
addressMapping.setAttributeName("address");
addressMapping.setXPath(".");
addressMapping.setReferenceClass(Address.class);
Mapping to an Element: The composite object may be mapped to an element in a corresponding XML document.
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="first-name" type="xsd:string"/>
<xsd:element name="last-name" type="xsd:string"/>
<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:sequence>
</xsd:complexType>
</xsd:schema>
Code Sample
XMLCompositeObjectMapping addressMapping = new XMLCompositeObjectMapping();
addressMapping.setAttributeName("address");
addressMapping.setXPath("address");
addressMapping.setReferenceClass(Address.class);
More Information: For more information about using the XML Composite Object Mapping, see the "Understanding XML Mappings" chapter of the Oracle TopLink Developer's Guide.
- Since:
- Oracle TopLink 10g Release 2 (10.1.3)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.persistence.mappings.DatabaseMapping
DatabaseMapping.WriteType -
Field Summary
Fields inherited from class org.eclipse.persistence.mappings.foundation.AbstractCompositeObjectMapping
converter, fieldFields inherited from class org.eclipse.persistence.mappings.AggregateMapping
hasNestedIdentityReference, referenceClass, referenceClassName, referenceDescriptorFields inherited from class org.eclipse.persistence.mappings.DatabaseMapping
attributeAccessor, attributeName, derivedIdMapping, derivesId, descriptor, fields, isCacheable, isInSopObject, isJPAId, isLazy, isMapKeyMapping, isOptional, isPrimaryKeyMapping, isReadOnly, isRemotelyInitialized, mapsIdValue, NO_FIELDS, NO_WEIGHT, properties, unconvertedProperties, weight, WEIGHT_AGGREGATE, WEIGHT_DIRECT, WEIGHT_TO_ONE, WEIGHT_TRANSFORM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectbuildCompositeObject(ObjectBuilder objectBuilder, AbstractRecord nestedRow, ObjectBuildingQuery query, CacheKey parentCacheKey, JoinedAttributeManager joinManager, AbstractSession targetSession) protected ObjectbuildCompositeRow(Object attributeValue, AbstractSession session, AbstractRecord databaseRow, DatabaseMapping.WriteType writeType) protected AbstractRecordbuildCompositeRowForDescriptor(ClassDescriptor classDesc, Object attributeValue, AbstractSession session, XMLRecord parentRow, DatabaseMapping.WriteType writeType) voidconfigureNestedRow(AbstractRecord parent, AbstractRecord child) voidconvertClassNamesToClasses(ClassLoader classLoader) INTERNAL: Convert all the class-name-based settings in this mapping to actual class-based settings.convertDataValueToObjectValue(Object fieldValue, Session session, XMLUnmarshaller unmarshaller) INTERNALconvertObjectValueToDataValue(Object value, Session session, XMLMarshaller marshaller) INTERNALDeprecated.Replaced by getInverseReferenceMapping().getAttributeAccessor()Deprecated.Replaced by getInverseReferenceMapping().getAttributeName()Deprecated.Replaced by getInverseReferenceMapping().getGetMethodName()Deprecated.Replaced by getInverseReferenceMapping().getSetMethodName()protected XMLDescriptorgetDescriptor(XMLRecord xmlRecord, AbstractSession session, QName rootQName) INTERNAL: Get the AbstractNullPolicy from the Mapping.
The default policy is NullPolicy.protected ClassDescriptorgetReferenceDescriptor(Class<?> theClass, AbstractSession session) INTERNAL: For inheritance purposes.getReferenceDescriptor(DOMRecord xmlRecord) getXPath()Get the XPath Stringvoidinitialize(AbstractSession session) INTERNAL: The mapping is initialized with the given session.protected voidbooleanINTERNAL: Some mappings support no attribute (transformation and multitenant primary key).booleanINTERNAL:voidpreInitialize(AbstractSession session) INTERNAL: Allow for initialization of properties and validation.readFromRowIntoObject(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object targetObject, CacheKey parentCacheKey, ObjectBuildingQuery sourceQuery, AbstractSession executionSession, boolean isTargetProtected) INTERNAL: Extract value from the row and set the attribute to this value in the object.voidsetAttributeValueInObject(Object object, Object value) INTERNAL: Set the value of the attribute mapped by this mapping.voidsetContainerAccessor(AttributeAccessor anAttributeAccessor) Deprecated.Replaced by getInverseReferenceMapping().setAttributeAccessor()voidsetContainerAttributeName(String attributeName) Deprecated.Replaced by getInverseReferenceMapping().setAttributeName()voidsetContainerGetMethodName(String methodName) Deprecated.Replaced by getInverseReferenceMapping().setGetMethodName()voidsetContainerSetMethodName(String methodName) Deprecated.Replaced by getInverseReferenceMapping().setSetMethodName()voidsetIsWriteOnly(boolean b) voidsetKeepAsElementPolicy(UnmarshalKeepAsElementPolicy keepAsElementPolicy) voidsetNullPolicy(AbstractNullPolicy aNullPolicy) Set the AbstractNullPolicy on the mapping
The default policy is NullPolicy.voidSet the Mapping field name attribute to the given XPath StringvalueFromRow(Object fieldValue, XMLRecord nestedRow, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, AbstractSession executionSession, boolean isTargetProtected) valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) INTERNAL: Extract and return the aggregate object from the specified row.voidwriteFromObjectIntoRow(Object object, AbstractRecord databaseRow, AbstractSession session, DatabaseMapping.WriteType writeType) INTERNAL:voidwriteSingleValue(Object value, Object parent, XMLRecord record, AbstractSession session) INTERNAL: A method that marshals a single value to the provided Record based on this mapping's XPath.Methods inherited from class org.eclipse.persistence.mappings.foundation.AbstractCompositeObjectMapping
buildExpression, buildShallowOriginalFromRow, cascadeDiscoverAndPersistUnregisteredNewObjects, cascadePerformRemoveIfRequired, cascadeRegisterNewIfRequired, collectFields, getConverter, getField, hasConverter, isAbstractCompositeObjectMapping, setConverter, setField, valueFromObject, writeFromObjectIntoRowForUpdate, writeFromObjectIntoRowWithChangeRecord, writeInsertFieldsIntoRowMethods inherited from class org.eclipse.persistence.mappings.AggregateMapping
buildAggregateDeleteQuery, buildAggregateModifyQuery, buildAggregateWriteQuery, buildBackupClone, buildBackupClonePart, buildClone, buildCloneFromRow, buildClonePart, buildClonePart, buildCopy, buildCopyOfAttributeValue, buildNewMergeInstanceOf, compareAttributeValues, compareForChange, compareObjects, executeEvent, fixAttributeValue, fixObjectReferences, getAttributeValueFromBackupClone, getObjectBuilder, getObjectBuilderForClass, getQueryManager, getReferenceClass, getReferenceClassName, getReferenceDescriptor, getReferenceDescriptor, hasNestedIdentityReference, isAggregateMapping, iterate, iterateOnAttributeValue, load, loadAll, mergeAttributeValue, mergeChangesIntoObject, mergeIntoObject, postDelete, postDeleteAttributeValue, postInsert, postInsertAttributeValue, postUpdate, postUpdateAttributeValue, preDelete, preDeleteAttributeValue, preInsert, preInsertAttributeValue, preUpdate, preUpdateAttributeValue, remoteInitialization, setReferenceClass, setReferenceClassName, setReferenceDescriptor, updateChangeRecord, verifyDelete, verifyDeleteOfAttributeValueMethods inherited from class org.eclipse.persistence.mappings.DatabaseMapping
addUnconvertedProperty, buildBackupCloneForPartObject, buildChangeRecord, buildCloneForPartObject, buildContainerClone, buildObjectJoinExpression, buildObjectJoinExpression, calculateDeferredChanges, cascadePerformRemovePrivateOwnedObjectFromChangeSetIfRequired, clone, cloneFields, collectQueryParameters, convertConverterClassNamesToClasses, createCloneValueHolder, derivesId, earlyPreDelete, extractNestedExpressions, extractNestedNonAggregateExpressions, fixRealObjectReferences, getAttributeAccessor, getAttributeClassification, getAttributeName, getAttributeValueFromObject, getContainerPolicy, getDerivedIdMapping, getDescriptor, getFieldClassification, getFields, getGetMethodName, getMapsIdValue, getObjectCorrespondingTo, getOrderByNormalizedExpressions, getProperties, getProperty, getRealAttributeValueFromAttribute, getRealAttributeValueFromObject, getRealCollectionAttributeValueFromObject, getRelationshipPartner, getSelectFields, getSelectTables, getSetMethodName, getUnconvertedProperties, getValueFromRemoteValueHolder, getWeight, hasConstraintDependency, hasDependency, hasInverseConstraintDependency, hasMapsIdValue, hasRootExpressionThatShouldUseOuterJoin, hasUnconvertedProperties, instantiateAttribute, isAbstractColumnMapping, isAbstractCompositeCollectionMapping, isAbstractCompositeDirectCollectionMapping, isAbstractDirectMapping, isAggregateCollectionMapping, isAggregateObjectMapping, isAttributeValueFromObjectInstantiated, isCacheable, isCandidateForPrivateOwnedRemoval, isCascadedLockingSupported, isChangeTrackingSupported, isCloningRequired, isCollectionMapping, isDatabaseMapping, isDirectCollectionMapping, isDirectMapMapping, isDirectToFieldMapping, isDirectToXMLTypeMapping, isEISMapping, isElementCollectionMapping, isForeignReferenceMapping, isInAndOutSopObject, isInOnlySopObject, isInSopObject, isJoiningSupported, isJPAId, isLazy, isLockableMapping, isManyToManyMapping, isManyToOneMapping, isMapKeyMapping, isMultitenantPrimaryKeyMapping, isNestedTableMapping, isObjectReferenceMapping, isOneToManyMapping, isOneToOneMapping, isOptional, isOutOnlySopObject, isOutSopObject, isOwned, isPrimaryKeyMapping, isPrivateOwned, isReadOnly, isReferenceMapping, isRelationalMapping, isRemotelyInitialized, isStructureMapping, isTransformationMapping, isUnidirectionalOneToManyMapping, isUsingMethodAccess, isVariableOneToOneMapping, iterateOnRealAttributeValue, performDataModificationEvent, postCalculateChanges, postCalculateChangesOnDeleted, postInitialize, postInitializeSourceAndTargetExpressions, prepareCascadeLockingPolicy, readFromResultSetIntoObject, readOnly, readWrite, recordPrivateOwnedRemovals, rehashFieldDependancies, remotelyInitialized, replaceValueHoldersIn, setAttributeAccessor, setAttributeName, setChangeListener, setDerivedIdMapping, setDerivesId, setDescriptor, setFields, setGetMethodName, setIsCacheable, setIsInAndOutSopObject, setIsInSopObject, setIsJPAId, setIsLazy, setIsMapKeyMapping, setIsOptional, setIsOutSopObject, setIsPrimaryKeyMapping, setIsReadOnly, setMapsIdValue, setProperties, setProperty, setRealAttributeValueInObject, setSetMethodName, setWeight, simpleAddToCollectionChangeRecord, simpleRemoveFromCollectionChangeRecord, toString, updateCollectionChangeRecord, validateAfterInitialization, validateBeforeInitialization, valueFromResultSet, valueFromRow, writeFromAttributeIntoRow, writeFromObjectIntoRowForShallowInsert, writeFromObjectIntoRowForShallowInsertWithChangeRecord, writeFromObjectIntoRowForUpdateAfterShallowInsert, writeFromObjectIntoRowForUpdateBeforeShallowDelete, writeFromObjectIntoRowForWhereClause, writeUpdateFieldsIntoRowMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.persistence.internal.oxm.mappings.CompositeObjectMapping
getReferenceClass, getReferenceClassName, hasConverter, setConverter, setField, setReferenceClass, setReferenceClassNameMethods inherited from interface org.eclipse.persistence.internal.oxm.mappings.Mapping
getAttributeAccessor, getAttributeClassification, getAttributeName, getAttributeValueFromObject, getContainerPolicy, getDescriptor, getField, getReferenceDescriptor, isAbstractCompositeCollectionMapping, isAbstractCompositeDirectCollectionMapping, isAbstractCompositeObjectMapping, isAbstractDirectMapping, isCollectionMapping, isReadOnly, isReferenceMapping, isTransformationMapping, setAttributeAccessor, setAttributeName, setGetMethodName, setIsReadOnly, setProperties, setSetMethodName
-
Constructor Details
-
XMLCompositeObjectMapping
public XMLCompositeObjectMapping()
-
-
Method Details
-
getContainerAccessor
Deprecated.Replaced by getInverseReferenceMapping().getAttributeAccessor()Gets the AttributeAccessor that is used to get and set the value of the container on the target object. -
setContainerAccessor
Deprecated.Replaced by getInverseReferenceMapping().setAttributeAccessor()Sets the AttributeAccessor that is used to get and set the value of the container on the target object.- Parameters:
anAttributeAccessor- - the accessor to be used.
-
setContainerAttributeName
Deprecated.Replaced by getInverseReferenceMapping().setAttributeName()Sets the name of the backpointer attribute on the target object. Used to populate the backpointer. If the specified attribute doesn't exist on the reference class of this mapping, a DescriptorException will be thrown during initialize.- Parameters:
attributeName- - the name of the backpointer attribute to be populated
-
getContainerAttributeName
Deprecated.Replaced by getInverseReferenceMapping().getAttributeName()Gets the name of the backpointer attribute on the target object. Used to populate the backpointer. -
setContainerGetMethodName
Deprecated.Replaced by getInverseReferenceMapping().setGetMethodName()Sets the method name to be used when accessing the value of the back pointer on the target object of this mapping. If the specified method doesn't exist on the reference class of this mapping, a DescriptorException will be thrown during initialize.- Parameters:
methodName- - the getter method to be used.
-
setContainerSetMethodName
Deprecated.Replaced by getInverseReferenceMapping().setSetMethodName()Sets the name of the method to be used when setting the value of the back pointer on the target object of this mapping. If the specified method doesn't exist on the reference class of this mapping, a DescriptorException will be thrown during initialize.- Parameters:
methodName- - the setter method to be used.
-
getContainerGetMethodName
Deprecated.Replaced by getInverseReferenceMapping().getGetMethodName()Gets the name of the method to be used when accessing the value of the back pointer on the target object of this mapping. -
getContainerSetMethodName
Deprecated.Replaced by getInverseReferenceMapping().getSetMethodName()Gets the name of the method to be used when setting the value of the back pointer on the target object of this mapping. -
convertClassNamesToClasses
Description copied from class:AggregateMappingINTERNAL: Convert all the class-name-based settings in this mapping to actual class-based settings. This method is used when converting a project that has been built with class names to a project with classes.- Specified by:
convertClassNamesToClassesin interfaceMapping<AbstractSession,AttributeAccessor, ContainerPolicy, ClassDescriptor, DatabaseField, XMLRecord> - Specified by:
convertClassNamesToClassesin interfaceXMLMapping- Overrides:
convertClassNamesToClassesin classAggregateMapping- Parameters:
classLoader- TODO
-
initialize
INTERNAL: The mapping is initialized with the given session. This mapping is fully initialized after this.- Overrides:
initializein classAbstractCompositeObjectMapping- Throws:
DescriptorException
-
initializeReferenceDescriptorAndField
-
setNullPolicy
Set the AbstractNullPolicy on the mapping
The default policy is NullPolicy.- Specified by:
setNullPolicyin interfaceCompositeObjectMapping<AbstractSession,AttributeAccessor, ContainerPolicy, Converter, ClassDescriptor, DatabaseField, XMLMarshaller, Session, UnmarshalKeepAsElementPolicy, XMLUnmarshaller, XMLRecord> - Specified by:
setNullPolicyin interfaceXMLNillableMapping
-
getNullPolicy
INTERNAL: Get the AbstractNullPolicy from the Mapping.
The default policy is NullPolicy.- Specified by:
getNullPolicyin interfaceCompositeObjectMapping<AbstractSession,AttributeAccessor, ContainerPolicy, Converter, ClassDescriptor, DatabaseField, XMLMarshaller, Session, UnmarshalKeepAsElementPolicy, XMLUnmarshaller, XMLRecord> - Specified by:
getNullPolicyin interfaceXMLNillableMapping
-
isXMLMapping
public boolean isXMLMapping()INTERNAL:- Overrides:
isXMLMappingin classDatabaseMapping
-
getXPath
Get the XPath String- Returns:
- String the XPath String associated with this Mapping
-
setXPath
Set the Mapping field name attribute to the given XPath String- Specified by:
setXPathin interfaceCompositeObjectMapping<AbstractSession,AttributeAccessor, ContainerPolicy, Converter, ClassDescriptor, DatabaseField, XMLMarshaller, Session, UnmarshalKeepAsElementPolicy, XMLUnmarshaller, XMLRecord> - Parameters:
xpathString- String
-
buildCompositeRow
protected Object buildCompositeRow(Object attributeValue, AbstractSession session, AbstractRecord databaseRow, DatabaseMapping.WriteType writeType) - Specified by:
buildCompositeRowin classAbstractCompositeObjectMapping
-
buildCompositeRowForDescriptor
protected AbstractRecord buildCompositeRowForDescriptor(ClassDescriptor classDesc, Object attributeValue, AbstractSession session, XMLRecord parentRow, DatabaseMapping.WriteType writeType) -
buildCompositeObject
protected Object buildCompositeObject(ObjectBuilder objectBuilder, AbstractRecord nestedRow, ObjectBuildingQuery query, CacheKey parentCacheKey, JoinedAttributeManager joinManager, AbstractSession targetSession) - Specified by:
buildCompositeObjectin classAbstractCompositeObjectMapping
-
readFromRowIntoObject
public Object readFromRowIntoObject(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object targetObject, CacheKey parentCacheKey, ObjectBuildingQuery sourceQuery, AbstractSession executionSession, boolean isTargetProtected) throws DatabaseException Description copied from class:DatabaseMappingINTERNAL: Extract value from the row and set the attribute to this value in the object. return value as this value will have been converted to the appropriate type for the object.- Overrides:
readFromRowIntoObjectin classDatabaseMapping- Throws:
DatabaseException
-
valueFromRow
public Object valueFromRow(Object fieldValue, XMLRecord nestedRow, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, AbstractSession executionSession, boolean isTargetProtected) throws DatabaseException - Throws:
DatabaseException
-
valueFromRow
public Object valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) throws DatabaseException Description copied from class:AbstractCompositeObjectMappingINTERNAL: Extract and return the aggregate object from the specified row.- Overrides:
valueFromRowin classAbstractCompositeObjectMapping- Throws:
DatabaseException
-
writeFromObjectIntoRow
public void writeFromObjectIntoRow(Object object, AbstractRecord databaseRow, AbstractSession session, DatabaseMapping.WriteType writeType) throws DescriptorException INTERNAL:- Overrides:
writeFromObjectIntoRowin classAbstractCompositeObjectMapping- Throws:
DescriptorException
-
writeSingleValue
public void writeSingleValue(Object value, Object parent, XMLRecord record, AbstractSession session) Description copied from interface:XMLMappingINTERNAL: A method that marshals a single value to the provided Record based on this mapping's XPath. Used for Sequenced marshalling.- Specified by:
writeSingleValuein interfaceMapping<AbstractSession,AttributeAccessor, ContainerPolicy, ClassDescriptor, DatabaseField, XMLRecord> - Specified by:
writeSingleValuein interfaceXMLMapping- Parameters:
value- - The value to be marshalledrecord- - The Record the value is being marshalled too.
-
configureNestedRow
-
getReferenceDescriptor
-
getReferenceDescriptor
Description copied from class:AggregateMappingINTERNAL: For inheritance purposes.- Overrides:
getReferenceDescriptorin classAggregateMapping
-
getKeepAsElementPolicy
-
setKeepAsElementPolicy
-
getDescriptor
protected XMLDescriptor getDescriptor(XMLRecord xmlRecord, AbstractSession session, QName rootQName) throws XMLMarshalException - Throws:
XMLMarshalException
-
setIsWriteOnly
public void setIsWriteOnly(boolean b) - Specified by:
setIsWriteOnlyin interfaceCompositeObjectMapping<AbstractSession,AttributeAccessor, ContainerPolicy, Converter, ClassDescriptor, DatabaseField, XMLMarshaller, Session, UnmarshalKeepAsElementPolicy, XMLUnmarshaller, XMLRecord> - Specified by:
setIsWriteOnlyin interfaceXMLMapping
-
isWriteOnly
public boolean isWriteOnly()Description copied from class:DatabaseMappingINTERNAL: Some mappings support no attribute (transformation and multitenant primary key).- Specified by:
isWriteOnlyin interfaceXMLMapping- Overrides:
isWriteOnlyin classDatabaseMapping- Returns:
- TODO
-
preInitialize
Description copied from class:DatabaseMappingINTERNAL: Allow for initialization of properties and validation.- Overrides:
preInitializein classDatabaseMapping- Throws:
DescriptorException
-
setAttributeValueInObject
Description copied from class:AbstractCompositeObjectMappingINTERNAL: Set the value of the attribute mapped by this mapping.- Specified by:
setAttributeValueInObjectin interfaceMapping<AbstractSession,AttributeAccessor, ContainerPolicy, ClassDescriptor, DatabaseField, XMLRecord> - Overrides:
setAttributeValueInObjectin classAbstractCompositeObjectMapping- Parameters:
object- TODOvalue- TODO- Throws:
DescriptorException
-
getInverseReferenceMapping
-
convertObjectValueToDataValue
public Object convertObjectValueToDataValue(Object value, Session session, XMLMarshaller marshaller) INTERNAL- Specified by:
convertObjectValueToDataValuein interfaceXMLConverterMapping<XMLMarshaller,Session, XMLUnmarshaller> - Since:
- EclipseLink 2.5.0
-
convertDataValueToObjectValue
public Object convertDataValueToObjectValue(Object fieldValue, Session session, XMLUnmarshaller unmarshaller) INTERNAL- Specified by:
convertDataValueToObjectValuein interfaceXMLConverterMapping<XMLMarshaller,Session, XMLUnmarshaller> - Since:
- EclipseLink 2.5.0
-