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.

Appendix A – Solutions to the review questions 307<br />

5. D.<br />

6. You can use the filter in the SQL Outline to show only the SQL statements that<br />

contain a column with privacy information by selecting to see only SQL containing<br />

columns marked as private.<br />

7. In order to view all SQL statements issued by your application to the database and<br />

not only the Java expressions, you will have to run your application using the Client<br />

Optimizer feature from the <strong>pureQuery</strong> runtime.<br />

8. You must Enable SQL capturing and binding for JDBC applications when either<br />

adding <strong>pureQuery</strong> support to your project or from the project’s properties page.<br />

When enabling this feature, a pdq.properties file will be added to your project<br />

where, through a set of properties, you can enable/disable the capturing of<br />

statements being executed by your application.<br />

Chapter 5<br />

1. D.<br />

2. D.<br />

3. B.<br />

Chapter 6<br />

1. Client Optimizer<br />

2. Capture<br />

3. B<br />

4. You must always specify the option -rootPkgName. The utility uses the value of<br />

this option to determine the base package name of the statement sets in the<br />

<strong>pureQuery</strong>Xml file. <strong>pureQuery</strong> uses the base package name to determine the<br />

names of the packages in the database when binding and when executing<br />

statically.<br />

5. C<br />

6. C<br />

7. A<br />

8. True<br />

9. A, B and C.<br />

Chapter 7<br />

1. B and D.<br />

2. A and B.

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

Saved successfully!

Ooh no, something went wrong!