UltraLite User's Guide
Developing UltraLite Applications
Generating the UltraLite data access code
The UltraLite generator is a command-line application. It takes a set of command-line options to customize the behavior for each project.
To run the UltraLite generator
Enter the following command at a command-prompt:
ulgen -c "connection-string" options
where options depend on the specifics of your project.
The UltraLite generator command-line customizes its behavior. The following command-line switches are used across development models:
-c You must supply a connection string, to connect to the reference database.
For information on Adaptive Server Anywhere connection strings, see Connection parameters.
-f Specify the output file name.
-j Specify the UltraLite project name.
For more information on UltraLite generator options, see The UltraLite generator.
If you are using embedded SQL, and if you need to run only a single source file through the SQL preprocessor, you can instruct the preprocessor to also run the UltraLite generation process as a shortcut.
For more information, see Pre-processing your embedded SQL files.
The generator relies on a current version of the UltraLite analyzer classes being installed into the reference database. If you have upgraded your UltraLite software, you must also upgrade the reference database so that it contains the new analyzer classes.
Older databases, created with previous versions of Adaptive Server Anywhere, may not contain any version of the analyzer. You can upgrade these older databases using the Upgrade utility.
For more information about upgrading an older Java-enabled database, see Preparing a reference database.