|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.redstarhackers.jta.TransactionEnclosure
TODO Class summary sentence. Class documentation.
| Constructor Summary | |
TransactionEnclosure()
Default constructor. |
|
TransactionEnclosure(com.redstarhackers.func.Function func)
Constructs an enclosure to enclose the specified function. |
|
| Method Summary | |
void |
addApplicationExceptionRollbackType(java.lang.Class classObj)
Add a com.redstarhackers.exception.ApplicationException subtype that will trigger an automatic rollback if automatic rollback is enabled. |
void |
execute()
|
java.util.Set |
getApplicationExceptionRollbackTypes()
Get the specified com.redstarhackers.exception.ApplicationException subtypes that will trigger an automatic rollback if automatic rollback is enabled. |
com.redstarhackers.func.Function |
getEnclosed()
Return the enclosed function. |
java.lang.Object |
getResult()
Get the result of execution for the enclosed function, if any. |
javax.transaction.UserTransaction |
getUserTransaction()
Return the user transaction used by this enclosure. |
boolean |
isApplicationExceptionRollbackEnabled()
Return whether rollback will happen automatically when an com.redstarhackers.exception.ApplicationException occurs. |
void |
setApplicationExceptionRollbackEnabled(boolean val)
Set whether or not a rollback will happen automatically when an com.redstarhackers.exception.ApplicationException occurs. |
void |
setEnclosed(com.redstarhackers.func.Function func)
Set the function this enclosure encloses. |
void |
setUserTransaction(javax.transaction.UserTransaction usertx)
Set the user transaction used by this enclosure. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TransactionEnclosure()
public TransactionEnclosure(com.redstarhackers.func.Function func)
func - the function to enclose.| Method Detail |
public javax.transaction.UserTransaction getUserTransaction()
public void setUserTransaction(javax.transaction.UserTransaction usertx)
usertx - the new transaction to use (cannot be null).public boolean isApplicationExceptionRollbackEnabled()
public void setApplicationExceptionRollbackEnabled(boolean val)
val - the new value.public java.util.Set getApplicationExceptionRollbackTypes()
public void addApplicationExceptionRollbackType(java.lang.Class classObj)
classObj - the subtype that will trigger a rollback.public com.redstarhackers.func.Function getEnclosed()
public void setEnclosed(com.redstarhackers.func.Function func)
func - the new function instance (cannot be null).public java.lang.Object getResult()
getResult in interface com.redstarhackers.func.Function
public void execute()
throws com.redstarhackers.exception.ApplicationException,
com.redstarhackers.exception.SystemException
execute in interface com.redstarhackers.func.Functioncom.redstarhackers.exception.ApplicationException
com.redstarhackers.exception.SystemException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||