public class AbstractActivityDataManager extends AbstractDataManager implements ActivityDataManager
Constructor and Description |
---|
AbstractActivityDataManager() |
Modifier and Type | Method and Description |
---|---|
int |
activityRecordCount(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> 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
|
void |
applyScenarioChange(MboRemote activityMboRemote,
MboRemote ParentActMboRemote,
MXTransaction txn)
Apply scenario change to the database
|
void |
applyScenarioChange(MboRemote activityMboRemote,
MboRemote ParentActMboRemote,
java.lang.String ids,
MXTransaction txn)
Apply scenario change to the database
|
void |
deleteProjectData()
Delete project activity data
|
void |
duplicateProjectData(java.lang.String originalProjectId)
Duplicate project activity data
|
int |
getAsyncCount()
Get the count for async process in commit.
|
java.util.List<ilog.views.gantt.IlvActivity> |
getModifiedActivityChildren(MXActivity activity,
java.lang.String objectName,
MboRemote mboObject,
MXGanttModel model)
Get modified children activities
|
void |
initializeActivity(MXActivity activity,
java.lang.String objectName,
MboRemote mboObject)
Initialize activity after it is populated
|
void |
initializeActivity(MXActivity activity,
java.lang.String objectName,
MboRemote mboObject,
MXGanttModel model)
Initialize activity after it is populated
|
void |
initializeActivityChildren(MXActivity activity,
java.lang.String objectName,
MboRemote mboObject,
MXGanttModel model)
Initialize activity after it is populated
|
java.util.List<ilog.views.gantt.IlvActivity> |
linkChildDummyNode(MXActivity activity,
MXGanttModel mxganttmodel,
SKDAppService.ActivityData activityData)
Add dummy child node for an activity node.
|
void |
loadActivity(MXActivity activity,
java.lang.String objectName,
MboRemote mboObject)
Load activities from database
initialize the activity during the time when the model is loaded for display
by the gantt viewer.
|
void |
loadActivity(MXActivity activity,
java.lang.String objectName,
MXGanttModel model)
Load activities from database
|
void |
loadAdditionalActivities(MXGanttModel model,
SKDAppService.ActivityData activityData)
Load additional activities
|
void |
populateActivities(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> queriesMap)
Populate activity records in skdactivity table
|
void |
populateActivityPropertyDetails()
Populate activity with activity property details.
|
void |
saveActivities(ilog.views.gantt.model.general.IlvGeneralActivity activity)
Save activities to the database
|
void |
saveActivities(ilog.views.gantt.model.general.IlvGeneralActivity activity,
MXTransaction txn)
Save activities to the database
|
java.util.List<ilog.views.gantt.IlvActivity> |
sortActivityChildren(ilog.views.gantt.IlvActivity activity,
java.lang.String objectName,
MXGanttModel model)
Sort activities and return a list.
|
getDataManagerContext, getLogger, getObjectName, getProjectMbo, getSqlLogger, getUserInfo, setDataManagerContext
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setDataManagerContext
public void applyActivityChange(MboRemote activityMboRemote, MXTransaction txn) throws SchedulerException
applyActivityChange
in interface ActivityDataManager
activity
- mbotransaction
- SchedulerException
public void applyActivityChange(MboRemote activityMboRemote, java.lang.String ids, MXTransaction txn) throws SchedulerException
ActivityDataManager
applyActivityChange
in interface ActivityDataManager
SchedulerException
public void applyScenarioChange(MboRemote activityMboRemote, MboRemote ParentActMboRemote, MXTransaction txn) throws SchedulerException
applyScenarioChange
in interface ActivityDataManager
activity
- mbotransaction
- SchedulerException
public void applyScenarioChange(MboRemote activityMboRemote, MboRemote ParentActMboRemote, java.lang.String ids, MXTransaction txn) throws SchedulerException
applyScenarioChange
in interface ActivityDataManager
activity
- mbotransaction
- SchedulerException
public void initializeActivity(MXActivity activity, java.lang.String objectName, MboRemote mboObject, MXGanttModel model) throws SchedulerException
initializeActivity
in interface ActivityDataManager
activity
- object
- namembo
- objectSchedulerException
public void initializeActivityChildren(MXActivity activity, java.lang.String objectName, MboRemote mboObject, MXGanttModel model) throws SchedulerException
initializeActivityChildren
in interface ActivityDataManager
activity
- object
- namembo
- objectSchedulerException
public void initializeActivity(MXActivity activity, java.lang.String objectName, MboRemote mboObject) throws SchedulerException
initializeActivity
in interface ActivityDataManager
activity
- object
- namembo
- objectSchedulerException
public void loadActivity(MXActivity activity, java.lang.String objectName, MboRemote mboObject) throws SchedulerException
loadActivity
in interface ActivityDataManager
activity
- object
- namembo
- objectSchedulerException
public void loadActivity(MXActivity activity, java.lang.String objectName, MXGanttModel model) throws SchedulerException
loadActivity
in interface ActivityDataManager
activity
- object
- namemodel
- SchedulerException
public void populateActivities(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> queriesMap) throws SchedulerException
populateActivities
in interface ActivityDataManager
HashMap
SchedulerException
public void populateActivityPropertyDetails() throws SchedulerException
populateActivityPropertyDetails
in interface ActivityDataManager
SchedulerException
public java.util.List<ilog.views.gantt.IlvActivity> sortActivityChildren(ilog.views.gantt.IlvActivity activity, java.lang.String objectName, MXGanttModel model) throws SchedulerException
sortActivityChildren
in interface ActivityDataManager
activity
- - ActivityobjectName
- - object namemodel
- SchedulerException
public int activityRecordCount(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> queryMap) throws SchedulerException
activityRecordCount
in interface ActivityDataManager
HashMap
SchedulerException
public void saveActivities(ilog.views.gantt.model.general.IlvGeneralActivity activity) throws SchedulerException
saveActivities
in interface ActivityDataManager
activity
- SchedulerException
public void saveActivities(ilog.views.gantt.model.general.IlvGeneralActivity activity, MXTransaction txn) throws SchedulerException
saveActivities
in interface ActivityDataManager
activity
- transaction
- SchedulerException
public void duplicateProjectData(java.lang.String originalProjectId) throws SchedulerException
duplicateProjectData
in interface ActivityDataManager
original
- project unique idSchedulerException
public void deleteProjectData() throws SchedulerException
deleteProjectData
in interface ActivityDataManager
SchedulerException
public int getAsyncCount() throws SchedulerException
getAsyncCount
in interface ActivityDataManager
projectMbo
- activitySet
- SchedulerException
public void loadAdditionalActivities(MXGanttModel model, SKDAppService.ActivityData activityData) throws SchedulerException
loadAdditionalActivities
in interface ActivityDataManager
mxganttmodel
- activitydata
- SchedulerException
public java.util.List<ilog.views.gantt.IlvActivity> linkChildDummyNode(MXActivity activity, MXGanttModel mxganttmodel, SKDAppService.ActivityData activityData) throws SchedulerException
linkChildDummyNode
in interface ActivityDataManager
activity
- mxganttmodel
- activityData
- SchedulerException
public java.util.List<ilog.views.gantt.IlvActivity> getModifiedActivityChildren(MXActivity activity, java.lang.String objectName, MboRemote mboObject, MXGanttModel model) throws SchedulerException
getModifiedActivityChildren
in interface ActivityDataManager
activity
- object
- Namembo
- Model
- SchedulerException