Skip Headers
Oracle® TopLink Developer's Guide
10g Release 3 (10.1.3.1.0)

Part Number B28218-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

36 Configuring a Relational Direct-to-XMLType Mapping

This chapter describes the various components that you must configure in order to use a relational direct-to-XMLType mapping.

For more information, see the following:

Table 36-1 lists the configurable options for a relational direct-to-XMLType mapping.

Relational Direct-to-XMLType Mapping Overview

Table 36-1 lists the configurable options for a relational direct-to-XMLType mapping.

Table 36-1 Configurable Options for Relational Direct-To-XMLType Mapping

Option Type TopLink Workbench
Java

"Configuring a Database Field"


Basic

Supported
Supported

"Configuring Method Accessing"


Advanced

Supported
Supported

"Configuring Read-Only Mappings"


Advanced

Supported
Supported

"Configuring Read Whole Document"


Advanced

Supported
Supported

"Configuring Mapping Comments"


Advanced

Supported
Supported

Configuring Read Whole Document

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.

Using TopLink Workbench

To specify that this mapping reads the whole XML document, use this procedure:

  1. Select the mapping in the Navigator. Its properties appear in the Editor.

  2. Click General. The General tab appears.

    Figure 36-1 DIrect to XML Mapping Property Sheet, Read Whole Document Option

    Description of Figure 36-1 follows
    Description of "Figure 36-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.