public class SunOneManagedRuntime extends AbstractManagedRuntime implements ManagedRuntime
ManagedRuntime
implementation for SunONE.Constructor and Description |
---|
SunOneManagedRuntime() |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getRollbackCause()
Returns the Throwable that caused the current transaction to be
marked for rollback, provided that any exists.
|
javax.transaction.TransactionManager |
getTransactionManager()
Return the TransactionManager for the managed runtime.
|
void |
setRollbackOnly(java.lang.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 java.lang.ClassNotFoundException, java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
public javax.transaction.TransactionManager getTransactionManager() throws java.lang.Exception
ManagedRuntime
getTransactionManager
in interface ManagedRuntime
java.lang.Exception
public void setRollbackOnly(java.lang.Throwable cause) throws java.lang.Exception
ManagedRuntime
setRollbackOnly
in interface ManagedRuntime
cause
- the Throwable that caused the transaction to be
marked for rollback, or null of none is knownjava.lang.Exception
public java.lang.Throwable getRollbackCause() throws java.lang.Exception
ManagedRuntime
getRollbackCause
in interface ManagedRuntime
java.lang.Exception
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.