Class JOP.test.JdbcTest
All Packages  Class Hierarchy  This Package  Previous  Next  Index  Home

Class JOP.test.JdbcTest

java.lang.Object
   |
   +----JOP.test.JdbcTest

public class JdbcTest
extends Object
This is the 'mainline' for the test program. The purpose of this class is to accept command line arguments, open a JdbcPersistManager and then to instantiate and invoke the chosen test class.

This class is responsible for inialising and closing the JdbcPersistManager.

The 'test_class' is responsible for starting a unit of work, saving and retrieving objects and commiting or aborting the unit of work.


Constructor Index

 o JdbcTest()

Method Index

 o main(String[])
There are two possible command line usages.

Constructors

 o JdbcTest
  public JdbcTest()

Methods

 o main
  public static void main(String args[])
There are two possible command line usages.
            java JdbcTest test_class driver url username password
        or
            java JdbcTest test_class driver url username password dbousername dbopassword
        
The first approach uses a single DB account to access objects and also create and drop tables (when necessary). If the acocunt does not have sufficient priveledge to create/drop tables then an error may occur if the PersistManager needs to create or drop tables.

The second example allows two accounts to be specified, one for normal access and the second to create/drop tables.

See Also:
JdbcPersistManager

All Packages  Class Hierarchy  This Package  Previous  Next  Index  Home