|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.ejb.EJBImplHelper
public class EJBImplHelper
Provides helper methods for a Forte for Java implementation with the application server specific information in the distributed transaction environment. Calls corresponding methods on the registered class which implements EJBHelper interface.
Constructor Summary | |
---|---|
EJBImplHelper()
|
Method Summary | |
---|---|
static void |
delistBeforeCompletion(java.lang.Object im)
Called a non-managed environment at the end of the Transaction.beforeCompletion() to de-register the component with the app server if necessary. |
static java.lang.Object |
enlistBeforeCompletion(java.lang.Object component)
Called at the beginning of the Transaction.beforeCompletion() to register the component with the app server if necessary. |
static javax.transaction.Transaction |
getTransaction()
Returns Transaction instance that can be used to register synchronizations. |
static javax.transaction.UserTransaction |
getUserTransaction()
Returns the UserTransaction associated with the calling thread. |
static boolean |
isManaged()
Identifies the managed environment behavior. |
static void |
registerEJBHelper(EJBHelper h)
Register class that implements EJBHelper interface Should be called by a static method at class initialization time. |
static javax.jdo.PersistenceManagerFactory |
replacePersistenceManagerFactory(javax.jdo.PersistenceManagerFactory pmf)
Returns the hashed instance of internal PersistenceManagerFactory that compares equal to the newly created instance or the instance itself if it is not found. |
static int |
translateStatus(int st)
Translates local representation of the Transaction Status to javax.transaction.Status value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EJBImplHelper()
Method Detail |
---|
public static void registerEJBHelper(EJBHelper h)
h
- application server specific implemetation of the
EJBHelper interface.public static javax.transaction.Transaction getTransaction()
EJBHelper.getTransaction()
public static javax.transaction.UserTransaction getUserTransaction()
EJBHelper.getUserTransaction()
public static boolean isManaged()
public static int translateStatus(int st)
st
- Status value
EJBHelper.translateStatus(int st)
public static javax.jdo.PersistenceManagerFactory replacePersistenceManagerFactory(javax.jdo.PersistenceManagerFactory pmf)
pmf
- PersistenceManagerFactory instance to be replaced
EJBHelper.replacePersistenceManagerFactory(
PersistenceManagerFactory pmf)
public static java.lang.Object enlistBeforeCompletion(java.lang.Object component)
component
- an array of Objects
EJBHelper.enlistBeforeCompletion(Object component)
public static void delistBeforeCompletion(java.lang.Object im)
im
- implementation-specific ObjectEJBHelper.delistBeforeCompletion(Object im)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |