Check for symlinks when deleting directories. Allow Database.open()

and close() to throw IOExceptions as well as DatabaseExceptions.
This commit is contained in:
akwizgran
2011-10-03 18:35:18 +01:00
parent 72b594d270
commit 74ca71d9c1
8 changed files with 87 additions and 80 deletions

View File

@@ -36,10 +36,10 @@ public interface DatabaseComponent {
* @param resume True to reopen an existing database or false to create a
* new one.
*/
void open(boolean resume) throws DbException;
void open(boolean resume) throws DbException, IOException;
/** Waits for any open transactions to finish and closes the database. */
void close() throws DbException;
void close() throws DbException, IOException;
/** Adds a listener to be notified when database events occur. */
void addListener(DatabaseListener d);