|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DatabaseTransaction
Representing a ongoing database transaction. Remember that it is important that you either commit() or rollback() the transaction when you are done with it. Remember this applies even when handling exceptions, you must declare yourself done with the transaction so that the connection can be returned to there original data source. Failure to do so may starve the connection pool.
| Method Summary | |
|---|---|
void |
commit()
This will commit the transaction on the remote server and the connection will be returned to the pool. |
void |
rollback()
This will rollback the transaction on the remote server and the connection will be returned to the pool. |
| Methods inherited from interface com.googlecode.jdbw.SQLExecutor |
|---|
batchWrite, batchWrite, execute |
| Method Detail |
|---|
void commit()
throws SQLException
SQLException
void rollback()
throws SQLException
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||