java.lang.Object
com.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.)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
TableBuilder
public TableBuilder(int softwareDBVersion)
throws java.sql.SQLException
- Since:
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: