XmlManager API Ref

#include <DbXml.hpp>

XmlManager::XmlManager(DB_ENV *dbenv, u_int32_t flags = 0) XmlManager::XmlManager(u_int32_t flags) XmlManager::XmlManager() XmlManager::XmlManager(const XmlManager &o) XmlManager &operator = (const XmlManager &o) XmlManager::~XmlManager()


Description: XmlManager

Provides a high-level object used to manage various aspects of Berkeley DB XML usage. You use XmlManager to perform activities such as container management (including creation and open), preparing XQuery queries, executing one-off queries, creating transaction objects, creating update and query context objects, and creating input streams.

A copy constructor and assignment operator are provided for this class. The class is implemented using a handle-body idiom. When a handle is copied both handles maintain a reference to the same body.

This object is free threaded, and can be safely shared among threads in an application.
Description: XmlManager(DB_ENV *dbenv, u_int32_t flags = 0)

XmlManager constructor that uses the provided DB_ENV for the underlying environment. The Berkeley DB subsystems initiated by this environment (for example, transactions, logging, the memory pool), are the subsystems that are available to Berkeley DB XML when operations are performed using this manager object.

Parameters
dbenv flags
Errors

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


INVALID_VALUE

Description: XmlManager(u_int32_t flags)

XmlManager constructor that uses a private internal database environment. This environment is opened with DB_PRIVATE|DB_CREATE|DB_INIT_MPOOL. These flags allow the underlying environment to be created if it does not already exist. In addition, the memory pool (in-memory cache) is initialized and available. Finally, the environment is private, which means that no external processes can join the environment, but the XmlManager object can be shared between threads within the opening process.

Note that for this form of the constructor, the environment home is located in either the current working directory, or in the directory identified by the DB_HOME environment variable.

Parameters
flags
Errors

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


INTERNAL_ERROR

INVALID_VALUE

Description: XmlManager()

A default XmlManager constructor. This constructor provides the same behavior as passing a flags parameter of 0 to the constructor that takes a single flags parameter. This constructor is provided for convenience.


APIRef

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