planetj.dataengine.application
Class ApplicationManager

java.lang.Object
  |
  +--planetj.dataengine.AbstractTableManager
        |
        +--planetj.dataengine.application.ApplicationManager

public class ApplicationManager
extends AbstractTableManager

Manages instances of Applications. Provides data access methods and data generation methods. Creation date: (3/26/2002 10:56:45 AM)


Field Summary
static String DEFAULT_APPLICATION_TABLE_NAME
           
 
Method Summary
 Application createApplication(String pMetaDataAlias, Map pValues)
          Creates an Application using the given values.
 Application getApplication(String pMetaDataAlias, int pId, List pColumnNames, IUser pUser)
          Gets an application by ID Creation date: (3/25/2002 1:48:24 PM)
 RowCollection getApplications(String pSystemAlias, List pColumnNames, IUser pUser)
          Returns A RowCollection of all Application objects
 RowCollection getApplications(String pSystemAlias, List pColumnNames, IUser pUser, List orderByColumns)
          Returns A RowCollection of all Application objects
 String getDefaultTableName()
          Gets the name of the table containing application information (the default name is APPLICATION).
 Application getNonCachedApplication(String pMetaDataAlias, int pId, List pColumnNames, IUser pUser)
          Deprecated. - Now that the cache is wiped out on update we don't need this method any more - use the normal getApplication() method
 String getTableSQLString(String libraryName, String tableName)
          Get an SQL String that can be used to create the table.
static void setSingleton(ApplicationManager newSingleton)
          Allows a subclass of the ApplicationManager to be set as the singleton instance.
static ApplicationManager singleton()
          Gets the singleton instance of the ApplicationManager
 
Methods inherited from class planetj.dataengine.AbstractTableManager
appendFromClause, appendSelectClause, createTable, getLibraryName, getTable, getTableName, setTableName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_APPLICATION_TABLE_NAME

public static final String DEFAULT_APPLICATION_TABLE_NAME
See Also:
Constant Field Values
Method Detail

createApplication

public Application createApplication(String pMetaDataAlias,
                                     Map pValues)
                              throws CMException
Creates an Application using the given values. Note: This does not save a ListView to the database.

Parameters:
pValues - Map of values for the newly created Application
Returns:
Application
CMException

getApplication

public Application getApplication(String pMetaDataAlias,
                                  int pId,
                                  List pColumnNames,
                                  IUser pUser)
                           throws CMException
Gets an application by ID Creation date: (3/25/2002 1:48:24 PM)

Parameters:
pId - The id of the application to retrieve
pColumnNames - The names of the columns to retrieve. If this is null, all columns will be retrieved
pUser - IUser object holding info about the user
CMException

getApplications

public RowCollection getApplications(String pSystemAlias,
                                     List pColumnNames,
                                     IUser pUser)
                              throws CMException
Returns A RowCollection of all Application objects

Parameters:
pSystemAlias - The alias of the system containing the table of applications
pColumnNames - The names of the columns to retrieve. (If this is null all columns will be retrieved.)
pUser - IUser object holding info about the user
CMException

getApplications

public RowCollection getApplications(String pSystemAlias,
                                     List pColumnNames,
                                     IUser pUser,
                                     List orderByColumns)
                              throws CMException
Returns A RowCollection of all Application objects

Parameters:
pSystemAlias - The alias of the system containing the table of applications
pColumnNames - The names of the columns to retrieve. (If this is null all columns will be retrieved.)
pUser - IUser object holding info about the user
orderByColumns - The names of the columns to order the results by.
CMException

getDefaultTableName

public String getDefaultTableName()
Gets the name of the table containing application information (the default name is APPLICATION).

Specified by:
getDefaultTableName in class AbstractTableManager

getNonCachedApplication

public Application getNonCachedApplication(String pMetaDataAlias,
                                           int pId,
                                           List pColumnNames,
                                           IUser pUser)
                                    throws CMException
Deprecated. - Now that the cache is wiped out on update we don't need this method any more - use the normal getApplication() method

Gets an application by ID out of the DB (the cache is not checked) Creation date: (3/25/2002 1:48:24 PM)

Parameters:
pId - The id of the application to retrieve
pColumnNames - The names of the columns to retrieve. If this is null, all columns will be retrieved
pUser - IUser object holding info about the user
CMException

getTableSQLString

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

Specified by:
getTableSQLString in class AbstractTableManager

setSingleton

public static void setSingleton(ApplicationManager newSingleton)
Allows a subclass of the ApplicationManager to be set as the singleton instance. The singleton instance isn't synchronized, so this method must be invoked before the singleton is accessed.


singleton

public static ApplicationManager singleton()
Gets the singleton instance of the ApplicationManager