Purpose:The XMLAnyAttributeMapping is used to map to an attribute in an object to any xml attributes contained on a specific element in the XML Document. The attribute in the object will contain a map of attribute values keyed on QName. In the case that one or more of the attributes found on the specified element is already mapped to another attribute in the object, that attribute will be ignored during the unmarshal operation.
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 Attribute Mappings the XPath
is optional. Not setting the xpath, will cause the mapping to look for any attribute children directly owned by the
current Element.
| Modifier and Type | Field and Description |
|---|---|
| private MappedKeyMapContainerPolicy | |
| private XMLField | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private AbstractNullPolicy |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | buildBackupClone(Object
TODO clone, Object TODO backup, UnitOfWorkImpl TODO unitOfWork)Implements abstract org. |
| public void | buildClone(Object
TODO original, CacheKey TODO cacheKey, Object TODO clone, Integer TODO refreshCascade, AbstractSession TODO cloningSession)Implements abstract org. |
| public void | buildCloneFromRow(AbstractRecord
TODO Record, JoinedAttributeManager TODO joinManager, Object TODO clone, CacheKey TODO sharedCacheKey, ObjectBuildingQuery TODO sourceQuery, UnitOfWorkImpl TODO unitOfWork, AbstractSession TODO executionSession)Implements abstract org. |
| protected AbstractRecord | |
| private Object | buildObjectValuesFromDOMRecord(DOMRecord record, AbstractSession session, ObjectBuildingQuery query)
|
| public void | cascadePerformRemoveIfRequired(Object
TODO object, UnitOfWorkImpl TODO uow, Map<K, V> TODO visitedObjects)Implements abstract org. |
| public void | cascadeRegisterNewIfRequired(Object
TODO object, UnitOfWorkImpl TODO uow, Map<K, V> TODO visitedObjects)Implements abstract org. |
| public Object | |
| public ChangeRecord | Returns: prototype.changeset.ChangeRecordTODO clone, Object TODO backup, ObjectChangeSet TODO owner, AbstractSession TODO session)Implements abstract org. |
| public boolean | compareObjects(Object
TODO firstObject, Object TODO secondObject, AbstractSession TODO session)Implements abstract org. |
| 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. |
| public ContainerPolicy | getContainerPolicy()
Overrides org. Implements org. |
| protected XMLDescriptor | |
| public DatabaseField | getField()
Overrides org. Implements org. |
| public Vector | getFields()
Overrides org. |
| public boolean | getReuseContainer()
Implements org. |
| public AbstractNullPolicy | getWrapperNullPolicy()
Implements org. |
| public void | initialize(AbstractSession session)
Overrides org. |
| public boolean | isDefaultEmptyContainer()
Implements org. |
| public boolean | |
| public boolean | |
| public boolean | isWriteOnly()
Overrides org. Implements org. |
| public boolean | isXMLMapping()
Overrides org. |
| public void | iterate(DescriptorIterator iterator)
Implements abstract org. |
| public void | mergeChangesIntoObject(Object target, ChangeRecord changeRecord, Object source, MergeManager mergeManager, AbstractSession targetSession)
Implements abstract org. |
| public void | mergeIntoObject(Object target, boolean isTargetUninitialized, Object source, MergeManager mergeManager, AbstractSession targetSession)
Implements abstract org. |
| public void | preInitialize(AbstractSession session)
Overrides org. |
| public void | setAttributeValueInObject(Object
TODO object, Object TODO value)Overrides org. Implements org. |
| public void | |
| public void | setDefaultEmptyContainer(boolean defaultEmptyContainer)
Implements org. |
| public void | |
| public void | |
| public void | setNamespaceDeclarationIncluded(boolean isNamespaceDeclarationIncluded)
Implements org. |
| public void | setReuseContainer(boolean reuseContainer)
Implements org. |
| public void | setSchemaInstanceIncluded(boolean isSchemaInstanceIncluded)
Implements org. |
| public void | setWrapperNullPolicy(AbstractNullPolicy policy)
Implements org. |
| public void | |
| public void | |
| public void | useMapClassName(String concreteMapClassName)
Implements org. |
| public Object | valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
Overrides org. |
| public void | writeFromObjectIntoRow(Object object, AbstractRecord row, AbstractSession session, DatabaseMapping.
Overrides org. |
| public void | writeSingleValue(Object
- The value to be marshalled attributeValue, Object parent, XMLRecord - The Record the value is being marshalled too. row, AbstractSession session)Implements org. |