|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.rhi.architecture.xa.DatabaseTransactionImpl
Interface for managing database transactions. This is not intended to be a distributed transaction class. It is just a useful interface to use in single DB transactions.
| Field Summary |
| Fields inherited from interface com.rhi.architecture.xa.Transaction |
TYPE_KEY |
| Constructor Summary | |
DatabaseTransactionImpl()
default constructor |
|
| Method Summary | |
void |
begin()
Start a new transaction. |
void |
commit()
Commit the transaction represented by this object. |
java.sql.Connection |
getConnection()
Get the connection associated w/ this DatabaseTransaction |
void |
rollback()
Rollback the transaction represented by this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DatabaseTransactionImpl()
| Method Detail |
public java.sql.Connection getConnection()
getConnection in interface DatabaseTransaction
public void begin()
throws TransactionException
begin in interface DatabaseTransactionTransactionException
public void commit()
throws TransactionException
commit in interface DatabaseTransactionTransactionException
public void rollback()
throws TransactionException
rollback in interface DatabaseTransactionTransactionException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||