de.kosi.db
Class Database

java.lang.Object
  |
  +--de.kosi.db.Database

public class Database
extends java.lang.Object

Database is the interface to the xl2 database.

ChangeLog:

 $Log: Database.java,v $
 Revision 1.6  2001/07/16 12:47:08  jiriki
 Better fix fort 440966.

 Revision 1.5  2001/07/16 12:27:42  jiriki
 Fixed Bug 440966.

 Revision 1.4  2001/06/14 14:41:01  jiriki
 Code maintanance
 (Updated docs, removed unused code, improved code style)

 Revision 1.3  2001/06/12 17:14:33  jiriki
 - Reimplemented DistributedList to make filters working
 - Made ServertestCase working.

 Revision 1.2  2001/06/04 14:21:10  jiriki
 Made source more comliant to coding guidelines.

 Revision 1.1.1.1  2001/04/29 18:05:16  jiriki
 Imported sources from zola.

 Revision 1.7  2001/04/09 17:55:27  wombat
 Mail Interface Konfiguration eingefügt.

 Revision 1.6  2001/03/18 17:32:03  wombat
 Changed database concept

 Revision 1.5  2001/03/13 11:06:41  wombat
 Buildfile modified to include client

 Revision 1.4  2001/03/09 11:15:03  wombat
 Updated documentation.

 

Version:
$Revision: 1.6 $ ($Date: 2001/07/16 12:47:08 $)
Author:
Jan-Ole Janssen, Niklas Mehner, Time Sticher

Method Summary
 xl2.transaction.Transaction beginTransaction()
          Creates (and begins) a new Transaction.
static void close()
          Closes the database.
static Database getDatabase()
          Returns the singleton instance of the database.
 Server getServer()
          Returns the server.
static void init()
          Initialize the singleton instance of the database.
static void initTest()
          Initializes the database with a new Server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static void init()
                 throws java.rmi.RemoteException
Initialize the singleton instance of the database.

initTest

public static void initTest()
                     throws java.rmi.RemoteException
Initializes the database with a new Server. This method is needed to set up a new test-database.

beginTransaction

public xl2.transaction.Transaction beginTransaction()
Creates (and begins) a new Transaction. A new Transaction has to be started before working with persistant kosi objects. After the work is done, the transaction has to be committed, or aborted, if it fails.
Returns:
A new Transaction.

close

public static void close()
Closes the database. This has to be called when working with jdk 1.2.

getDatabase

public static Database getDatabase()
Returns the singleton instance of the database.
Returns:
The database.

getServer

public Server getServer()
Returns the server.
Returns:
the server.