public class WMActivityDataManager extends AbstractActivityDataManager
Constructor and Description |
---|
WMActivityDataManager(MXServer mxServer) |
Modifier and Type | Method and Description |
---|---|
int |
activityNullRecordCount(java.util.HashMap queryMap)
Get the actvity records counts for a list of queries
|
int |
activityRecordCount(java.util.HashMap queryMap)
Get the actvity records for a list of queries
|
void |
applyActivityChange(MboRemote activityMboRemote,
MXTransaction txn)
Apply activity change to the database
|
void |
applyActivityChange(MboRemote activityMboRemote,
java.lang.String ids,
MXTransaction txn)
Apply activity changes to the database
|
protected java.lang.String |
getCompleteQueryWhere(MboRemote projectMbo,
UserInfo userInfo,
java.lang.String objectName,
java.util.Map queryMap,
java.lang.Boolean forNullDates)
Get the complete where clause
|
protected java.lang.String |
getDefaultRestriction(MboRemote projectMbo,
java.lang.String objectName,
boolean forNullDates)
Get default restriction for object
|
protected java.lang.String |
getDefaultStatusRestriction()
Get the default restriction where clause
|
java.lang.String |
getPopulateDataObjectsWhere() |
protected java.lang.String |
getStartEndDateRestriction(MboRemote projectMbo)
Get the default restriction where clause
|
com.ibm.json.java.JSONArray |
loadActivities(GWASchedule schedule) |
void |
loadActivity(IMXActivity activity,
java.lang.String objectName,
IMXGanttModel model) |
void |
loadActivity(IMXActivity activity,
java.lang.String objectName,
MboRemote mboObject) |
java.lang.String |
populateDataObjectsWhere(MboRemote projectMbo,
java.util.Map queryMap)
get where using the values obtained by the execution of the Work Queries.
|
java.lang.String |
populateDataObjectsWhere(MboRemote projectMbo,
java.util.Map queryMap,
boolean forNullDates)
get where 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.
|
void |
saveActivities(IMXActivity activity) |
void |
saveActivities(IMXActivity activity,
MXTransaction txn) |
void |
setPopulateObjectsWhere(java.lang.String populateObjectsWhere) |
int |
setWOScheduleStartDateForNullDates(java.util.HashMap queryMap)
Get the actvity records for a list of queries
|
applyScenarioChange, applyScenarioChange, deleteProjectData, duplicateProjectData, getAsyncCount, getModifiedActivityChildren, initializeActivity, initializeActivity, initializeActivityChildren, linkChildDummyNode, loadActivity, loadActivity, loadAdditionalActivities, populateActivities, populateActivityPropertyDetails, saveActivities, saveActivities, sortActivityChildren
addObjectToModel, addToUnjoinedNodes, getDataManagerContext, getLogger, getObjectName, getProjectMbo, getSKDDD, getSqlLogger, getUserInfo, populateNode, populateNode, removeUnnecessaryNodes, setDataManagerContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setDataManagerContext
public WMActivityDataManager(MXServer mxServer)
public void applyActivityChange(MboRemote activityMboRemote, java.lang.String ids, MXTransaction txn) throws SchedulerException
ActivityDataManager
applyActivityChange
in interface ActivityDataManager
applyActivityChange
in class AbstractActivityDataManager
SchedulerException
public void applyActivityChange(MboRemote activityMboRemote, MXTransaction txn) throws SchedulerException
AbstractActivityDataManager
applyActivityChange
in interface ActivityDataManager
applyActivityChange
in class AbstractActivityDataManager
SchedulerException
public com.ibm.json.java.JSONArray loadActivities(GWASchedule schedule) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void loadActivity(IMXActivity activity, java.lang.String objectName, MboRemote mboObject) throws MXException
MXException
public void loadActivity(IMXActivity activity, java.lang.String objectName, IMXGanttModel model) throws MXException
MXException
public void saveActivities(IMXActivity activity) throws MXException
MXException
public void saveActivities(IMXActivity activity, MXTransaction txn) throws MXException
MXException
public java.lang.String getPopulateDataObjectsWhere()
public int activityRecordCount(java.util.HashMap queryMap) throws SchedulerException
activityRecordCount
in interface ActivityDataManager
activityRecordCount
in class AbstractActivityDataManager
HashMap
SchedulerException
public void setPopulateObjectsWhere(java.lang.String populateObjectsWhere)
public java.lang.String populateDataObjectsWhere(MboRemote projectMbo, java.util.Map queryMap) throws java.rmi.RemoteException, MXException
queryMap
- - A Map of Work Queries to be used as input for this process.java.rmi.RemoteException
MXException
public java.lang.String populateDataObjectsWhere(MboRemote projectMbo, java.util.Map queryMap, boolean forNullDates) throws java.rmi.RemoteException, MXException
queryMap
- - A Map of Work Queries to be used as input for this process.java.rmi.RemoteException
MXException
protected java.lang.String getCompleteQueryWhere(MboRemote projectMbo, UserInfo userInfo, java.lang.String objectName, java.util.Map queryMap, java.lang.Boolean forNullDates) throws MXException, java.rmi.RemoteException
objectName
- queryMap
- MXException
java.rmi.RemoteException
protected java.lang.String getDefaultRestriction(MboRemote projectMbo, java.lang.String objectName, boolean forNullDates) throws SchedulerException
objectName
- SchedulerException
protected java.lang.String getDefaultStatusRestriction() throws SchedulerException
SchedulerException
protected java.lang.String getStartEndDateRestriction(MboRemote projectMbo) throws SchedulerException
SchedulerException
public void processChanges(MboRemote projectMbo, java.util.List activityChanges) throws java.rmi.RemoteException, MXException
schedule
- - Schedule model object.activityChanges
- - Set of changes made in the Gantt view.java.rmi.RemoteException
MXException
public int activityNullRecordCount(java.util.HashMap queryMap) throws SchedulerException
HashMap
SchedulerException
public int setWOScheduleStartDateForNullDates(java.util.HashMap queryMap) throws SchedulerException
HashMap
SchedulerException