java.lang.Object
org.jdbf.engine.transaction.Transaction
- Direct Known Subclasses:
- TransactionImpl
- public abstract class Transaction
- extends java.lang.Object
A transaction context is required in order to perform operations
against the database. The only way to begin a new transaction is
through the creation of a new transaction.
|
Constructor Summary |
Transaction()
Create a new transaction context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
status
protected int status
- The transaction status.
className
protected java.lang.String className
- Class name;
Transaction
public Transaction()
- Create a new transaction context. This method is used by the
explicit transaction model.
isOpen
public boolean isOpen()
- Returns true if the transaction is open.
commit
public abstract void commit(java.sql.Connection conn)
throws TransactionException
- Commits all changes
rollback
public abstract void rollback(java.sql.Connection conn)
throws TransactionException
- Rolls back all changes and closes the transaction