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 8 – Extended Insight 147<br />

-url yourURL -username yourUsername -password yourPassword<br />

Listing 7.6 - An example of specifying the URL, username, and password on the<br />

command line<br />

Listing 7.7 shows an example of specifying the connection information on the<br />

defaultOptions line in an options file.<br />

defaultOptions = -url yourURL -username yourUsername -password<br />

yourPassword<br />

Listing 7.7 - An example of specifying the URL, username, and password on the<br />

defaultOptions line in an options file<br />

Listing 7.8 shows an example of specifying the connection information for a specific entry<br />

in an options file. You can provide different connection information for different entries in<br />

an options file if you want to bind the entries on different databases.<br />

C:\path\captureFile.pdqxml = -url yourURL -username yourUsername -password<br />

yourPassword<br />

Listing 7.8 - An example of specifying the URL, username, and password for an entry<br />

in an options file<br />

7.6.2 Specifying the interfaces and <strong>pureQuery</strong>Xml files<br />

You must specify <strong>pureQuery</strong>Xml files or interfaces that contain the SQL statements that<br />

<strong>pureQuery</strong> should bind. There are several ways to specify interfaces and <strong>pureQuery</strong>Xml<br />

files.<br />

7.6.2.1 Specifying interfaces or <strong>pureQuery</strong>Xml files on the command line<br />

You can specify interfaces by using the option -interface, as shown in Listing 7.9.<br />

-interface myPackage1.MyInterface1<br />

Listing 7.9 - Example of specifying an interface to the StaticBinder utility<br />

You can specify <strong>pureQuery</strong>Xml files by using the option -<strong>pureQuery</strong>Xml, followed by the<br />

paths of one or more <strong>pureQuery</strong>Xml files. Listing 7.10 shows an example of specifying a<br />

<strong>pureQuery</strong>Xml file.<br />

-<strong>pureQuery</strong>Xml "C:\path\captureFile.pdqxml"<br />

Listing 7.10 - Example of specifying a <strong>pureQuery</strong>Xml file to the StaticBinder utility<br />

If you want to bind the database packages that are associated with a single statement set<br />

in a <strong>pureQuery</strong>Xml file, use the -<strong>pureQuery</strong>Xml option to specify the file name, followed<br />

by a colon, followed by the base package name of the statement set. Listing 7.11 shows<br />

an example of how you could specify the statement set with the base package name<br />

MYPKGA.<br />

-<strong>pureQuery</strong>Xml "C:\path\captureFile.pdqxml:MYPKGA"<br />

Listing 7.11 - Example of specifying a statement set in a <strong>pureQuery</strong>Xml file to the<br />

StaticBinder utility

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

Saved successfully!

Ooh no, something went wrong!