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 4 – <strong>pureQuery</strong> tooling views 81<br />

Figure 4.7 - Java Page<br />

4.2.3.3 Database Packages<br />

The Database Packages page groups all SQL statements by packages. If you were to bind<br />

your application, this would be the same structure of the packages that you created on your<br />

database.<br />

Note:<br />

The Database Package page may sometimes be empty while the other two pages show<br />

some content. This may be due to your database not supporting static SQL and the<br />

creation of database packages as is the case for projects associated with an IDS or Oracle<br />

database connection. Another reason may be due to not having executed your application<br />

using the Client Optimizer feature from the <strong>pureQuery</strong> runtime. After running your<br />

application using the Client Optimizer, you would have gathered all statements and<br />

configured them into packages needed to bind and for the creation of database packages<br />

for static SQL execution.<br />

Figure 4.8 shows two packages: one with one SQL statement that came from the execution<br />

of a JDBC application, and the other from an interface generated by right-clicking on the<br />

EMPLOYEE table and selecting Generate <strong>pureQuery</strong> Code… You can configure the<br />

database packages before binding through the Default.genProps file. Use the<br />

Default.bindProps file to specify options for determining how SQL statements are<br />

bound into DB2 packages. These two files are found under the <strong>pureQuery</strong>Folder, refer<br />

to the ODS build-in help for more details.

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

Saved successfully!

Ooh no, something went wrong!