|
Berkeley DB Java Edition version 1.7.0 |
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Deprecated Methods | |
com.sleepycat.je.Database.truncate(Transaction, boolean)
As of JE 1.7, replaced by Environment.truncateDatabase(Transaction, String, boolean) .
The Database class is thread safe and may be used concurrently by multiple threads, using multiple transactions. It was not possible to supply correct transactional semantics for this method in all cases without imposing a performance penalty on all operations. Specifically, a truncate operation executed within one transaction can be incorrectly seen before commit by other transactions if those later transactions use the same Database handle. The replacement method, Environment.truncateDatabase(), avoids these issues because all Database handles must be closed before the truncateDatabase() method is called.
|
|
Berkeley DB Java Edition version 1.7.0 |
||||||||||
PREV NEXT | FRAMES NO FRAMES |