|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TransactionManager
Torque's interface to the transaction management system.
| Method Summary | |
|---|---|
Connection |
begin()
Begin a transaction by retrieving a connection from the default database connection pool. |
Connection |
begin(String dbName)
Begin a transaction by retrieving a connection from the named database connection pool. |
void |
commit(Connection con)
Commit a transaction and close the connection. |
void |
rollback(Connection con)
Roll back a transaction and release the connection. |
void |
safeRollback(Connection con)
Roll back a transaction without throwing errors if they occur. |
| Method Detail |
|---|
Connection begin()
throws TorqueException
TorqueException - Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.
Connection begin(String dbName)
throws TorqueException
dbName - Name of database.
TorqueException - If the connection cannot be retrieved.
void commit(Connection con)
throws TorqueException
con - The Connection for the transaction.
TorqueException - Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.
void rollback(Connection con)
throws TorqueException
con - The Connection for the transaction.
TorqueException - Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.void safeRollback(Connection con)
con - The Connection for the transaction.TransactionManagerImpl.rollback(Connection)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||