public class Hib3TransactionDAO extends Object implements TransactionDAO
| Constructor and Description |
|---|
Hib3TransactionDAO() |
| Modifier and Type | Method and Description |
|---|---|
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)
any runtime exceptions will propagate to the outer method call
|
boolean |
transactionCommit(GrouperTransaction grouperTransaction,
GrouperCommitType grouperCommitType)
call this to commit a transaction
|
boolean |
transactionRollback(GrouperTransaction grouperTransaction,
GrouperRollbackType grouperRollbackType)
call this to rollback a transaction
|
public boolean transactionActive(GrouperTransaction grouperTransaction)
TransactionDAOtransactionActive in interface TransactionDAOgrouperTransaction - is the state of the transaction, can hold payloadTransactionDAO.transactionActive(edu.internet2.middleware.grouper.hibernate.GrouperTransaction)public Object transactionCallback(GrouperTransactionType grouperTransactionType, GrouperTransactionHandler grouperTransactionHandler, GrouperTransaction grouperTransaction) throws GrouperDAOException
transactionCallback in interface TransactionDAOgrouperTransactionType - is enum of how the transaction should work.grouperTransactionHandler - will get the callbackgrouperTransaction - is the state of the transaction, can hold payloadGrouperDAOException - if something wrong inside, its
whatever your methods throwTransactionDAO.transactionCallback(edu.internet2.middleware.grouper.hibernate.GrouperTransactionType, edu.internet2.middleware.grouper.hibernate.GrouperTransactionHandler, edu.internet2.middleware.grouper.hibernate.GrouperTransaction)public boolean transactionCommit(GrouperTransaction grouperTransaction, GrouperCommitType grouperCommitType)
TransactionDAOtransactionCommit in interface TransactionDAOgrouperTransaction - is the state of the transaction, can hold payloadgrouperCommitType - type of commit (now or only under certain circumstances?)TransactionDAO.transactionCommit(edu.internet2.middleware.grouper.hibernate.GrouperTransaction, edu.internet2.middleware.grouper.hibernate.GrouperCommitType)public boolean transactionRollback(GrouperTransaction grouperTransaction, GrouperRollbackType grouperRollbackType)
TransactionDAOtransactionRollback in interface TransactionDAOgrouperTransaction - is the state of the transaction, can hold payloadgrouperRollbackType - type of commit (now or only under certain circumstances?)TransactionDAO.transactionRollback(edu.internet2.middleware.grouper.hibernate.GrouperTransaction, edu.internet2.middleware.grouper.hibernate.GrouperRollbackType)Copyright © 2016 Internet2. All rights reserved.