XmlManager::createTransaction API Ref

#include <DbXml.hpp>

XmlTransaction XmlManager::createTransaction(DB_TXN *toAdopt) XmlTransaction XmlManager::createTransaction(u_int32_t flags = 0)


Description: XmlManager::createTransaction

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.

Parameters
DB_TXN flags

Errors

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


INVALID_VALUE

INVALID_VALUE

APIRef

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