edu.internet2.middleware.grouper.internal.dao
Interface TransactionDAO

All Known Implementing Classes:
Hib3TransactionDAO

public interface TransactionDAO

methods for dealing with transactions

Author:
mchyzer

Method Summary
 boolean transactionActive(GrouperTransaction grouperTransaction)
          call this to see if a transaction is active (exists and not committed or rolledback)
 Object transactionCallback(GrouperTransactionType grouperTransactionType, GrouperTransactionHandler grouperTransactionHandler, GrouperTransaction grouperTransaction)
          call this to send a callback for the grouper methods.
 boolean transactionCommit(GrouperTransaction grouperTransaction, GrouperCommitType grouperCommitType)
          call this to commit a transaction
 boolean transactionRollback(GrouperTransaction grouperTransaction, GrouperRollbackType grouperRollbackType)
          call this to rollback a transaction
 

Method Detail

transactionCallback

Object transactionCallback(GrouperTransactionType grouperTransactionType,
                           GrouperTransactionHandler grouperTransactionHandler,
                           GrouperTransaction grouperTransaction)
                           throws GrouperDAOException
call this to send a callback for the grouper methods. This shouldnt be called directly, it should filter through the GrouperTransaction.callback... method

Parameters:
grouperTransactionType - is enum of how the transaction should work.
grouperTransactionHandler - will get the callback
grouperTransaction - is the state of the transaction, can hold payload
Returns:
the object returned from the callback
Throws:
GrouperDAOException - if something wrong inside, its whatever your methods throw

transactionCommit

boolean transactionCommit(GrouperTransaction grouperTransaction,
                          GrouperCommitType grouperCommitType)
call this to commit a transaction

Parameters:
grouperCommitType - type of commit (now or only under certain circumstances?)
grouperTransaction - is the state of the transaction, can hold payload
Returns:
if committed

transactionRollback

boolean transactionRollback(GrouperTransaction grouperTransaction,
                            GrouperRollbackType grouperRollbackType)
call this to rollback a transaction

Parameters:
grouperRollbackType - type of commit (now or only under certain circumstances?)
grouperTransaction - is the state of the transaction, can hold payload
Returns:
if rolled back

transactionActive

boolean transactionActive(GrouperTransaction grouperTransaction)
call this to see if a transaction is active (exists and not committed or rolledback)

Parameters:
grouperTransaction - is the state of the transaction, can hold payload
Returns:
the object returned from the callback