|
Berkeley DB XML version 2.4.13 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.db.DatabaseConfig
com.sleepycat.dbxml.XmlContainerConfig
public class XmlContainerConfig
Configuration settings for an XmlContainer
instance. Used in
XmlManager.createContainer(String, XmlContainerConfig)
,
XmlManager.createContainer(XmlTransaction, String, XmlContainerConfig)
,
XmlManager.openContainer(String, XmlContainerConfig)
, or
XmlManager.openContainer(XmlTransaction, String, XmlContainerConfig)
.
This class extends DatabaseConfig
but does not support all of the
configuration state in that object. Specifically, the only
state used is that obtained from these methods:
DatabaseConfig.getChecksum()
,
DatabaseConfig.getEncrypted()
,
DatabaseConfig.getTransactional()
,
DatabaseConfig.getAllowCreate()
,
DatabaseConfig.getExclusiveCreate()
,
DatabaseConfig.getNoMMap()
,
DatabaseConfig.getReadOnly()
,
DatabaseConfig.getDirtyRead()
,
DatabaseConfig.getTransactionNotDurable()
.
Setting any other configuration will be silently ignored.
Field Summary | |
---|---|
static XmlContainerConfig |
DEFAULT
The default configuration settings for XmlContainers. |
Constructor Summary | |
---|---|
XmlContainerConfig()
|
Method Summary | |
---|---|
boolean |
getAllowValidation()
Gets whether documents are validated when loaded into the container, if they refer to a DTD or XML Schema. |
boolean |
getIndexNodes()
Returns whether the indexer should create index targets that references nodes rather than documents. |
boolean |
getNodeContainer()
Gets whether documents are stored as nodes. |
boolean |
getStatisticsEnabled()
Returns whether the statistics database should be created or kept. |
XmlContainerConfig |
setAllowValidation(boolean value)
Sets whether documents are validated when loaded into the container, if they refer to a DTD or XML Schema. |
XmlContainerConfig |
setIndexNodes(boolean value)
Causes the indexer to create index targets that reference nodes rather than documents. |
XmlContainerConfig |
setNodeContainer(boolean value)
Set whether documents are broken down into their component nodes, and these nodes are stored individually in the container, or stored intact with all white space and formatting is preserved. |
XmlContainerConfig |
setStatisticsEnabled(boolean value)
Setting to true will cause the container to be created or reindexed with additional structural statistics information, which is very useful for cost based query optimisation. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final XmlContainerConfig DEFAULT
Constructor Detail |
---|
public XmlContainerConfig()
Method Detail |
---|
public boolean getIndexNodes()
public XmlContainerConfig setIndexNodes(boolean value)
value
- Whether the indexer should create index targets that references nodes rather than documents.public boolean getStatisticsEnabled()
public XmlContainerConfig setStatisticsEnabled(boolean value)
value
- Whether the structural statistics database is createdpublic boolean getNodeContainer()
public XmlContainerConfig setNodeContainer(boolean value)
value
- Whether documents are stored as nodes.public boolean getAllowValidation()
public XmlContainerConfig setAllowValidation(boolean value)
|
Berkeley DB XML version 2.4.13 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |