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.

Chapter 4 – <strong>pureQuery</strong> tooling views 79<br />

Figure 4.5 shows a SQL statement that was executed through a JDBC executeQuery<br />

method and captured through the Client Optimizer. Either double-clicking on the SQL<br />

statement or right-clicking and selecting Find in Source will take you to the exact line<br />

number where the statement was executed.<br />

Figure 4.5 - Correlating executed statements and their location within the source<br />

code<br />

4.2.3 Pages of the SQL Outline view<br />

The SQL Outline view contains three tabbed pages that show you the relationship between<br />

DB2 packages, Java files and SQL statements in different ways. Click the tabs at the<br />

bottom of the view to see the different pages. Each view emphasizes a different perpective<br />

of the SQL useful for troubleshooting and analysis activities.<br />

4.2.3.1 Database Page<br />

The database page of the SQL Outline groups SQL statements by schema and table of the<br />

database objects that the statements refer to. The database page is useful for analyzing<br />

the extent to which changes to a certain table or view will require changes to an<br />

application. The same statement may fall under more than one schema or table if the<br />

statement makes reference to more that one of those objects, as in case of joins for<br />

example. By expanding the nodes, you can get information such as which columns are

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

Saved successfully!

Ooh no, something went wrong!