XmlTransaction::commit API Ref

#include <DbXml.hpp>

void XmlTransaction::commit(u_int32_t flags = 0)


Description: XmlTransaction::commit

The XmlTransaction::commit method ends the transaction. Container and document modifications made within the scope of the transaction are by default written to stable storage.

After XmlTransaction::commit has been called, regardless of its return, the XmlTransaction handle may not be accessed again. If XmlTransaction::commit encounters an error, the transaction and all child transactions of the transaction are aborted.

The XmlTransaction::commit method throws an exception that encapsulates a non-zero error value on failure.

Parameters
flags

Errors

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


TRANSACTION_ERROR

APIRef

Copyright (c) 1996-2009 Oracle. All rights reserved.