|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.ee.AutomaticManagedRuntime
public class AutomaticManagedRuntime
Implementation of the ManagedRuntime
interface that searches
through a set of known JNDI locations and method invocations to locate the
appropriate mechanism for obtaining a TransactionManager.
Built in support is provided for the following Application Servers:
Constructor Summary | |
---|---|
AutomaticManagedRuntime()
|
Method Summary | |
---|---|
void |
endConfiguration()
Invoked upon completion of bean property configuration for this object. |
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 |
setConfiguration(Configuration conf)
Invoked prior to setting bean properties. |
void |
setRollbackOnly(Throwable cause)
Sets the rollback only flag on the current transaction. |
void |
startConfiguration()
Invoked before bean property configuration is begun on this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AutomaticManagedRuntime()
Method Detail |
---|
public TransactionManager getTransactionManager() throws Exception
ManagedRuntime
getTransactionManager
in interface ManagedRuntime
Exception
public void setConfiguration(Configuration conf)
Configurable
setConfiguration
in interface Configurable
public void startConfiguration()
Configurable
startConfiguration
in interface Configurable
public void endConfiguration()
Configurable
endConfiguration
in interface Configurable
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 known
Exception
public Throwable getRollbackCause() throws Exception
ManagedRuntime
getRollbackCause
in interface ManagedRuntime
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |