org.jrdf.util.bdb
Class BdbEnvironmentHandlerImpl

java.lang.Object
  extended by org.jrdf.util.bdb.BdbEnvironmentHandlerImpl
All Implemented Interfaces:
BdbEnvironmentHandler

public class BdbEnvironmentHandlerImpl
extends Object
implements BdbEnvironmentHandler


Constructor Summary
BdbEnvironmentHandlerImpl(DirectoryHandler handler)
           
 
Method Summary
<T,A,U extends A>
Map<T,U>
createMap(com.sleepycat.je.Database database, Class<T> clazz1, Class<A> clazz2)
           
<T> SortedSet<T>
createSet(com.sleepycat.je.Database database, Class<T> clazz)
           
 com.sleepycat.bind.serial.StoredClassCatalog setupCatalog(com.sleepycat.je.Environment env, String classCatalogString, com.sleepycat.je.DatabaseConfig dbConfig)
           
 com.sleepycat.je.Database setupDatabase(com.sleepycat.je.Environment env, String dbName, com.sleepycat.je.DatabaseConfig dbConfig)
           
 com.sleepycat.je.DatabaseConfig setUpDatabaseConfig(boolean transactional)
           
 com.sleepycat.je.Environment setUpEnvironment()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BdbEnvironmentHandlerImpl

public BdbEnvironmentHandlerImpl(DirectoryHandler handler)
Method Detail

setUpEnvironment

public com.sleepycat.je.Environment setUpEnvironment()
                                              throws com.sleepycat.je.DatabaseException
Specified by:
setUpEnvironment in interface BdbEnvironmentHandler
Throws:
com.sleepycat.je.DatabaseException

setUpDatabaseConfig

public com.sleepycat.je.DatabaseConfig setUpDatabaseConfig(boolean transactional)
Specified by:
setUpDatabaseConfig in interface BdbEnvironmentHandler

setupCatalog

public com.sleepycat.bind.serial.StoredClassCatalog setupCatalog(com.sleepycat.je.Environment env,
                                                                 String classCatalogString,
                                                                 com.sleepycat.je.DatabaseConfig dbConfig)
                                                          throws com.sleepycat.je.DatabaseException
Specified by:
setupCatalog in interface BdbEnvironmentHandler
Throws:
com.sleepycat.je.DatabaseException

setupDatabase

public com.sleepycat.je.Database setupDatabase(com.sleepycat.je.Environment env,
                                               String dbName,
                                               com.sleepycat.je.DatabaseConfig dbConfig)
                                        throws com.sleepycat.je.DatabaseException
Specified by:
setupDatabase in interface BdbEnvironmentHandler
Throws:
com.sleepycat.je.DatabaseException

createSet

public <T> SortedSet<T> createSet(com.sleepycat.je.Database database,
                                  Class<T> clazz)
Specified by:
createSet in interface BdbEnvironmentHandler

createMap

public <T,A,U extends A> Map<T,U> createMap(com.sleepycat.je.Database database,
                                            Class<T> clazz1,
                                            Class<A> clazz2)
Specified by:
createMap in interface BdbEnvironmentHandler