net.sf.imageCave.database
Class Database

java.lang.Object
  |
  +--net.sf.imageCave.database.Database

public class Database
extends java.lang.Object

Creates a Database to hold tables. This class utilizes the Singleton Creational pattern, so that only one database is instansiated.

Since:
16 March, 2004
Version:
%I%, %G%
Author:
Stuart T. Tett, disc0stu@sf.net

Method Summary
 boolean addTable(DataTable dt)
          Creates a new DataTable in this Database
 DataTable getTable(java.lang.String tableName)
           
static Database Instance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addTable

public boolean addTable(DataTable dt)
Creates a new DataTable in this Database

Returns:
true if this table was successfully created, false otherwise

getTable

public DataTable getTable(java.lang.String tableName)

Instance

public static Database Instance()


Copyright 2004 Brian Lund, Justin Rasmussen, & Stuart Tett. All Rights Reserved.