Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jdbf.engine.transaction
Class TransactionImpl  view TransactionImpl download TransactionImpl.java

java.lang.Object
  extended byorg.jdbf.engine.transaction.Transaction
      extended byorg.jdbf.engine.transaction.TransactionImpl

public class TransactionImpl
extends Transaction

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.


Field Summary
 
Fields inherited from class org.jdbf.engine.transaction.Transaction
className, status
 
Constructor Summary
TransactionImpl()
          Create a new transaction context.
 
Method Summary
 void commit(java.sql.Connection connection)
          Commits all changes
 void rollback(java.sql.Connection connection)
          Rolls back all changes
 
Methods inherited from class org.jdbf.engine.transaction.Transaction
isOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionImpl

public TransactionImpl()
Create a new transaction context. This method is used by the explicit transaction model.

Method Detail

commit

public void commit(java.sql.Connection connection)
            throws TransactionException
Commits all changes

Specified by:
commit in class Transaction

rollback

public void rollback(java.sql.Connection connection)
              throws TransactionException
Rolls back all changes

Specified by:
rollback in class Transaction