Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CMP_PERSISTENCE_CONTEXT_REF_NAME |
protected java.lang.Object |
entityManagerListener
Listener added to entity managers.
|
Constructor and Description |
---|
JpaCmpEngine(CmpCallback cmpCallback) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createBean(EntityBean bean,
ThreadContext callContext) |
void |
deploy(BeanContext beanContext) |
int |
executeUpdateQuery(BeanContext beanContext,
java.lang.String signature,
java.lang.Object[] args) |
java.lang.Object |
loadBean(ThreadContext callContext,
java.lang.Object primaryKey) |
java.util.List<java.lang.Object> |
queryBeans(BeanContext beanContext,
java.lang.String signature,
java.lang.Object[] args) |
java.util.List<java.lang.Object> |
queryBeans(ThreadContext callContext,
java.lang.reflect.Method queryMethod,
java.lang.Object[] args) |
void |
removeBean(ThreadContext callContext) |
void |
storeBeanIfNoTx(ThreadContext callContext,
java.lang.Object bean) |
void |
undeploy(BeanContext beanContext) |
public static final java.lang.String CMP_PERSISTENCE_CONTEXT_REF_NAME
protected java.lang.Object entityManagerListener
public JpaCmpEngine(CmpCallback cmpCallback)
public void deploy(BeanContext beanContext) throws OpenEJBException
deploy
in interface CmpEngine
OpenEJBException
public void undeploy(BeanContext beanContext) throws OpenEJBException
undeploy
in interface CmpEngine
OpenEJBException
public java.lang.Object createBean(EntityBean bean, ThreadContext callContext) throws CreateException
createBean
in interface CmpEngine
CreateException
public java.lang.Object loadBean(ThreadContext callContext, java.lang.Object primaryKey)
public void storeBeanIfNoTx(ThreadContext callContext, java.lang.Object bean)
storeBeanIfNoTx
in interface CmpEngine
public void removeBean(ThreadContext callContext)
removeBean
in interface CmpEngine
public java.util.List<java.lang.Object> queryBeans(ThreadContext callContext, java.lang.reflect.Method queryMethod, java.lang.Object[] args) throws FinderException
queryBeans
in interface CmpEngine
FinderException
public java.util.List<java.lang.Object> queryBeans(BeanContext beanContext, java.lang.String signature, java.lang.Object[] args) throws FinderException
queryBeans
in interface CmpEngine
FinderException
public int executeUpdateQuery(BeanContext beanContext, java.lang.String signature, java.lang.Object[] args) throws FinderException
executeUpdateQuery
in interface CmpEngine
FinderException