|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.internet2.middleware.grouper.hibernate.GrouperTransaction
public class GrouperTransaction
Use this class to make a transaction around grouper operations (can also use HibernateSession, thoguh if hib it will throw exceptions)
| Constructor Summary | |
|---|---|
GrouperTransaction()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
_internal_getPayload()
the dao can store some state here |
void |
_internal_setPayload(java.lang.Object payload)
the dao can store some state here |
static java.lang.Object |
callbackGrouperTransaction(GrouperTransactionHandler grouperTransactionHandler)
call this to establish a transaction demarcation for the GrouperTransactionHandler business logic. |
static java.lang.Object |
callbackGrouperTransaction(GrouperTransactionType grouperTransactionType,
GrouperTransactionHandler grouperTransactionHandler)
call this to establish a transaction demarcation for the GrouperTransactionHandler business logic |
boolean |
commit(GrouperCommitType grouperCommitType)
commit a transaction (perhaps, based on type) |
boolean |
isCachingEnabled()
provide ability to turn off all caching for this session |
boolean |
isTransactionActive()
see if a transaction has an open transaction (that hasnt been committed or rolled back yet) |
boolean |
rollback(GrouperRollbackType grouperRollbackType)
rollback a transaction (perhaps, based on type) |
void |
setCachingEnabled(boolean enabledCaching1)
provide ability to turn off all caching for this session |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrouperTransaction()
| Method Detail |
|---|
public boolean isCachingEnabled()
public void setCachingEnabled(boolean enabledCaching1)
enabledCaching1 - the enabledCaching to setpublic java.lang.Object _internal_getPayload()
public void _internal_setPayload(java.lang.Object payload)
payload - the payload to set
public static java.lang.Object callbackGrouperTransaction(GrouperTransactionType grouperTransactionType,
GrouperTransactionHandler grouperTransactionHandler)
grouperTransactionType - is enum of how the transaction should work.grouperTransactionHandler - will get the callback
java.lang.RuntimeException - if something wrong inside, not sure which exceptions... its
whatever your methods throwpublic static java.lang.Object callbackGrouperTransaction(GrouperTransactionHandler grouperTransactionHandler)
grouperTransactionHandler - will get the callback
java.lang.RuntimeException - if something wrong inside, not sure which exceptions... its
whatever your methods throwpublic boolean commit(GrouperCommitType grouperCommitType)
grouperCommitType -
public boolean rollback(GrouperRollbackType grouperRollbackType)
grouperRollbackType -
public boolean isTransactionActive()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||