org.davesag.generica.persistence
Interface Transaction

All Known Implementing Classes:
HibernateTransaction, JdoTransaction

public interface Transaction

A Transaction delegates to the correct underlying transaction. It is vastly simpler that either the JDO or Hibernate interfaces and yet for 99% of operations is sufficient.

Since:
Generica 1.0
Version:
CVS Revision $Id: Transaction.java,v 1.4 2004/04/06 15:40:41 davesag Exp $
Author:
Dave Sag http://www.davesag.com

Method Summary
 void commit()
          commit this transaction.
 boolean isActive()
          test to see if this transaction is still active.
 void rollback()
          rollback this transaction.
 

Method Detail

commit

public void commit()
            throws ArchiveException
commit this transaction.

Throws:
ArchiveException - if anything went wrong.

rollback

public void rollback()
              throws ArchiveException
rollback this transaction.

Throws:
ArchiveException - if anything went wrong.

isActive

public boolean isActive()
                 throws ArchiveException
test to see if this transaction is still active.

Returns:
true if the transaction is still active.
Throws:
ArchiveException - if anything went wrong.


Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.