16.10.2015 Views

Getting Startedwith pureQuery

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

328<br />

<strong>Getting</strong> Started with <strong>pureQuery</strong><br />

Figure B.156 - Select the archive file and click Finish<br />

B.3.2 Add <strong>pureQuery</strong> support to the project<br />

Add <strong>pureQuery</strong> support to the <strong>Getting</strong>StartedWithPureQuery project following the<br />

instructions in Chapter 2. When you choose the database connection for the project to<br />

use, choose a connection to the SAMPLE database. On the Add <strong>pureQuery</strong> Support pane<br />

of the Add <strong>pureQuery</strong> Support wizard, do not check the box next to Enable SQL capturing<br />

and binding for JDBC applications. This check box enables Client Optimizer functionality.<br />

It will be discussed in Chapter 6.<br />

B.3.3 Modify the javax.sql.DataSource objects to use your connection<br />

information<br />

Locate the class hrm.HRMDataSourceFactory in the <strong>Getting</strong>StartedWithPureQuery<br />

project. It is shown in Figure B.17. This class defines two DataSource objects -- one that<br />

Human Resources Manager uses, and one that the test application uses. Modify these two<br />

objects so that they contain the connection information for your SAMPLE database.

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

Saved successfully!

Ooh no, something went wrong!