com.bea.ld.dsmediator.update
Class DataServiceMediatorContext

java.lang.Object
  extended bycom.bea.ld.dsmediator.update.DataServiceMediatorContext

public class DataServiceMediatorContext
extends java.lang.Object


Constructor Summary
DataServiceMediatorContext()
           
 
Method Summary
static DataServiceMediatorContext currentContext()
          DataServiceMediatorContext for current user submit session
 void executeUpdatePlan(UpdatePlan updatePlan)
          iterate through individual datagraph to trigger submit
 java.lang.String getApplicationProperty(java.lang.String propertyName, java.lang.String defaultValue)
          access the application properties defined in MBean console
 com.bea.ld.dsmediator.update.DecompositionMapDocument.DecompositionMap getCurrentDecompositionMap()
           
 UpdatePlan getCurrentUpdatePlan(commonj.sdo.DataGraph sdo)
          For a given view SDO object, decompose it and return a update plan Update plan is a sequence of nodes decomposed from original View SDO object.
 UpdatePlan getCurrentUpdatePlan(commonj.sdo.DataGraph sdo, boolean checkLineage)
          For a given view SDO object, decompose it and return a update plan Update plan is a sequence of nodes decomposed from original View SDO object.
 void pushReturnKey(java.util.Properties returnKey)
          Use inside updateoverride to indicate the return key values to the caller of submit method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataServiceMediatorContext

public DataServiceMediatorContext()
Method Detail

getCurrentDecompositionMap

public com.bea.ld.dsmediator.update.DecompositionMapDocument.DecompositionMap getCurrentDecompositionMap()
Returns:
Decomposition Map for current dataServiceMetaData object being procesed in XMLBean form

pushReturnKey

public void pushReturnKey(java.util.Properties returnKey)
Use inside updateoverride to indicate the return key values to the caller of submit method

Parameters:
returnKey -

getCurrentUpdatePlan

public UpdatePlan getCurrentUpdatePlan(commonj.sdo.DataGraph sdo)
For a given view SDO object, decompose it and return a update plan Update plan is a sequence of nodes decomposed from original View SDO object. Each node in sequence can either be a SDO instance only or a SDO with a sub-update plan, which is another sequence of nodes. in View SDO, if a parent DataObject get updated, at least partially due to the changes on the DataObjects nested inside it, then SDO instances corresponding to those children DataObjects will be addChild into sub-update plan. Update plan contains inserted, updated, deleted and unchanged SDO instances as well. Update plan is constructed from a LinkedHashMap tree, independent SDO instances are stored in the same level and update sequence on their source dataobjects is preserved

Parameters:
sdo -

getCurrentUpdatePlan

public UpdatePlan getCurrentUpdatePlan(commonj.sdo.DataGraph sdo,
                                       boolean checkLineage)
For a given view SDO object, decompose it and return a update plan Update plan is a sequence of nodes decomposed from original View SDO object. Each node in sequence can either be a SDO instance only or a SDO with a sub-update plan, which is another sequence of nodes. in View SDO, if a parent DataObject get updated, at least partially due to the changes on the DataObjects nested inside it, then SDO instances corresponding to those children DataObjects will be addChild into sub-update plan. Update plan contains inserted, updated, deleted and unchanged SDO instances as well. Update plan is constructed from a LinkedHashMap tree, independent SDO instances are stored in the same level and update sequence on their source dataobjects is preserved

Parameters:
sdo -
checkLineage - boolean flag, default is true, when check lineage is enabled, all updated properties must have lineage, otherwise error will be thrown back to user

executeUpdatePlan

public void executeUpdatePlan(UpdatePlan updatePlan)
iterate through individual datagraph to trigger submit

Parameters:
updatePlan -

currentContext

public static DataServiceMediatorContext currentContext()
DataServiceMediatorContext for current user submit session

Returns:
DataServiceMediatorContext for current user submit session

getApplicationProperty

public java.lang.String getApplicationProperty(java.lang.String propertyName,
                                               java.lang.String defaultValue)
access the application properties defined in MBean console

Parameters:
propertyName -
defaultValue -
Returns:
property value or the default value is property is not exist


Copyright © 2006 BEA Systems Inc. All Rights Reserved.