planetj.dataengine
Class AbstractTableManager

java.lang.Object
  extended byplanetj.dataengine.AbstractTableManager
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ApplicationManager, OperationManager

public abstract class AbstractTableManager
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

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

Constructor Detail

AbstractTableManager

public AbstractTableManager()
AbstractTableManager constructor comment.

Method Detail

appendFromClause

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


appendSelectClause

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


createTable

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

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

createTable

protected void createTable(java.lang.String metaDataAlias,
                           java.lang.String libraryName,
                           java.lang.String tableName)
                    throws CMException
Creates a Operation table in the given database.

Parameters:
libraryName - The name of the library containing the table of Operations
tableName - The name of the table containing the Operation information
Throws:
CMException

getDefaultTableName

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


getLibraryName

public java.lang.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(java.lang.String metaDataAlias)
Gets the Table object this manager manages.


getTableName

public java.lang.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 java.lang.String getTableSQLString(java.lang.String libraryName,
                                                   java.lang.String tableName)
Get an SQL String that can be used to create the table.


setTableName

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