public class XmlContainerConfig extends DatabaseConfig
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(),
 DatabaseConfig.getPageSize(),
 DatabaseConfig.getMultiversion(),
 DatabaseConfig.getMode().
 Setting any other configuration will be silently ignored.
 
| Modifier and Type | Field and Description | 
|---|---|
| static XmlContainerConfig | DEFAULTThe default configuration settings for XmlContainers. | 
| static java.lang.String | DEFAULT_COMPRESSSIONThe default compression algorithm. | 
| static java.lang.String | NO_COMPRESSSIONDo not use compression. | 
| static int | OffPass to  setStatisticsEnabled(int)andsetIndexNodes(int)to turn off these properties. | 
| static int | OnPass to  setStatisticsEnabled(int)andsetIndexNodes(int)to turn on these properties. | 
| static int | UseDefaultsPass to  setStatisticsEnabled(int)andsetIndexNodes(int)to use the
     default value. | 
| Constructor and Description | 
|---|
| XmlContainerConfig() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | getAllowValidation()Gets whether documents are validated when loaded into the container, if they refer to a DTD or XML Schema. | 
| java.lang.String | getCompression()Returns the name of the compression algorithm. | 
| int | getContainerType()Gets the container type of either  XmlContainer.NodeContainer, orXmlContainer.WholedocContainer. | 
| boolean | getIndexNodes()Deprecated. 
 as of release 2.5, replaced by  getIndexNodesFlag().Returns whether the indexer should create index targets that references nodes rather than documents. | 
| int | getIndexNodesFlag() | 
| boolean | getNodeContainer()Deprecated. 
 as of release 2.5, replaced by  getContainerType().Returns whether the container stores XML as individual nodes instead of as documents. | 
| int | getSequenceIncrement()Returns the integer increment to be used when pre-allocating document ids for new documents created by  XmlContainer.putDocument(com.sleepycat.dbxml.XmlDocument). | 
| boolean | getStatisticsEnabled()Deprecated. 
 as of release 2.5, replaced by  getStatisticsEnabledFlag().Returns whether the statistics database should be created and kept. | 
