16.10.2015 Views

Getting Startedwith pureQuery

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

15<br />

Chapter 15 - <strong>pureQuery</strong> and pureXML<br />

In this chapter we will describe how to integrate data stored using DB2 pureXML into<br />

<strong>pureQuery</strong> applications.<br />

15.1 <strong>pureQuery</strong> and pureXML: The big picture<br />

Both pureXML and <strong>pureQuery</strong> are revolutionary technologies in the databases field.<br />

pureXML introduced a native way to store, manage and query XML documents into DB2,<br />

delivering a top quality hybrid database server.<br />

<strong>pureQuery</strong> is revolutionizing the data access field, by providing improved performance,<br />

optimization of existing applications, monitoring, manageability and advanced security<br />

control for Java applications that access data stored in a database.<br />

When it comes to integrate pureXML data into a <strong>pureQuery</strong> application, there are multiple<br />

plug-in points and/or schemes that can be used. In this book we will focus on the following<br />

three approaches:<br />

• Give control to the SQL layer: with this approach, you use the SQL layer to<br />

transform data between XML and relational formats, exposing the relational<br />

representation to the application and leveraging <strong>pureQuery</strong>’s relational mapping<br />

support.<br />

• Give control to the data access API: with this approach, you can use one of the<br />

multiple existing XML-Java mapping frameworks to map XML data into Java objects<br />

and vice-versa.<br />

• Give control to the application layer: with this approach, you implement your own<br />

mapping logic/framework, tightly integrated into the business logic, providing<br />

expanded versatility when data is shared by multiple applications<br />

15.2 Give control to the SQL layer<br />

In this approach, the facilities in the SQL layer are used to map the data from XML into<br />

relational format and vice-versa. In the examples we will show, SQL/XML will be used to

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!