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.

118<br />

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

Figure 6.9 - The options file Default.genProps in a <strong>pureQuery</strong>-enabled project<br />

When you save changes to Default.genProps, A dialogue like the one in Figure 6.10<br />

might pop up with a warning message that indicates that the options you are specifying for<br />

interfaces might have changed, and that you might need to rebuild your project for its<br />

implementation classes to reflect your changes. The dialogue will ask if you want to rebuild<br />

the project for the changes to take affect. This occurs because Default.genProps files<br />

also specify options for generating implementation classes of interfaces in the <strong>pureQuery</strong><br />

annotated method style (Section 6.3). When you do not make changes to any of the<br />

options that affect interfaces, you can select No on the dialogue.<br />

Figure 6.10 - When you save changes to Default.bindProps, a dialogue asks if<br />

you want to rebuild your project to reflect any changes.<br />

6.6.2 Statement sets in <strong>pureQuery</strong>Xml files<br />

The Configure utility groups the SQL statements into statement sets. In a <strong>pureQuery</strong>Xml<br />

file, statementSet elements represent the statement sets. When the StaticBinder utility<br />

binds a <strong>pureQuery</strong>Xml file against IBM DB2 databases, packages in the database<br />

correspond to statement sets in the <strong>pureQuery</strong>Xml file. Because packages must have<br />

unique names in the database, the Configure utility requires that you specify a root<br />

package name that it will use to create the names of the packages. You specify the root<br />

package name to the utility by using the option -rootPkgName.

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

Saved successfully!

Ooh no, something went wrong!