| Modifier and Type | Field and Description |
|---|---|
static String |
CMP_PERSISTENCE_CONTEXT_REF_NAME |
protected Object |
entityManagerListener
Listener added to entity managers.
|
| Constructor and Description |
|---|
JpaCmpEngine(CmpCallback cmpCallback) |
| Modifier and Type | Method and Description |
|---|---|
Object |
createBean(javax.ejb.EntityBean bean,
ThreadContext callContext) |
void |
deploy(BeanContext beanContext) |
int |
executeUpdateQuery(BeanContext beanContext,
String signature,
Object[] args) |
Object |
loadBean(ThreadContext callContext,
Object primaryKey) |
List<Object> |
queryBeans(BeanContext beanContext,
String signature,
Object[] args) |
List<Object> |
queryBeans(ThreadContext callContext,
Method queryMethod,
Object[] args) |
void |
removeBean(ThreadContext callContext) |
void |
storeBeanIfNoTx(ThreadContext callContext,
Object bean) |
void |
undeploy(BeanContext beanContext) |
public static final String CMP_PERSISTENCE_CONTEXT_REF_NAME
protected Object entityManagerListener
public JpaCmpEngine(CmpCallback cmpCallback)
public void deploy(BeanContext beanContext) throws OpenEJBException
deploy in interface CmpEngineOpenEJBExceptionpublic void undeploy(BeanContext beanContext) throws OpenEJBException
undeploy in interface CmpEngineOpenEJBExceptionpublic Object createBean(javax.ejb.EntityBean bean, ThreadContext callContext) throws javax.ejb.CreateException
createBean in interface CmpEnginejavax.ejb.CreateExceptionpublic Object loadBean(ThreadContext callContext, Object primaryKey)
public void storeBeanIfNoTx(ThreadContext callContext, Object bean)
storeBeanIfNoTx in interface CmpEnginepublic void removeBean(ThreadContext callContext)
removeBean in interface CmpEnginepublic List<Object> queryBeans(ThreadContext callContext, Method queryMethod, Object[] args) throws javax.ejb.FinderException
queryBeans in interface CmpEnginejavax.ejb.FinderExceptionpublic List<Object> queryBeans(BeanContext beanContext, String signature, Object[] args) throws javax.ejb.FinderException
queryBeans in interface CmpEnginejavax.ejb.FinderExceptionpublic int executeUpdateQuery(BeanContext beanContext, String signature, Object[] args) throws javax.ejb.FinderException
executeUpdateQuery in interface CmpEnginejavax.ejb.FinderExceptionCopyright © 1999–2014 The Apache Software Foundation. All rights reserved.