Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.lilacsoftware.orca.DBManager
Class TableBuilder  view TableBuilder download TableBuilder.java

java.lang.Object
  extended bycom.lilacsoftware.orca.DBManager.TableBuilder

public class TableBuilder
extends java.lang.Object

DB class for creating and updating and up to date Orca database. If the DB already exists, TableBuilder determines which tables need to be added or altered (or later deleted.)


Field Summary
private  java.util.ArrayList alterTableList
           
private  java.util.ArrayList createTableList
           
private  DBConnectionManager m_connMgr
           
private  int softwareDBVersion
           
private  boolean upToDate
           
 
Constructor Summary
TableBuilder(int softwareDBVersion)
           
 
Method Summary
 void createAllTables()
          Description of the Method
 boolean databaseHasTables()
          Description of the Method
 int getCurrentDBVersion()
          Gets the currentDBVersion attribute of the TableBuilder object
 boolean hasTable(java.lang.String tableName)
          Utility to check if the database contains a named table.
private  void init()
          Initializes, determining the up-to-dateness of the database.
 boolean isUpToDate()
           
 void updateDatabase()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

softwareDBVersion

private int softwareDBVersion

upToDate

private boolean upToDate

createTableList

private java.util.ArrayList createTableList

alterTableList

private java.util.ArrayList alterTableList

m_connMgr

private DBConnectionManager m_connMgr
Constructor Detail

TableBuilder

public TableBuilder(int softwareDBVersion)
             throws java.sql.SQLException
Since:
Method Detail

isUpToDate

public boolean isUpToDate()
Since:

getCurrentDBVersion

public int getCurrentDBVersion()
                        throws java.sql.SQLException
Gets the currentDBVersion attribute of the TableBuilder object

Since:

createAllTables

public void createAllTables()
Description of the Method

Since:

updateDatabase

public void updateDatabase()
Description of the Method

Since:

databaseHasTables

public boolean databaseHasTables()
                          throws java.sql.SQLException
Description of the Method

Since:

hasTable

public boolean hasTable(java.lang.String tableName)
                 throws java.sql.SQLException
Utility to check if the database contains a named table.

Since:

init

private void init()
           throws java.sql.SQLException
Initializes, determining the up-to-dateness of the database.

Since: