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 3 – Code generation and customized Java Editor Integration 73<br />

Figure 3.7 - SQL content-assist inside your Java program<br />

3.3.3 Test and run SQL within your Java program<br />

Developers often spend significant time writing test applications to test a SQL statement for<br />

validity or expected results. With the <strong>pureQuery</strong> tooling, you can run SQL with or without<br />

parameters at design time. Right-click on any SQL inside your Java program and select<br />

<strong>pureQuery</strong>Run SQL, provide any parameters if needed and view the results in the SQL<br />

Results View as shown in Figure 3.8.<br />

Figure 3.8 - Run SQL inside your Java program<br />

3.4 Summary<br />

Java development with inline SQL is made simpler and more convenient with an SQL<br />

editor integrated inside the Java editor. This provides Java developers with a tremendous<br />

boost in productivity by helping them catch errors in their SQL at development time. With<br />

some easy to use wizards, you can quickly generate data access Java code from tables,<br />

views or stored procedures. To generate code, the <strong>pureQuery</strong> tooling uses EMFT JET<br />

templates and can be overridden to provide customized code generation. Data access<br />

code can be generated from tables, views and stored procedures from any IBM database<br />

as well as for Oracle databases.<br />

3.5 Review Questions<br />

1. Which of the following databases are NOT supported by the <strong>pureQuery</strong> tooling for<br />

data access code generation?

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

Saved successfully!

Ooh no, something went wrong!