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.
Table 1. EndMapper elements
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.
The 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. Figure 1. EndMapper (v2) single transaction model
Figure 2. Example EndMapper (v2) document for single transaction
The chunk element supports including batch information and multiple transactions, as well
as transmission updates. The schema model for this type is shown in Figure 3 and an example XML document is shown in Figure 4. Figure 3. EndMapper (v2) chunk model
Figure 4. Example EndMapper (v2) document for chunk
The abort element supports including exception information as well as transmission
updates. The schema model for this type is shown in Figure 5 and an example XML document is shown in Figure 6. Figure 5. EndMapper (v2) abort model
Figure 6. Example EndMapper (v2) document for abort