|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IDatabase
Interface that is implemented by Database wrappers
| Method Summary | |
|---|---|
void |
abortTransaction(ITransaction transaction)
Abort a transaction, rolling back all changes. |
ITransaction |
beginTransaction()
Begin a new transaction. |
void |
commitTransaction(ITransaction transaction)
Commit a transaction, making all changes persistent |
void |
deleteNode(ITransaction transaction,
java.lang.String key)
Delete the node specified by the given key. |
INode |
getNode(ITransaction transaction,
java.lang.String key)
Get the node from the database specified by the given key. |
void |
init(java.io.File dbHome,
Application app)
Initialize the database with the given db directory and application. |
void |
insertNode(ITransaction transaction,
java.lang.String key,
INode node)
Insert a node with the given key |
java.lang.String |
nextID()
Get the next ID from the db's ID generator |
void |
shutdown()
Let the database know we're shutting down. |
void |
updateNode(ITransaction transaction,
java.lang.String key,
INode node)
Update a node with the given key |
| Method Detail |
|---|
void init(java.io.File dbHome,
Application app)
dbHome - app - void shutdown()
java.lang.String nextID()
throws ObjectNotFoundException
ObjectNotFoundException
INode getNode(ITransaction transaction,
java.lang.String key)
throws java.io.IOException,
ObjectNotFoundException
transaction - key -
java.io.IOException
ObjectNotFoundException - if no object exists for the key.
void insertNode(ITransaction transaction,
java.lang.String key,
INode node)
throws java.io.IOException
transaction - key - node -
java.io.IOException
void updateNode(ITransaction transaction,
java.lang.String key,
INode node)
throws java.io.IOException
transaction - key - node -
java.io.IOException
void deleteNode(ITransaction transaction,
java.lang.String key)
throws java.io.IOException
transaction - ...key - ...
java.io.IOException - ...ITransaction beginTransaction()
void commitTransaction(ITransaction transaction)
throws DatabaseException
transaction -
DatabaseException
void abortTransaction(ITransaction transaction)
throws DatabaseException
transaction -
DatabaseException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||