XmlTransaction::abort

API Ref

#include <DbXml.hpp>

void XmlTransaction::abort()


Description: XmlTransaction::abort

The XmlTransaction::abort method causes an abnormal termination of the transaction. All write operations previously performed within the scope of the transaction are undone. Before this method returns, any locks held by the transaction will have been released.

In the case of nested transactions, aborting a parent transaction causes all children (unresolved or not) of the parent transaction to be aborted.

After XmlTransaction::abort method has been called, regardless of its return, the XmlTransaction method handle may not be accessed again.

Errors

The XmlTransaction::abort method may fail and throw XmlException, encapsulating one of the following non-zero errors:

TRANSACTION_ERROR
Cannot use XmlTransaction once committed or aborted

APIRef

Copyright (c) 1996,2007 Oracle. All rights reserved.