planetj.dataengine
Class AbstractTableManager

java.lang.Object
  |
  +--planetj.dataengine.AbstractTableManager
Direct Known Subclasses:
ApplicationManager, OperationManager

public abstract class AbstractTableManager
extends Object


Constructor Summary
AbstractTableManager()
          AbstractTableManager constructor comment.
 
Method Summary
static StringBuffer appendFromClause(StringBuffer pSQL, String pLibrary, String pTable)
          Appends a FROM clause to the StringBuffer
static StringBuffer appendSelectClause(StringBuffer pSQL, List pColumnNames)
          Appends a SELECT clause to the StringBuffer
 void createTable(String metaDataAlias)
          Creates a table.
abstract  String getDefaultTableName()
          Gets the default table name.
 String getLibraryName()
          Gets the name of the library containing this table.
 Table getTable(String metaDataAlias)
          Gets the Table object this manager manages.
 String getTableName()
          Gets the name of the table in which information is stored.
abstract  String getTableSQLString(String libraryName, String tableName)
          Get an SQL String that can be used to create the table.
 void setTableName(String tableName)
          Sets the name of the table in which information is stored.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTableManager

public AbstractTableManager()
AbstractTableManager constructor comment.

Method Detail

appendFromClause

public static StringBuffer appendFromClause(StringBuffer pSQL,
                                            String pLibrary,
                                            String pTable)
Appends a FROM clause to the StringBuffer


appendSelectClause

public static StringBuffer appendSelectClause(StringBuffer pSQL,
                                              List pColumnNames)
Appends a SELECT clause to the StringBuffer


createTable

public void createTable(String metaDataAlias)
                 throws CMException
Creates a table.

Parameters:
metaDataAlias - The alias of the system to create a table for.
CMException

getDefaultTableName

public abstract String getDefaultTableName()
Gets the default table name.


getLibraryName

public String getLibraryName()
Gets the name of the library containing this table. If no library name is set, the default is used.


getTable

public Table getTable(String metaDataAlias)
Gets the Table object this manager manages.


getTableName

public String getTableName()
Gets the name of the table in which information is stored. If no table name specified, the default is set.


getTableSQLString

public abstract String getTableSQLString(String libraryName,
                                         String tableName)
Get an SQL String that can be used to create the table.


setTableName

public void setTableName(String tableName)
Sets the name of the table in which information is stored. This method should only be invoked during intialization.