Files, Samples and Documentation - Data Access API
The Data Access API includes the following directories and files.
Directory | Contains... | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config | Configuration files, including administrationServerCatalog.xml, which is used to configure the connection between the Data Access API and SuperSERVER/SuperADMIN. | ||||||||||||||
docs | Javadoc documentation of the available methods and interfaces. To view the documentation, open docs\index.html in a web browser. | ||||||||||||||
endorsed | Third-party open source software that is required to use the API. When you execute your application, you must use the command line option | ||||||||||||||
lib | Third-party libraries that are required to use the API. | ||||||||||||||
samples | Sample code demonstrating the use of the API. This directory contains:
|
Sample Code
The following samples are provided with the API:
Sample File | Demonstrates... | Code Summary |
---|---|---|
samples\au\com\str\samples\query\SimpleTxdQuery.java | How to submit a static query using a TXD and output the results to a Comma Separated Values (CSV) file. |
|
samples\au\com\str\samples\schema\SinglebranchNavigation.java | How to access a single branch of a hierarchy. The example code outputs the hierarchy of the Area field from the sample Retail Banking Database. This technique can also be used for a flat field branch and multiple branches. |
|
samples\au\com\str\samples\schema\SummationGroupNavigation.java | How to navigate a summation group. The example code outputs a list of the measures from a database. |
|
samples\au\com\str\samples\util\CSVWriter.java | Code for writing output to a CSV file. This code is called by SimpleTxdQuery to write the results to a CSV file. | Writes the table results to a CSV file. |