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> 41<br />

Because coding in JDBC is so tedious, it only makes sense that Java developers would<br />

turn to frameworks such as Spring, iBatis (now called myBatis), and JPA to help with their<br />

object-relational mapping, among other things. <strong>pureQuery</strong> does provide productivity boosts<br />

that many are looking for in a Java framework, but it does not provide the full persistence<br />

or container management associated with Hibernate or JPA. As a framework alternative,<br />

<strong>pureQuery</strong> attempts to provide a balance point between enhanced productivity and full<br />

SQL control.<br />

However, <strong>pureQuery</strong> is different from other frameworks in that it can complement any<br />

existing framework. Developers can continue to use their framework of choice and add<br />

<strong>pureQuery</strong> to get the added benefits of performance enhancement, improved security, and<br />

improved manageability. Integrations with other frameworks are described in Part V.<br />

Of course, if you are writing new applications and don’t require full container management,<br />

then <strong>pureQuery</strong> is an excellent choice in terms of performance and productivity when your<br />

data is stored in DB2, Informix Dynamic Server, or Oracle databases.<br />

As shown in the figure above, <strong>pureQuery</strong> attempts to provide the best of both worlds:<br />

• It gives the developer the ability to fully control the SQL where needed<br />

• It helps the developer create good SQL without having to learn a new query<br />

language<br />

• It offers a very simple API<br />

• It provides basic object-relational mapping at development time, with no need to<br />

map complex relationships between entities and objects<br />

• It can provide performance, security, and manageability benefits to those who<br />

continue to use full persistence frameworks, using client optimization.<br />

As mentioned earlier, <strong>pureQuery</strong> can use client optimization to take any existing Java<br />

application, even if coded in a framework, and “uplift” it so that those applications can<br />

obtain many of the same benefits they would get when coding to the <strong>pureQuery</strong> APIs,<br />

notably static SQL and enhanced visualization for improved problem determination. The<br />

client optimization technology can help regardless of whether your application is a<br />

complicated Hibernate application or an out-of-the-box Java/JDBC program for which you<br />

may not even have the source code.

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

Saved successfully!

Ooh no, something went wrong!