All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JBMSTours.ArchiveData

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

public class ArchiveData
extends Object
Look at the Source.

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.


Variable Index

 o mymode

Constructor Index

 o ArchiveData()

Method Index

 o main(String[])
Entry point into archiving data.

Variables

 o mymode
 public ApplicationMode mymode

Constructors

 o ArchiveData
 public ArchiveData()

Methods

 o main
 public static void main(String args[])
Entry point into archiving data.

Parameters:
args - ignored

All Packages  Class Hierarchy  This Package  Previous  Next  Index