All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----org.xmlmiddleware.xmldbms.TransferInfo
A TransferInfo object encapsulates the mapping metadata and DataHandler objects needed to transfer data between an XML document and the database(s) according to a particular map. It contains a single XMLDBMSMap object and one DataHandler object per database and is roughly equivalent to a XMLDBMSMap object in XML-DBMS version 1.0. Applications that use more than one map -- that is, that transfer data to/from more than one class of XML documents -- should use one TransferInfo object per map.
TransferInfo objects are reusable. In fact, reusing them on multiple calls to DOMToDBMS.processDocument, DBMSDelete.delete, and DBMSToDOM.retrieveDocument will be more efficient than recreating them. This is because they contain XMLDBMSMap objects (which don't need to be recompiled), as well as pooled connections and statements (which don't need to be reprepared).
It is possible that TransferInfo objects are thread-safe, but I'll have to think about this a bit...
public TransferInfo(XMLDBMSMap map)
public TransferInfo(XMLDBMSMap map,
String dbName,
DataHandler dataHandler)
This is a convenience constructor for applications that use a single database.
public final XMLDBMSMap getMap()
public void addDataHandler(String dbName,
DataHandler dataHandler)
public final DataHandler getDataHandler(String dbName)
public final Enumeration getDataHandlers()
All Packages Class Hierarchy This Package Previous Next Index