|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ITransaction
This interface is kept for databases that are able to run transactions.
| Field Summary | |
|---|---|
static int |
ADDED
|
static int |
DELETED
|
static int |
UPDATED
|
| Method Summary | |
|---|---|
void |
abort()
Rollback the transaction, forgetting the changed items |
void |
addResource(java.lang.Object res,
int status)
Adds a resource to the list of resources encompassed by this transaction |
void |
commit()
Complete the transaction by making its changes persistent. |
| Field Detail |
|---|
static final int ADDED
static final int UPDATED
static final int DELETED
| Method Detail |
|---|
void commit()
throws DatabaseException
DatabaseException
void abort()
throws DatabaseException
DatabaseException
void addResource(java.lang.Object res,
int status)
throws DatabaseException
res - the resource to addstatus - the status of the resource (ADDED|UPDATED|DELETED)
DatabaseException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||