|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Database
A database. Database instances can be obtained using
DatabaseFactory.getDatabase()
.
See the package description
on how to work with Databases.
Note: Implementors must be thread-safe!
Method Summary | |
---|---|
void |
close()
Closes this Database. |
boolean |
isClosed()
Returns whether this Database has been closed. |
Transaction |
openTransaction()
Opens and returns a new Transaction . |
Method Detail |
---|
void close() throws PersistenceException
PersistenceException
- when the closing fails
DatabaseClosedException
- when this Database
has been closed alreadyTransaction openTransaction() throws PersistenceException
Transaction
.
PersistenceException
- when opening the transaction fails
DatabaseClosedException
- when this Database
has been closed alreadyboolean isClosed() throws PersistenceException
true
, when this database has been closed, else false
PersistenceException
- when there is a persistence-related error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |