All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----JBMSTours.BuildATour
Run this program after creating the database with CreateToursDB. (It outputs messages as it runs. It takes a few minutes.)
This program queries the core tables and builds one customized tour object, storing booking information in the database (FlightBookings, FlightAvailability, HotelBookings, and HotelAvailability), and storing the tour objects in the table CustomizedTours. It also uses the table FlightObjects as a temporary repository for Flight objects.
This is a simple program that doesn't have a user interface. (Instead of getting data from user input, it gets it from a hash table). It does present a really simple scenario of how to use the classes and the database. It also provides an example of how to set a property within an application.
This class has a main() method and can be run from the command-line. For complete instructions on how to run it, see the example instructions.
public ApplicationMode mymode
public BuildATour(ApplicationMode am)
public static void main(String args[])
public void getPeopleAndGroupData(Connection conn) throws SQLException, Throwable
public void buildOneTour(Connection conn, boolean prebuild) throws SQLException, CityChoiceException, BudgetException, AvailabilityException, Throwable
All Packages Class Hierarchy This Package Previous Next Index