|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.ee.AbstractManagedRuntime
public abstract class AbstractManagedRuntime
Constructor Summary | |
---|---|
AbstractManagedRuntime()
|
Method Summary | |
---|---|
void |
doNonTransactionalWork(java.lang.Runnable runnable)
Do a unit of work which will execute outside of the current managed transaction. |
java.lang.Object |
getTransactionKey()
Returns a transaction key that can be used to associate transactions and Brokers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.openjpa.ee.ManagedRuntime |
---|
getRollbackCause, getTransactionManager, setRollbackOnly |
Constructor Detail |
---|
public AbstractManagedRuntime()
Method Detail |
---|
public java.lang.Object getTransactionKey() throws java.lang.Exception, javax.transaction.SystemException
getTransactionKey
in interface ManagedRuntime
java.lang.Exception
javax.transaction.SystemException
public void doNonTransactionalWork(java.lang.Runnable runnable) throws javax.transaction.NotSupportedException
Do a unit of work which will execute outside of the current managed transaction. The default implementation suspends the transaction prior to execution, and resumes the transaction afterwards.
doNonTransactionalWork
in interface ManagedRuntime
runnable
- The runnable wrapper for the work that will be done. The
runnable object should be fully initialized with any state
needed to execute.
javax.transaction.NotSupportedException
- if the current transaction can not be obtained, or an error
occurs when suspending or resuming the transaction.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |