Class Hib3TransactionDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3TransactionDAO
- All Implemented Interfaces:
TransactionDAO
-
Constructor Summary
-
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) any runtime exceptions will propagate to the outer method callboolean
transactionCommit
(GrouperTransaction grouperTransaction, GrouperCommitType grouperCommitType) call this to commit a transactionboolean
transactionRollback
(GrouperTransaction grouperTransaction, GrouperRollbackType grouperRollbackType) call this to rollback a transaction
-
Constructor Details
-
Hib3TransactionDAO
public Hib3TransactionDAO()
-
-
Method Details
-
transactionActive
Description copied from interface:TransactionDAO
call this to see if a transaction is active (exists and not committed or rolledback)- Specified by:
transactionActive
in interfaceTransactionDAO
- Parameters:
grouperTransaction
- is the state of the transaction, can hold payload- Returns:
- the object returned from the callback
- See Also:
-
transactionCallback
public Object transactionCallback(GrouperTransactionType grouperTransactionType, GrouperTransactionHandler grouperTransactionHandler, GrouperTransaction grouperTransaction) throws GrouperDAOException any runtime exceptions will propagate to the outer method call- Specified by:
transactionCallback
in interfaceTransactionDAO
- 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- See Also:
-
transactionCommit
public boolean transactionCommit(GrouperTransaction grouperTransaction, GrouperCommitType grouperCommitType) Description copied from interface:TransactionDAO
call this to commit a transaction- Specified by:
transactionCommit
in interfaceTransactionDAO
- Parameters:
grouperTransaction
- is the state of the transaction, can hold payloadgrouperCommitType
- type of commit (now or only under certain circumstances?)- Returns:
- if committed
- See Also:
-
transactionRollback
public boolean transactionRollback(GrouperTransaction grouperTransaction, GrouperRollbackType grouperRollbackType) Description copied from interface:TransactionDAO
call this to rollback a transaction- Specified by:
transactionRollback
in interfaceTransactionDAO
- Parameters:
grouperTransaction
- is the state of the transaction, can hold payloadgrouperRollbackType
- type of commit (now or only under certain circumstances?)- Returns:
- if rolled back
- See Also:
-