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.

Chapter 1 – Introduction to <strong>pureQuery</strong> 31<br />

test their applications using dynamic SQL, and with no additional changes, that same<br />

application can be bound and take advantage of the performance, security, and stability of<br />

static SQL execution (described in Appendix D).<br />

Note:<br />

If you are not familiar with static SQL and the benefits of using it, see Appendix D or the<br />

article entitled No excuses database programming for Java at<br />

ibm.com/developerworks/data/library/dmmag/DBMag_2008_Issue2/NoExcusesDB/<br />

The <strong>pureQuery</strong> APIs are designed with Web 2.0 in mind -- custom result handlers map<br />

results to plain old Java objects (POJOs), XML, or JavaScript Object Notation (JSON).<br />

In addition to improved ease-of-use, performance is easier to build into the application<br />

using pureQurey. For example, it’s easy to specify retrieval of only the first row of results,<br />

to reduce network and processing time for time-critical user interfaces. Other options for<br />

reducing network cost include the use of batching updates across tables, known as<br />

heterogeneous batching, and by the ability to query and join across in memory Java<br />

collections and the database.<br />

1.3 <strong>pureQuery</strong> runtime<br />

The <strong>pureQuery</strong> runtime is the engine that provides improved performance, security, and<br />

manageability and is delivered in the product Optim <strong>pureQuery</strong> Runtime. You deploy the<br />

runtime on the application server (or wherever the application runs). The <strong>pureQuery</strong><br />

runtime provides flexible access from a wide variety of frameworks and data access<br />

mechanisms, as shown in Figure 1.2.

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

Saved successfully!

Ooh no, something went wrong!