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 E – Options files 357<br />

command line and in the options file, <strong>pureQuery</strong> will use the value that is on the command<br />

line.<br />

E.3 Specifying option files in IBM Optim Development Studio<br />

<strong>pureQuery</strong>-enabled projects in IBM Optim Development Studio contain a folder named<br />

<strong>pureQuery</strong>Folder. The folder contains two options files: one named<br />

Default.genProps, and one named Default.bindProps. Notice these files in Figure<br />

E.18.8.<br />

Figure E.18.20 - The options files Default.genProps and Default.bindProps in a<br />

<strong>pureQuery</strong>-enabled project<br />

By default, IBM Optim Development Studio runs the Generator utility to generate<br />

implementation classes when you build your application. It also runs the Configure utility<br />

automatically. By default, you must use menu options to instruct it when to run the<br />

StaticBinder utility, although you can set options to have it run that utility automatically as<br />

well. When IBM Optim Development Studio runs the Generator and Configure utilities,<br />

Default.genProps specifies the options to use. When it runs the StaticBinder utility,<br />

Default.bindProps specifies the options. If the interface or <strong>pureQuery</strong>Xml file is not in<br />

the corresponding options file, the utility just uses any options that are on the<br />

defaultOptions line.<br />

In bindProps files, you can have more than one entry for each interface or <strong>pureQuery</strong>Xml<br />

file. When you bind an interface, a <strong>pureQuery</strong>Xml file, or a single statement set from a<br />

<strong>pureQuery</strong>Xml file, the utility binds using every entry in the options file that refers to the<br />

item that you selected. If you specify a <strong>pureQuery</strong>Xml file, the utility also binds entries that<br />

represent statement sets in the <strong>pureQuery</strong>Xml file. This allows different statement sets<br />

within a single <strong>pureQuery</strong>Xml file to be bound using different options.<br />

The StaticBinder utility performs binds for entries in the order of the entries in the file.<br />

When you specify a <strong>pureQuery</strong>Xml file that is not in the bindProps file at all, or for which<br />

only certain statement sets are specified in the file, the utility first binds the file using the<br />

default options, and then it binds every entry in the options file that contains a statement<br />

set from the file. Performing a bind in IBM Optim Development Studio is equivalent to<br />

running the StaticBinder utility on the command-line while specifying an options file and<br />

interfaces or <strong>pureQuery</strong>Xml files.

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

Saved successfully!

Ooh no, something went wrong!