public class SunOneManagedRuntime extends AbstractManagedRuntime implements ManagedRuntime
ManagedRuntime
implementation for SunONE.Constructor and Description |
---|
SunOneManagedRuntime() |
Modifier and Type | Method and Description |
---|---|
Throwable |
getRollbackCause()
Returns the Throwable that caused the current transaction to be
marked for rollback, provided that any exists.
|
TransactionManager |
getTransactionManager()
Return the TransactionManager for the managed runtime.
|
void |
setRollbackOnly(Throwable cause)
Sets the rollback only flag on the current transaction.
|
doNonTransactionalWork, getTransactionKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doNonTransactionalWork, getTransactionKey
public SunOneManagedRuntime() throws ClassNotFoundException, NoSuchMethodException
public TransactionManager getTransactionManager() throws Exception
ManagedRuntime
getTransactionManager
in interface ManagedRuntime
Exception
public void setRollbackOnly(Throwable cause) throws Exception
ManagedRuntime
setRollbackOnly
in interface ManagedRuntime
cause
- the Throwable that caused the transaction to be
marked for rollback, or null of none is knownException
public Throwable getRollbackCause() throws Exception
ManagedRuntime
getRollbackCause
in interface ManagedRuntime
Exception
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.