|
Snapper 1.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SnapperTransaction
Since Snapper tends to be a transaction oriented, this is the interface that the kernel uses to signal operations on the transaction.
Method Summary | |
---|---|
void |
commit()
Method commit is invoked when something has to be commited into database. |
void |
release()
Method release MUST be called for each transaction. |
void |
rollback()
Method rollback is called when commit method fails (throws an exception). |
Method Detail |
---|
void commit() throws TransactionException
TransactionException
- thrown if anything goes wrong.void rollback() throws TransactionException
TransactionException
- thrown if anything goes wrong.void release() throws TransactionException
TransactionException
- thrown if anything goes wrong.
|
Snapper 1.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |