IObjectContext also defines the following functions:
-
SetComplete() : informs that an object finished its work successfully for the client and it can be committed by MTS and there is no need to keep the state of the object. Calling SetComplete() as often as possible allows MTS to get rid of objects that are no longer needed.
-
SetAbort(): informs the failure of the object's process and if this is done under a transaction it also informs MTS that this transaction should abort and object should be deactivated.
-
EnableCommit(): informs MTS that it is safe to commit the transaction and saving is no longer required but object did not quiet finished with its work yet.
-
DisableCommit(): informs MTS that it is not safe to commit the transaction, therefore, MTS should maintain the internal state of the object until further notice.
|