public class EJBImplHelper
extends java.lang.Object
Constructor and Description |
---|
EJBImplHelper() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 valueEJBHelper.translateStatus(int st)
public static javax.jdo.PersistenceManagerFactory replacePersistenceManagerFactory(javax.jdo.PersistenceManagerFactory pmf)
pmf
- PersistenceManagerFactory instance to be replacedEJBHelper.replacePersistenceManagerFactory(
PersistenceManagerFactory pmf)
public static java.lang.Object enlistBeforeCompletion(java.lang.Object component)
component
- an array of ObjectsEJBHelper.enlistBeforeCompletion(Object component)
public static void delistBeforeCompletion(java.lang.Object im)
im
- implementation-specific ObjectEJBHelper.delistBeforeCompletion(Object im)
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.