org.apache.openejb.core.cmp.jpa
Class JpaCmpEngine
java.lang.Object
org.apache.openejb.core.cmp.jpa.JpaCmpEngine
- All Implemented Interfaces:
- CmpEngine
public class JpaCmpEngine
- extends java.lang.Object
- implements CmpEngine
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CMP_PERSISTENCE_CONTEXT_REF_NAME
public static final java.lang.String CMP_PERSISTENCE_CONTEXT_REF_NAME
- See Also:
- Constant Field Values
entityManagerListener
protected java.lang.Object entityManagerListener
- Listener added to entity managers.
JpaCmpEngine
public JpaCmpEngine(CmpCallback cmpCallback)
deploy
public void deploy(CoreDeploymentInfo deploymentInfo)
throws OpenEJBException
- Specified by:
deploy
in interface CmpEngine
- Throws:
OpenEJBException
undeploy
public void undeploy(CoreDeploymentInfo deploymentInfo)
throws OpenEJBException
- Specified by:
undeploy
in interface CmpEngine
- Throws:
OpenEJBException
createBean
public java.lang.Object createBean(javax.ejb.EntityBean bean,
ThreadContext callContext)
throws javax.ejb.CreateException
- Specified by:
createBean
in interface CmpEngine
- Throws:
javax.ejb.CreateException
loadBean
public java.lang.Object loadBean(ThreadContext callContext,
java.lang.Object primaryKey)
- Specified by:
loadBean
in interface CmpEngine
storeBeanIfNoTx
public void storeBeanIfNoTx(ThreadContext callContext,
java.lang.Object bean)
- Specified by:
storeBeanIfNoTx
in interface CmpEngine
removeBean
public void removeBean(ThreadContext callContext)
- Specified by:
removeBean
in interface CmpEngine
queryBeans
public java.util.List<java.lang.Object> queryBeans(ThreadContext callContext,
java.lang.reflect.Method queryMethod,
java.lang.Object[] args)
throws javax.ejb.FinderException
- Specified by:
queryBeans
in interface CmpEngine
- Throws:
javax.ejb.FinderException
queryBeans
public java.util.List<java.lang.Object> queryBeans(CoreDeploymentInfo deploymentInfo,
java.lang.String signature,
java.lang.Object[] args)
throws javax.ejb.FinderException
- Specified by:
queryBeans
in interface CmpEngine
- Throws:
javax.ejb.FinderException
executeUpdateQuery
public int executeUpdateQuery(CoreDeploymentInfo deploymentInfo,
java.lang.String signature,
java.lang.Object[] args)
throws javax.ejb.FinderException
- Specified by:
executeUpdateQuery
in interface CmpEngine
- Throws:
javax.ejb.FinderException
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.