| XmlManager::createTransaction |
![]() |
#include <DbXml.hpp>XmlTransaction XmlManager::createTransaction(DB_TXN *toAdopt) XmlTransaction XmlManager::createTransaction(u_int32_t flags = 0)
The XmlManager::createTransaction method method creates a new XmlTransaction object. If a DB_TXN object is not provided to this method, then a new transaction is begun (a DB_TXN object is instantiated and DbEnv::txn_begin is called).
If transactions were not initialized when this XmlManager object was opened (that is, DB_INIT_TXN was not specified) then this method throws an exception.
ParametersThis behavior may be set for a Berkeley DB environment using the UNREF==dbenv_set_flags method. Any value specified to this method overrides that setting.
The error DB_LOCK_DEADLOCK will be returned from update operations if a snapshot transaction attempts to update data which was modified after the snapshot transaction read it.
This behavior is the default for Berkeley DB environments unless the DB_TXN_NOSYNC flag was specified to the UNREF==dbenv_set_flags method. Any value specified to this method overrides that setting.
The XmlManager::createTransaction method may fail and throw XmlException, encapsulating one of the following non-zero errors:
![]()
|
Copyright (c) 1996-2009 Oracle. All rights reserved.