This question is locked. New answers and comments are not allowed.
Hi
I see that the ObjectContainer Transaction Rollback method throws a not implemented exception. So what I want to do is reset the ObjectContainer content back to before the ObejctContainer Transaction was opened by getting the CHangeSet discarded and repopulaitng the ObjectContainer with the original data entity that was updated - however preferably I do NOT want to discard the entire ObjectContainer as I would need to repopulate it with a lot of reference data (I suppose I could maintain a reference data Container and transfer its content to a new ObjectContainer to be used for updates BUT keeping it synchronised would be complex).
So my question is can I commit the transaction, then extract and discard the ChangeSet and then refresh the objects I changed with the original versions by applying a new ChangeSet from the server? Would there be any issues regarding the object state - will there be a problem replacing a dirty object?
Also I am unclear what ObjectContainer.Transaction.Flush() does - can it be clarified what it does when called if you have a Container with an open transaction and changes made.
Are there plans to implement RollBack() for the disconnected API?
Thanks
James
I see that the ObjectContainer Transaction Rollback method throws a not implemented exception. So what I want to do is reset the ObjectContainer content back to before the ObejctContainer Transaction was opened by getting the CHangeSet discarded and repopulaitng the ObjectContainer with the original data entity that was updated - however preferably I do NOT want to discard the entire ObjectContainer as I would need to repopulate it with a lot of reference data (I suppose I could maintain a reference data Container and transfer its content to a new ObjectContainer to be used for updates BUT keeping it synchronised would be complex).
So my question is can I commit the transaction, then extract and discard the ChangeSet and then refresh the objects I changed with the original versions by applying a new ChangeSet from the server? Would there be any issues regarding the object state - will there be a problem replacing a dirty object?
Also I am unclear what ObjectContainer.Transaction.Flush() does - can it be clarified what it does when called if you have a Container with an open transaction and changes made.
Are there plans to implement RollBack() for the disconnected API?
Thanks
James