| int | getStatisticsEnabledFlag()Returns the flag that controls whether gathering of statistics is turned on or off for the container. | 
| XmlContainerConfig | setAllowValidation(boolean value)Sets whether documents are validated when loaded into the container, if they refer to a DTD or XML Schema. | 
| XmlContainerConfig | setCompression(java.lang.String compressionName)Set the name of the compression algorithm to be used by the container. | 
| XmlContainerConfig | setContainerType(int 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 | setIndexNodes(boolean value)Deprecated. 
 as of release 2.5, replaced by  setIndexNodes(int).Causes the indexer to create index targets that reference nodes rather than documents. | 
| XmlContainerConfig | setIndexNodes(int value)Causes the indexer to create index targets that reference nodes rather than documents. | 
| XmlContainerConfig | setNodeContainer(boolean value)Deprecated. 
 as of release 2.5, replaced by  setContainerType(int)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. Storing nodes is preferred. | 
| void | setSequenceIncrement(int incr)
Sets the integer increment to be used when pre-allocating document ids for new documents created by  XmlContainer.putDocument(com.sleepycat.dbxml.XmlDocument). | 
| XmlContainerConfig | setStatisticsEnabled(boolean value)Deprecated. 
 as of release 2.5, replaced by  setStatisticsEnabled(int).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. When setting to false, reindexing will remove any structural statistics database present. The default during container creation is to create a structural statistics database. The default during reindexing is to keep the existing configuration. Containers created with these statistics will take longer to load and update, since the statistics must also be updated. | 
| XmlContainerConfig | setStatisticsEnabled(int value)Setting to  OnorUseDefaultswill cause the container to be created or reindexed with additional structural
           statistics information, which is very useful for cost based query optimisation. | 
cloneConfig, getAllowCreate, getBlobDir, getBlobThreshold, getBtreeComparator, getBtreeCompressor, getBtreeMinKey, getBtreePrefixCalculator, getBtreeRecordNumbers, getByteOrder, getByteSwapped, getCacheCount, getCacheSize, getChecksum, getCreateDir, getDirtyRead, getDuplicateComparator, getEncrypted, getErrorHandler, getErrorPrefix, getErrorStream, getExclusiveCreate, getFeedbackHandler, getHashComparator, getHasher, getHashFillFactor, getHashNumElements, getHeapRegionSize, getHeapsize, getMessageHandler, getMessageStream, getMode, getMultiversion, getNoMMap, getNoWaitDbExclusiveLock, getPageSize, getPanicHandler, getPartitionDirs, getPartitionHandler, getPartitionKeys, getPartitionParts, getPriority, getQueueExtentSize, getQueueInOrder, getReadOnly, getReadUncommitted, getRecordDelimiter, getRecordLength, getRecordNumberAppender, getRecordPad, getRecordSource, getRenumbering, getReverseSplitOff, getSnapshot, getSortedDuplicates, getTransactional, getTransactionNotDurable, getTruncate, getType, getUnsortedDuplicates, setAllowCreate, setBlobDir, setBlobThreshold, setBtreeComparator, setBtreeCompressor, setBtreeMinKey, setBtreePrefixCalculator, setBtreeRecordNumbers, setByteOrder, setCacheCount, setCacheSize, setChecksum, setCreateDir, setDirtyRead, setDuplicateComparator, setEncrypted, setErrorHandler, setErrorPrefix, setErrorStream, setExclusiveCreate, setFeedbackHandler, setHashComparator, setHasher, setHashFillFactor, setHashNumElements, setHeapRegionSize, setHeapsize, setMessageHandler, setMessageStream, setMode, setMsgfile, setMultiversion, setNoMMap, setNoWaitDbExclusiveLock, setPageSize, setPanicHandler, setPartitionByCallback, setPartitionByRange, setPartitionDirs, setPriority, setQueueExtentSize, setQueueInOrder, setReadOnly, setReadUncommitted, setRecordDelimiter, setRecordLength, setRecordNumberAppender, setRecordPad, setRecordSource, setRenumbering, setReverseSplitOff, setSnapshot, setSortedDuplicates, setTransactional, setTransactionNotDurable, setTruncate, setType, setUnsortedDuplicatespublic static final XmlContainerConfig DEFAULT
public static final java.lang.String DEFAULT_COMPRESSSION
public static final java.lang.String NO_COMPRESSSION
public static final int UseDefaults
setStatisticsEnabled(int) and
     setIndexNodes(int) to use the
     default value.public static final int On
setStatisticsEnabled(int) and
     setIndexNodes(int) to turn on these properties.public static final int Off
setStatisticsEnabled(int) and
     setIndexNodes(int) to turn off these properties.public java.lang.String getCompression()
public XmlContainerConfig setCompression(java.lang.String compressionName)
XmlManager.registerCompression(java.lang.String, com.sleepycat.dbxml.XmlCompression).  This only effects container creation, after the container is created this value is silently ignored.public void setSequenceIncrement(int incr)
Sets the integer increment to be used when pre-allocating document ids for new documents created by XmlContainer.putDocument(com.sleepycat.dbxml.XmlDocument).
incr - The integer increment to use.public int getSequenceIncrement()
XmlContainer.putDocument(com.sleepycat.dbxml.XmlDocument).public int getIndexNodesFlag()
public boolean getIndexNodes()
getIndexNodesFlag().Returns whether the indexer should create index targets that references nodes rather than documents.
public XmlContainerConfig setIndexNodes(boolean value)
setIndexNodes(int).Causes the indexer to create index targets that reference nodes rather than documents.
value - Whether the indexer should create index targets that references nodes rather than documents.public XmlContainerConfig setIndexNodes(int value)
value - If set to On the indexer creates index targets that references nodes.  If set to Off then the index targets reference documents.  If set to the default UseDefaults then the index targets will be nodes for containers of type XmlContainer.NodeContainer, and documents for containers of type XmlContainer.WholedocContainer.public int getStatisticsEnabledFlag()
public boolean getStatisticsEnabled()
getStatisticsEnabledFlag(). Returns whether the statistics database should be created and kept.
public XmlContainerConfig setStatisticsEnabled(boolean value)
setStatisticsEnabled(int). 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. When setting to false, reindexing will remove any structural statistics database present. The default during container creation is to create a structural statistics database. The default during reindexing is to keep the existing configuration. Containers created with these statistics will take longer to load and update, since the statistics must also be updated.
value - Whether the structural statistics database is createdpublic XmlContainerConfig setStatisticsEnabled(int value)
On or UseDefaults will cause the container to be created or reindexed with additional structural
           statistics information, which is very useful for cost based query optimisation. When setting to Off,
           reindexing will remove any structural statistics database present.
           The default during container creation is to create a structural statistics database. The default during
           reindexing is to keep the existing configuration.
           Containers created
           with these statistics will take longer to load and update, since the statistics must also be updated.value - Whether the structural statistics database is createdpublic int getContainerType()
XmlContainer.NodeContainer, or XmlContainer.WholedocContainer.public boolean getNodeContainer()
getContainerType(). Returns whether the container stores XML as individual nodes instead of as documents.
public XmlContainerConfig setNodeContainer(boolean value)
setContainerType(int) 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. Storing nodes is preferred.
value - Whether documents are stored as nodes.public XmlContainerConfig setContainerType(int value)
value - Set to XmlContainer.NodeContainer to store documents broken into nodes, set to XmlContainer.WholedocContainer to store documents intact.  The default is XmlContainer.NodeContainer.public boolean getAllowValidation()
public XmlContainerConfig setAllowValidation(boolean value)
Copyright (c) 2004,2014 Oracle. All rights reserved.