com.sleepycat.je
Class DatabaseConfig

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

public class DatabaseConfig
extends Object
implements 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
(package private)  DatabaseConfig cloneConfig()
          Used by Database to create a copy of the application supplied configuration.
(package private)  String genDatabaseConfigMismatchMessage(DatabaseConfig config, boolean txnMatch, boolean roMatch, boolean sdMatch, boolean btCmpMatch, boolean dtCmpMatch)
           
 boolean getAllowCreate()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 Comparator getBtreeComparator()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 Comparator getDuplicateComparator()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 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(Class btreeComparator)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void setDuplicateComparator(Class duplicateComparator)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 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)
           
 
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(Class btreeComparator)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getBtreeComparator

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


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(Class duplicateComparator)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getDuplicateComparator

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


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.


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

DatabaseConfig cloneConfig()
Used by Database to create a copy of the application supplied configuration. Done this way to provide non-public cloning.


validate

void validate(DatabaseConfig config)
        throws DatabaseException
Throws:
DatabaseException

genDatabaseConfigMismatchMessage

String genDatabaseConfigMismatchMessage(DatabaseConfig config,
                                        boolean txnMatch,
                                        boolean roMatch,
                                        boolean sdMatch,
                                        boolean btCmpMatch,
                                        boolean dtCmpMatch)


Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.