Submit pending operations for all entities for a given MBO type or a single instance, and cancel all pending operations that have not been submitted to the server for the MBO type or a single entity.
- To submit pending operations for all pending entities for a given MBO type, invoke the MBO class' static SubmitPendingOperations method.
Note that SubmitPendingOperations APIs are
expensive. Sybase recommends using the SubmitPending API with the MBO instance whenever possible.
- To submit pending operations for a single MBO instance, invoke the MBO object's SubmitPending method.
- To cancel all pending operations that have not been submitted to the server for the MBO type, invoke the MBO class' static CancelPendingOperations method.
- To cancel all pending operations for a single MBO instance, invoke the MBO object's CancelPending method.
- For a single MBO, you must call the refresh() method of the MBO
instance before you use this instance again.
customer.Create();
customer.submitPending();
// must call Refresh() here
customer.Refresh();
customer.Update();
customer.SubmitPending();
- For related MBOs, you must call the refresh() method of the MBO
instance before you use this instance again, even if the MBO's child or parent has
called SubmitPending.