EndMapper (v2) XML document interface
EndMapper (v2) is a complete re-implementation of EndMapper functionality orientated around a single XML document interface. It provides a clean, simple and extensible XML document based interface that should fully support any enterprise standard XML mapping technology. With this approach the mapper provides an XML document that lists the objects that must be persisted as well as column data that the mapper wishes to persist.
The EndMapper (v2) document offers a choice of the elements shown in the following table.
The
Element name | Description |
---|---|
txn |
Used for mapping a transmission containing a single transaction. |
chunk |
Used to map transmissions with multiple transactions. |
abort |
Used to abort the mapping due to an unrecoverable problem. |
txn
element is of type SingleTransaction the schema model for this type is shown
in Figure 1 and an example document is shown in Figure 2. SingleTransaction extends Transaction, which
itself is an extension of Object. An Object can contain column information (cols), object values (objVal),
counters and errors. The SingleTransaction type also allows the inclusion of a transmission object (pt) where
the mapper may put information to update, extend, or both, the transmission record. For performance reasons,
it is better to avoid updates of the transmission record by the mapper. If possible, these values should be
identified and set when the transmission is logged to avoid the cost of an update statement. Extending the
transmission record by adding object values, counters or errors does not carry an additional performance hit,
that is to say that if it is required, the cost cannot be avoided in the same way that a transmission record
update can.