|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DbEnvironment
The interface for interacting with the database implementation.
Environments must not be used after the close method is
called.
| Method Summary | |
|---|---|
DbTransaction |
beginTransaction(long timeout)
Begins a new transaction with the specified timeout and the implementation-specific default isolation level. |
DbTransaction |
beginTransaction(long timeout,
boolean fullIsolation)
Begins a transaction with the specified timeout and isolation level. |
void |
close()
Closes the environment, releasing any associated resources. |
DbDatabase |
openDatabase(DbTransaction txn,
String fileName,
boolean create)
Opens a database. |
boolean |
useAllocationBlockPlaceholders()
Specifies whether object allocations in this environment should use a placeholder at the end of each allocation block to avoid allocation concurrency conflicts. |
| Method Detail |
|---|
DbTransaction beginTransaction(long timeout)
timeout - the number of milliseconds the transaction should be
allowed to run
IllegalArgumentException - if timeout is less than 1
DbDatabaseException - if an unexpected database problem occurs
DbTransaction beginTransaction(long timeout,
boolean fullIsolation)
timeout - the number of milliseconds the transaction should be
allowed to runfullIsolation - if true, requires the transaction to
support full serializable isolation, otherwise uses the default
transaction isolation level
IllegalArgumentException - if timeout is less than 1
DbDatabaseException - if an unexpected database problem occurs
DbDatabase openDatabase(DbTransaction txn,
String fileName,
boolean create)
throws FileNotFoundException
directory argument passed to DbEnvironmentFactory.getEnvironment.
txn - the transaction under which the database should be openedfileName - the name of the file containing the databasecreate - whether to create the database if it does not exist
IllegalArgumentException - if txn was not created by this
environment
FileNotFoundException - if create is false and
the database is not found
DbDatabaseException - if an unexpected database problem occursvoid close()
DbDatabaseException - if an unexpected database problem occursboolean useAllocationBlockPlaceholders()
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||