org.mentawai.transaction
Interface Transaction

All Known Implementing Classes:
HibernateTransaction, JdbcTransaction, JpaTransaction

public interface Transaction

Defines the behaviour of a transaction.

Author:
Sergio Oliveira

Method Summary
 void begin()
          Begins the transaction.
 void commit()
          Commits the transaction.
 void end()
           
 boolean isActive()
          Is the transaction still active, in other words, is it still not commited and not rolledback ?
 void rollback()
          Rollbacks the transaction.
 

Method Detail

begin

void begin()
           throws Exception
Begins the transaction.

Throws:
Exception

commit

void commit()
            throws Exception
Commits the transaction.

Throws:
Exception

rollback

void rollback()
              throws Exception
Rollbacks the transaction.

Throws:
Exception

isActive

boolean isActive()
Is the transaction still active, in other words, is it still not commited and not rolledback ?

Returns:
true if the transaction was not commited and was not rolledback

end

void end()
         throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.