com.sleepycat.je
Class DatabaseConfig

java.lang.Object
  extended by com.sleepycat.je.DatabaseConfig
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
SecondaryConfig

public class DatabaseConfig
extends java.lang.Object
implements java.lang.Cloneable

Javadoc for this public class is generated via the doc templates in the doc_src directory.


Field Summary
static DatabaseConfig DEFAULT
           
 
Constructor Summary
DatabaseConfig()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 
Method Summary
 DatabaseConfig cloneConfig()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 boolean getAllowCreate()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 java.util.Comparator getBtreeComparator()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 boolean getBtreeComparatorByClassName()
           
 boolean getDeferredWrite()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 java.util.Comparator getDuplicateComparator()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 boolean getDuplicateComparatorByClassName()
           
 boolean getExclusiveCreate()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 int getNodeMaxDupTreeEntries()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 int getNodeMaxEntries()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 boolean getOverrideBtreeComparator()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 boolean getOverrideDuplicateComparator()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 boolean getReadOnly()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 boolean getSortedDuplicates()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 boolean getTransactional()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
(package private)  boolean getUseExistingConfig()
          For utilities, to avoid having to know the configuration of a database.
 void setAllowCreate(boolean allowCreate)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void setBtreeComparator(java.lang.Class btreeComparator)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void setBtreeComparator(java.util.Comparator btreeComparator)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
(package private)  void setBtreeComparatorInternal(java.util.Comparator comparator, boolean byClassName)
          Used to set the comparator when filling in a configuration from an existing database.
 void setDeferredWrite(boolean deferredWrite)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void setDuplicateComparator(java.lang.Class duplicateComparator)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void setDuplicateComparator(java.util.Comparator duplicateComparator)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
(package private)  void setDuplicateComparatorInternal(java.util.Comparator comparator, boolean byClassName)
          Used to set the comparator when filling in a configuration from an existing database.
 void setExclusiveCreate(boolean exclusiveCreate)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void setNodeMaxDupTreeEntries(int nodeMaxDupTreeEntries)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void setNodeMaxEntries(int nodeMaxEntries)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void setOverrideBtreeComparator(boolean override)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void setOverrideDuplicateComparator(boolean override)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void setReadOnly(boolean readOnly)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void setSortedDuplicates(boolean duplicatesAllowed)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void setTransactional(boolean transactional)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
(package private)  void setUseExistingConfig(boolean useExistingConfig)
          For utilities, to avoid having to know the configuration of a database.
(package private)  void validate(DatabaseConfig config)
           
(package private)  void validateForNewDb()
          Check that this database configuration is valid for a new, non-existant database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final DatabaseConfig DEFAULT
Constructor Detail

DatabaseConfig

public DatabaseConfig()
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Method Detail

setAllowCreate

public void setAllowCreate(boolean allowCreate)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getAllowCreate

public boolean getAllowCreate()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


setExclusiveCreate

public void setExclusiveCreate(boolean exclusiveCreate)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getExclusiveCreate

public boolean getExclusiveCreate()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


setSortedDuplicates

public void setSortedDuplicates(boolean duplicatesAllowed)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getSortedDuplicates

public boolean getSortedDuplicates()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


setTransactional

public void setTransactional(boolean transactional)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getTransactional

public boolean getTransactional()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


setReadOnly

public void setReadOnly(boolean readOnly)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getReadOnly

public boolean getReadOnly()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


setNodeMaxEntries

public void setNodeMaxEntries(int nodeMaxEntries)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


setNodeMaxDupTreeEntries

public void setNodeMaxDupTreeEntries(int nodeMaxDupTreeEntries)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getNodeMaxEntries

public int getNodeMaxEntries()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getNodeMaxDupTreeEntries

public int getNodeMaxDupTreeEntries()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


setBtreeComparator

public void setBtreeComparator(java.util.Comparator btreeComparator)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


setBtreeComparator

public void setBtreeComparator(java.lang.Class btreeComparator)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getBtreeComparator

public java.util.Comparator getBtreeComparator()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getBtreeComparatorByClassName

public boolean getBtreeComparatorByClassName()
Returns:
whether Comparator is set by class name, not by serializable Comparator object.

setOverrideBtreeComparator

public void setOverrideBtreeComparator(boolean override)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getOverrideBtreeComparator

public boolean getOverrideBtreeComparator()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


setDuplicateComparator

public void setDuplicateComparator(java.util.Comparator duplicateComparator)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


setDuplicateComparator

public void setDuplicateComparator(java.lang.Class duplicateComparator)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getDuplicateComparator

public java.util.Comparator getDuplicateComparator()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getDuplicateComparatorByClassName

public boolean getDuplicateComparatorByClassName()
Returns:
whether Comparator is set by class name, not by serializable Comparator object.

setOverrideDuplicateComparator

public void setOverrideDuplicateComparator(boolean override)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getOverrideDuplicateComparator

public boolean getOverrideDuplicateComparator()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


setDeferredWrite

public void setDeferredWrite(boolean deferredWrite)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getDeferredWrite

public boolean getDeferredWrite()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


setBtreeComparatorInternal

void setBtreeComparatorInternal(java.util.Comparator comparator,
                                boolean byClassName)
Used to set the comparator when filling in a configuration from an existing database.


setDuplicateComparatorInternal

void setDuplicateComparatorInternal(java.util.Comparator comparator,
                                    boolean byClassName)
Used to set the comparator when filling in a configuration from an existing database.


setUseExistingConfig

void setUseExistingConfig(boolean useExistingConfig)
For utilities, to avoid having to know the configuration of a database.


getUseExistingConfig

boolean getUseExistingConfig()
For utilities, to avoid having to know the configuration of a database.


cloneConfig

public DatabaseConfig cloneConfig()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


validate

void validate(DatabaseConfig config)
        throws DatabaseException
Throws:
DatabaseException

validateForNewDb

void validateForNewDb()
                throws DatabaseException
Check that this database configuration is valid for a new, non-existant database.

Throws:
DatabaseException


Copyright 2004,2008 Oracle. All rights reserved.