uk.ac.ed.inf.utils.database
Class TableManager

java.lang.Object
  extended by uk.ac.ed.inf.utils.database.DbManaged
      extended by uk.ac.ed.inf.utils.database.TableManager

public class TableManager
extends DbManaged

Class to create/read/write to a database table.

Version:
10 Jun 2010
Author:
Luna De Ferrari luna.deferrari-at-ed.ac.uk

Field Summary
 TableWriter m_writer
          the database recorder
 
Constructor Summary
TableManager(DbManager dbManager, java.lang.String tableName)
          Constructor to create a generic manager to read/write to a table.
TableManager(DbManager dbManager, Table table)
           
 
Method Summary
 TableCreator getTableCreator()
           
 java.lang.String getTableName()
           
 TableReader getTableReader()
           
 TableWriter getTableWriter()
           
 
Methods inherited from class uk.ac.ed.inf.utils.database.DbManaged
getDbConnection, getDbManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_writer

public TableWriter m_writer
the database recorder

Constructor Detail

TableManager

public TableManager(DbManager dbManager,
                    java.lang.String tableName)
Constructor to create a generic manager to read/write to a table.

Parameters:
dbManager -
tableName -

TableManager

public TableManager(DbManager dbManager,
                    Table table)
Method Detail

getTableCreator

public TableCreator getTableCreator()

getTableName

public java.lang.String getTableName()

getTableReader

public TableReader getTableReader()

getTableWriter

public TableWriter getTableWriter()