Oracle TopLink Developer's Guide 10g Release 3 (10.1.3) B13593-01 |
|
![]() Previous |
![]() Next |
When mapping an XML Type to a Document Object Model (DOM), by default TopLink uses the database representation of the DOM. This allows for lazy loading of the XML data from the database.
However, if you require the entire DOM, (or if you require the DOM to be available in a disconnected fashion from the database connection) use the Read Whole option to retrieve the entire DOM from the database.
To specify that this mapping reads the whole XML document, use this procedure:
Select the mapping in the Navigator. Its properties appear in the Editor.
Click General. The General tab appears.
Figure 39-1 DIrect to XML Mapping Property Sheet, Read Whole Document Option
Choose the Read Whole Document option to read the whole XML document. If you do not select this option, the connection must remain open for TopLink to read the database values.