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 IMaxDataManager
queryMap
- - A Map of Work Queries to be used as input for this process.java.rmi.RemoteException
MXException
public Activity findById(Schedule schedule, java.lang.String id, DataSpec dataSpec) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public com.ibm.json.java.JSONArray loadDataObjects(Schedule schedule, DataSpec dataSpec, java.lang.Long offsetRecord, boolean parentOnly) throws java.rmi.RemoteException, MXException
loadDataObjects
in interface IMaxDataManager
schedule
- 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.RemoteException
MXException
public void processChanges(MboRemote projectMbo, java.util.List activityChanges) throws java.rmi.RemoteException, MXException
processChanges
in interface IMaxDataManager
schedule
- - Schedule model object.activityChanges
- - Set of changes made in the Gantt view.java.rmi.RemoteException
MXException
public void commitChanges(MboRemote projectMbo, MboSetRemote activitySet, java.lang.String selectedIDs) throws java.rmi.RemoteException, MXException
commitChanges
in interface IMaxDataManager
projectMbo
- activitySet
- selectedIDs
- java.rmi.RemoteException
MXException
public int getPageCount(Schedule schedule, DataSpec dataSpec, boolean parentOnly) throws java.rmi.RemoteException, MXException
getPageCount
in interface IMaxDataManager
java.rmi.RemoteException
MXException
public int getRowCount(Schedule schedule, DataSpec dataSpec, boolean parentOnly) throws java.rmi.RemoteException, MXException
getRowCount
in interface IMaxDataManager
schedule
- dataSpec
- MXException
java.rmi.RemoteException
public int getCompareRowCount(Schedule leftModel, long rightModelId, DataSpec dataSpec) throws java.rmi.RemoteException, MXException
schedule
- dataSpec
- MXException
java.rmi.RemoteException
public 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.RemoteException
MXException
public 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.RemoteException
MXException
public com.ibm.json.java.JSONArray bulkLoadDataObjects(Schedule schedule, DataSpec dataSpec, java.lang.Long offsetRecord) throws java.rmi.RemoteException, MXException
bulkLoadDataObjects
in interface IMaxDataManager
schedule
- project schedule (contains access to the schedule information)dataSpec
- data spec details: pageSize, fields, sorts, etcjava.rmi.RemoteException
MXException
protected 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
- MXApplicationException
protected java.lang.String getCompleteQueryWhere(MboRemote projectMbo, UserInfo userInfo, java.lang.String objectName, java.util.Map queryMap) throws MXException, java.rmi.RemoteException
objectName
- queryMap
- MXException
java.rmi.RemoteException
protected java.lang.String getDefaultRestriction(MboRemote projectMbo, java.lang.String objectName) throws SchedulerException
objectName
- SchedulerException
protected java.lang.String getDefaultStatusRestriction() throws SchedulerException
SchedulerException
protected java.lang.String getWOClassRestriction(java.lang.String objectName) throws SchedulerException
objectName
- SchedulerException
protected java.lang.String getStartEndDateRestriction(MboRemote projectMbo) throws SchedulerException
SchedulerException
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) throws MXException
MXException
public com.ibm.json.java.JSONArray loadDataObjects(Schedule schedule, DataSpec dataSpec, java.util.List activityIDs) throws java.rmi.RemoteException, MXException
loadDataObjects
in interface IMaxDataManager
schedule
- 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.RemoteException
MXException
public 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.RemoteException
MXException