Contents Index Lesson 1: Add SQL statements to your reference database Lesson 3: Write the application code pdf/preface.pdf

UltraLite User's Guide
  Tutorial: Build an Application Using Java

Lesson 2: Run the UltraLite generator


The UltraLite generator writes out two Java files. One contains the SQL statements, as an interface definition, which is here named ISampleSQL.java. You can use this interface definition in your main application code. The second file holds the code that implements the queries and the database, and is here named SampleDB.java.

To generate the UltraLite database code

  1. Open a command prompt, and go to your JavaTutorial directory.

  2. Run the UltraLite generator with the following arguments (all on one line):

    ulgen -a -t java -c "dsn=UltraLite 9.0 Sample"
    -j Product -s ISampleSQL -f SampleDB

    The arguments have the following meanings:


Contents Index Lesson 1: Add SQL statements to your reference database Lesson 3: Write the application code pdf/preface.pdf