org.cocome.tradingsystem.inventory.data.persistence
Interface TransactionContext

All Known Implementing Classes:
TransactionContextImpl

public interface TransactionContext

Author:
Yannick Welsch

Method Summary
 void beginTransaction()
          starts a new transaction
 void commit()
          commits the current transaction
 java.lang.Boolean isActive()
          checks whether this transaction is still active
 void rollback()
          does a rollback on the current transaction
 

Method Detail

beginTransaction

void beginTransaction()
starts a new transaction


commit

void commit()
commits the current transaction


rollback

void rollback()
does a rollback on the current transaction


isActive

java.lang.Boolean isActive()
checks whether this transaction is still active

Returns:
true, if this transaction is active false, else