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 11 – Annotated-Method Programming Style 233<br />

GenTableInterfaceTest.jet<br />

z/OS, IDS, Oracle<br />

DB2 LUW, DB2 for<br />

z/OS, IDS, Oracle<br />

testing the implementation of the<br />

corresponding interface.<br />

Generates a test class for testing<br />

the implementation of the<br />

corresponding interface.<br />

Table 11.2 - JET templates used for code generation from a database Table or View<br />

Once you have created your EMFT JET Transformation project and created a template to<br />

override one of the default templates, go to the <strong>pureQuery</strong> Transforms preference page<br />

and specify which transformation the workbench should use. An example is illustrated in<br />

Figure 11.7:<br />

Figure 11.7 - Overriding the default JET templates to generate your own customized<br />

code<br />

11.8 Using static SQL with annotated-method style applications<br />

One of the benefits of the annotated method style is that you can use it to execute SQL<br />

statements statically. Refer to Appendix C for a brief overview of static SQL.

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

Saved successfully!

Ooh no, something went wrong!