XmlContainer |
![]() ![]() |
import com.sleepycat.dbxml.*;public class XmlContainer extends Object { XmlContainer(DbEnv dbenv, String name, int flags) throws DbException; ... }
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:
XmlDocument.getAttributeValue, XmlDocument.getContent, XmlDocument.getID, XmlDocument.getName, XmlDocument.getType, XmlDocument.setContent, XmlDocument.setName, and XmlDocument.setType.
![]() ![]() |