| java.lang.Object org.cougaar.mlm.plugin.ldm.QueryHandler org.cougaar.mlm.plugin.ldm.SQLOplanQueryHandler org.cougaar.mlm.plugin.ldm.OrgActivityQueryHandler
OrgActivityQueryHandler | public class OrgActivityQueryHandler extends SQLOplanQueryHandler (Code) | | Reads OrgActivity for specified Oplan from a database table. Assumes it's
being invoked on behalf of SQLOplanPlugin. Updates orgactivities maintained
by SQLOplanPlugin.
|
Method Summary | |
public void | endQuery() this method is called when a query is complete,
afer the last call to processRow. | protected TimeSpanSet | getMergedOrgActivities(OrgInfo orgInfo) getMergedOrgActivities - merges the activity, location, and optempo
TimeSpanSets for the Org into a set of OrgActivities. | public String | getQuery() Construct and return an SQL query to be used by the Database engine. | protected boolean | needToUpdate(OrgInfo orgInfo) | protected void | processActivity(Object[] rowData) | protected void | processLocation(Object[] rowData) | protected void | processOpTempo(Object[] rowData) | public void | processRow(Object[] rowData) Process a single row in a result set,
doing whatever is required. | public void | startQuery() this method is called before a query is started,
before even getQuery. |
ACTIVITY_PARAMETER | final public static String ACTIVITY_PARAMETER(Code) | | |
LOCATION_PARAMETER | final public static String LOCATION_PARAMETER(Code) | | |
OPTEMPO_PARAMETER | final public static String OPTEMPO_PARAMETER(Code) | | |
endQuery | public void endQuery()(Code) | | this method is called when a query is complete,
afer the last call to processRow. Updates OrgActivities maintained by
SQLOplanPlugin
|
getMergedOrgActivities | protected TimeSpanSet getMergedOrgActivities(OrgInfo orgInfo)(Code) | | getMergedOrgActivities - merges the activity, location, and optempo
TimeSpanSets for the Org into a set of OrgActivities.
|
getQuery | public String getQuery()(Code) | | Construct and return an SQL query to be used by the Database engine.
Subclasses are required to implement this method.
|
needToUpdate | protected boolean needToUpdate(OrgInfo orgInfo)(Code) | | |
processActivity | protected void processActivity(Object[] rowData)(Code) | | |
processLocation | protected void processLocation(Object[] rowData)(Code) | | |
processOpTempo | protected void processOpTempo(Object[] rowData)(Code) | | |
processRow | public void processRow(Object[] rowData)(Code) | | Process a single row in a result set,
doing whatever is required.
|
startQuery | public void startQuery()(Code) | | this method is called before a query is started,
before even getQuery. The default method is empty
but may be overridden.
|
|
|