All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JBMSTours.CreateToursDB

java.lang.Object
   |
   +----JBMSTours.CreateToursDB

public class CreateToursDB
extends Object
Look at the source.

Main database creation program. Also populates several tables. To use, type

java JBMSTours.CreateToursDB.

Use the parameter "syncsource" if you want to create a synchronization source database. Another legal parameter is extra. Use of this parameter is for building the pre-built version of the database included with the installation. It puts extra data into some tables, preloads the JDBC metadata stored prepared statements and the SysVisual stored prepared statements, and automatically runs JBMSTours.BuildATour four times. To use this parameter, you must have tools.jar in your class path in addition to cloudscape.jar. Most users will not use this parameter. Use one or the other (extra or syncsource), not both.

java JBMSTours.CreateToursDB syncsource

java JBMSTours.CreateToursDB extra

By default, this application runs in the embedded mode. To run it as a client application accessing a running Cloudconnect, give the hostname and the port number of the Cloudconnector you want to connect to. For example:

java JBMSTours.CreateToursDB jeeves 7001

To combine those arguments with other parameters, put them last.

java JBMSTours.CreateToursDB syncsource jeeves 7001
java JBMSTours.CreateToursDB extra jeeves 7001

To run it as a client application accessing RmiJdbc Server, add the single character 'r' after hostname and port number. For example:

java JBMSTours.CreateToursDB localhost 1099 r

java JBMSTours.CreateToursDB syncsource localhost 1099 r

What this application does:

Run this program first. Then run BuildATour (constructs tour objects and populates other tables). Optional programs: GenerateReport (uses aggregates to report about data), ArchiveData (uses database-side JDBC methods, connecting to two different databases) RunTime (illustrates use of runtime statistics to analyze query performance), and AdminHelper.

See Also:
CreateSchema, InsertCities, InsertCountries, InsertHotels, InsertFlights, InsertAvailability, InsertMaps, InsertJars, BuildATour

Constructor Index

 o CreateToursDB()

Method Index

 o main(String[])

Constructors

 o CreateToursDB
 public CreateToursDB()

Methods

 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index