Interface TransactionDAO
- All Known Implementing Classes:
Hib3TransactionDAO
public interface TransactionDAO
methods for dealing with transactions
-
Method Summary
Modifier and TypeMethodDescriptionboolean
transactionActive
(GrouperTransaction grouperTransaction) call this to see if a transaction is active (exists and not committed or rolledback)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 transactionboolean
transactionRollback
(GrouperTransaction grouperTransaction, GrouperRollbackType grouperRollbackType) call this to rollback a transaction
-
Method Details
-
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 callbackgrouperTransaction
- 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
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
-