XmlTransaction::commit |
![]() ![]() |
#include <DbXml.hpp>void XmlTransaction::commit(u_int32_t flags = 0)
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.
ParametersThis behavior may also be set for a Berkeley DB environment using the UNREF==dbenv_set_flags method or for a single transaction using the XmlManager::createTransaction method. Any value specified to this method overrides both of those settings.
DB_TXN_SYNCThis behavior is the default for Berkeley DB environments unless the DB_TXN_NOSYNC flag was specified to the UNREF==dbenv_set_flags method. This behavior may also be set for a single transaction using the XmlManager::createTransaction method. Any value specified to this method overrides both of those settings.
The XmlTransaction::commit method may fail and throw XmlException, encapsulating one of the following non-zero errors:
![]() ![]() |
Copyright (c) 1996-2009 Oracle. All rights reserved.