public class ActivityMaxDataManager extends java.lang.Object implements IMaxDataManager
| Modifier and Type | Field and Description |
|---|---|
static java.util.HashMap |
woClassMap |
| Constructor and Description |
|---|
ActivityMaxDataManager(MXServer mxServer) |
| Modifier and Type | Method and Description |
|---|---|
com.ibm.json.java.JSONArray |
bulkLoadDataObjects(Schedule schedule,
DataSpec dataSpec,
java.lang.Long offsetRecord)
Loads a list of activity records according to the parameters used as input.
|
void |
commitChanges(MboRemote projectMbo,
MboSetRemote activitySet,
java.lang.String selectedIDs)
Commits any changes that have been saved for the activities of a given Project (Schedule).
|
protected void |
executeCommitQuery(java.lang.String projectId,
UserInfo userInfo,
java.lang.StringBuilder objectIDs,
java.sql.Connection connection,
int dbType,
MXLogger sqlLogger)
Commits a batch of changes
|
com.ibm.json.java.JSONArray |
fetchChildren(Schedule schedule,
DataSpec dataSpec,
java.lang.String workOrderNumber,
java.lang.Long offsetRecord,
java.lang.Integer level) |
Activity |
findById(Schedule schedule,
java.lang.String id,
DataSpec dataSpec) |
int |
getCompareRowCount(Schedule leftModel,
long rightModelId,
DataSpec dataSpec) |
protected java.lang.String |
getCompleteQueryWhere(MboRemote projectMbo,
UserInfo userInfo,
java.lang.String objectName,
java.util.Map queryMap)
Get the complete where clause
|
protected java.lang.String |
getDefaultRestriction(MboRemote projectMbo,
java.lang.String objectName)
Get default restriction for object
|
protected java.lang.String |
getDefaultStatusRestriction()
Get the default restriction where clause
|
int |
getPageCount(Schedule schedule,
DataSpec dataSpec,
boolean parentOnly) |
int |
getRowCount(Schedule schedule,
DataSpec dataSpec,
boolean parentOnly) |
protected java.lang.String |
getStartEndDateRestriction(MboRemote projectMbo)
Get the default restriction where clause
|
protected java.lang.String |
getWOClassRestriction(java.lang.String objectName)
Get the workorder class restriction for object
|
com.ibm.json.java.JSONArray |
loadDataObjects(Schedule schedule,
DataSpec dataSpec,
java.util.List activityIDs)
Loads a list of activity records according to the parameters used as input.
|
com.ibm.json.java.JSONArray |
loadDataObjects(Schedule schedule,
DataSpec dataSpec,
java.lang.Long offsetRecord,
boolean parentOnly)
Loads a list of activity records according to the parameters used as input.
|
com.ibm.json.java.JSONArray |
loadDiffDataObjects(Schedule leftSchedule,
long otherProjectID,
DataSpec dataSpec,
java.lang.Long offsetRecord)
Loads a list of activity records according to the parameters used as input.
|
com.ibm.json.java.JSONArray |
loadMissingDataObjects(Schedule leftSchedule,
long otherProjectID,
DataSpec dataSpec)
Loads a list of activity records according to the parameters used as input.
|
void |
populateDataObjects(MboRemote projectMbo,
java.util.Map queryMap)
Populates the SKDACTIVITY table using the values obtained by the execution of the Work Queries.
|
void |
processChanges(MboRemote projectMbo,
java.util.List activityChanges)
Processes a set of changes for the activities associated with the selected Schedule.
|
protected void |
updateChildrenActivities(java.lang.String projectId,
java.lang.String workOrderNumbers,
java.lang.Integer timeDiff,
int dbType,
java.sql.Connection connection,
MXLogger sqlLogger,
UserInfo userInfo) |
public ActivityMaxDataManager(MXServer mxServer)
public void populateDataObjects(MboRemote projectMbo, java.util.Map queryMap) throws java.rmi.RemoteException, MXException
populateDataObjects in interface IMaxDataManagerqueryMap - - A Map of Work Queries to be used as input for this process.java.rmi.RemoteExceptionMXExceptionpublic Activity findById(Schedule schedule, java.lang.String id, DataSpec dataSpec) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic com.ibm.json.java.JSONArray loadDataObjects(Schedule schedule, DataSpec dataSpec, java.lang.Long offsetRecord, boolean parentOnly) throws java.rmi.RemoteException, MXException
loadDataObjects in interface IMaxDataManagerschedule - project schedule (contains access to the schedule information)dataSpec - data spec details: pageSize, fields, sorts, etcoffsetRecord - - The ID of the last object previously retrieved.java.rmi.RemoteExceptionMXExceptionpublic void processChanges(MboRemote projectMbo, java.util.List activityChanges) throws java.rmi.RemoteException, MXException
processChanges in interface IMaxDataManagerschedule - - Schedule model object.activityChanges - - Set of changes made in the Gantt view.java.rmi.RemoteExceptionMXExceptionpublic void commitChanges(MboRemote projectMbo, MboSetRemote activitySet, java.lang.String selectedIDs) throws java.rmi.RemoteException, MXException
commitChanges in interface IMaxDataManagerprojectMbo - activitySet - selectedIDs - java.rmi.RemoteExceptionMXExceptionpublic int getPageCount(Schedule schedule, DataSpec dataSpec, boolean parentOnly) throws java.rmi.RemoteException, MXException
getPageCount in interface IMaxDataManagerjava.rmi.RemoteExceptionMXExceptionpublic int getRowCount(Schedule schedule, DataSpec dataSpec, boolean parentOnly) throws java.rmi.RemoteException, MXException
getRowCount in interface IMaxDataManagerschedule - dataSpec - MXExceptionjava.rmi.RemoteExceptionpublic int getCompareRowCount(Schedule leftModel, long rightModelId, DataSpec dataSpec) throws java.rmi.RemoteException, MXException
schedule - dataSpec - MXExceptionjava.rmi.RemoteExceptionpublic com.ibm.json.java.JSONArray fetchChildren(Schedule schedule, DataSpec dataSpec, java.lang.String workOrderNumber, java.lang.Long offsetRecord, java.lang.Integer level) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic com.ibm.json.java.JSONArray loadDiffDataObjects(Schedule leftSchedule, long otherProjectID, DataSpec dataSpec, java.lang.Long offsetRecord) throws java.rmi.RemoteException, MXException
schedule - project schedule (contains access to the schedule information)dataSpec - data spec details: pageSize, fields, sorts, etcjava.rmi.RemoteExceptionMXExceptionpublic com.ibm.json.java.JSONArray bulkLoadDataObjects(Schedule schedule, DataSpec dataSpec, java.lang.Long offsetRecord) throws java.rmi.RemoteException, MXException
bulkLoadDataObjects in interface IMaxDataManagerschedule - project schedule (contains access to the schedule information)dataSpec - data spec details: pageSize, fields, sorts, etcjava.rmi.RemoteExceptionMXExceptionprotected void executeCommitQuery(java.lang.String projectId,
UserInfo userInfo,
java.lang.StringBuilder objectIDs,
java.sql.Connection connection,
int dbType,
MXLogger sqlLogger)
throws MXApplicationException
projectId - userInfo - objectIDs - connection - dbType - sqlLogger - MXApplicationExceptionprotected java.lang.String getCompleteQueryWhere(MboRemote projectMbo, UserInfo userInfo, java.lang.String objectName, java.util.Map queryMap) throws MXException, java.rmi.RemoteException
objectName - queryMap - MXExceptionjava.rmi.RemoteExceptionprotected java.lang.String getDefaultRestriction(MboRemote projectMbo, java.lang.String objectName) throws SchedulerException
objectName - SchedulerExceptionprotected java.lang.String getDefaultStatusRestriction()
throws SchedulerException
SchedulerExceptionprotected java.lang.String getWOClassRestriction(java.lang.String objectName)
throws SchedulerException
objectName - SchedulerExceptionprotected java.lang.String getStartEndDateRestriction(MboRemote projectMbo) throws SchedulerException
SchedulerExceptionprotected void updateChildrenActivities(java.lang.String projectId,
java.lang.String workOrderNumbers,
java.lang.Integer timeDiff,
int dbType,
java.sql.Connection connection,
MXLogger sqlLogger,
UserInfo userInfo)
throws MXException
MXExceptionpublic com.ibm.json.java.JSONArray loadDataObjects(Schedule schedule, DataSpec dataSpec, java.util.List activityIDs) throws java.rmi.RemoteException, MXException
loadDataObjects in interface IMaxDataManagerschedule - project schedule (contains access to the schedule information)dataSpec - data spec details: pageSize, fields, sorts, etcoffsetRecord - - The ID of the last object previously retrieved.java.rmi.RemoteExceptionMXExceptionpublic com.ibm.json.java.JSONArray loadMissingDataObjects(Schedule leftSchedule, long otherProjectID, DataSpec dataSpec) throws java.rmi.RemoteException, MXException
schedule - project schedule (contains access to the schedule information)dataSpec - data spec details: pageSize, fields, sorts, etcjava.rmi.RemoteExceptionMXException