|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

public interface TransactionContext
Interface defining an abstraction for JDBC transaction handling. This will provide a context in which a single database transaction can be executed.
| Method Summary | |
|---|---|
void |
commit()
Commits the transaction. |
java.sql.Connection |
getConnection()
Returns the connection used by this context. |
void |
rollback()
Rolls back the transaction. |
void |
setConnection(java.sql.Connection conn)
Set the connection that this context will use. |
| Method Detail |
|---|
void setConnection(java.sql.Connection conn)
throws DaoException
conn - Connection this context will use for Database communication.
DaoException - if the connection cannot be prepared for transactional
purposes.java.sql.Connection getConnection()
void commit()
throws DaoException
DaoException - if the transaction cannot be committed.
void rollback()
throws DaoException
DaoException - if transaction cannot be rolled back.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||