All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----JBMSTours.ArchiveData
This class archives data out of the HotelBookings table and deletes old data from the FlightAvailability table. It is an example of executing database-side JDBC methods. (It would be more logical to run them directly from the application, but we're demonstrating how they could be run directly within a query as well.)
One of these database-side JDBC methods gets a new connection, and so operate within different transactions from the calling statements.
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 ArchiveData()
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index