Berkeley DB: XmlContainer
Description: Berkeley DB: An embedded database programmatic toolkit.
Keywords: embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++

# XmlContainer |

`

###

    #include <DbXml.hpp>

    class DbXml::XmlContainer {
    public:
    	XmlContainer(DbEnv *dbenv, const string &name, u_int32_t flags);
    	~XmlContainer();
    	...
    };

# Description

The XmlContainer class provides methods for managing the storage and retrieval of XmlDocuments. The constructor creates an XmlContainer object that is the handle for an XML Container.

If no dbenv value is specified, the container is standalone; that is, it is not part of any Berkeley DB environment.

If a dbenv value is specified, the container is created within the specified Berkeley DB environment and all operations are performed within the context of that environment. The container methods automatically make calls to the other subsystems in Berkeley DB based on the enclosing environment. For example, if the environment has been configured to use locking, the container methods will automatically acquire the correct locks when reading and writing pages of the underlying databases that support the container. The user is expected to suitably configure the environment for their particular application.

The flags value must be set to 0 or the following value:

DB_XA_CREATE
  Instead of creating a standalone database, create a database intended to be accessed via applications running under a X/Open conformant Transaction Manager. The database will be opened in the environment specified by the OPENINFO parameter of the GROUPS section of the ubbconfig file. See the XA Resource Manager chapter in the Reference Guide for more information.

# Class

XmlContainer, XmlDocument, XmlQueryContext

# See Also

XmlContainer::close, XmlContainer::declareIndex, XmlContainer::deleteDocument, XmlContainer::getDocument, XmlContainer::getName, XmlContainer::open, XmlContainer::putDocument and XmlContainer::queryWithXPath.

XmlDocument::getAttributeValue, XmlDocument::getContent, XmlDocument::getID, XmlDocument::getName, XmlDocument::getType, XmlDocument::setContent, XmlDocument::setName, and XmlDocument::setType.

`

Copyright Sleepycat Software