Chapter 6.  XmlContainerConfig

#include <DbXml.hpp>

class DbXml::XmlContainerConfig {
public:
	XmlContainerConfig();
	XmlContainerConfig(const XmlContainerConfig &);
	~XmlContainerConfig();
	XmlContainerConfig &operator = (const XmlContainerConfig &)
	enum ConfigState {
	     On
	     Off
	     UseDefault
	};
	...
};

The XmlContainerConfig class encapsulates all the properties with which a container can be created or opened. It is passed as an argument to XmlManager::createContainer and XmlManager::openContainer as well as other methods that previously accepted unsigned int flags paramters.

The default settings of the properties in an XmlContainerConfig object are listed in the following table.

Property Value
AllowCreate false
AllowValidation false
Checksum false
CompressionName DEFAULT_COMPRESSION — on for WholedocContainer; off for NodeContainer
ContainerType XmlContainer::NodeContainer
Encrypted false
ExclusiveCreate false
IndexNodes On for NodeContainer; Off for WholedocContainer
Mode 0
Multiversion false
NoMMap false
PageSize 8192 for NodeContainer; 16384 for WholedocContainer
ReadOnly false
ReadUncommitted false
SequenceIncrement 5
Statistics On
Threaded false
TransactionNotDurable false

This object is not thread-safe, and can only be safely used by one thread at a time in an application.

XmlContainerConfig Methods