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 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 String CMP_PERSISTENCE_CONTEXT_REF_NAME
- See Also:
- Constant Field Values
entityManagerListener
protected Object entityManagerListener
- Listener added to entity managers.
JpaCmpEngine
public JpaCmpEngine(CmpCallback cmpCallback,
TransactionManager transactionManager,
TransactionSynchronizationRegistry synchronizationRegistry)
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 Object createBean(javax.ejb.EntityBean bean,
ThreadContext callContext)
throws javax.ejb.CreateException
- Specified by:
createBean
in interface CmpEngine
- Throws:
javax.ejb.CreateException
loadBean
public Object loadBean(ThreadContext callContext,
Object primaryKey)
- Specified by:
loadBean
in interface CmpEngine
storeBeanIfNoTx
public void storeBeanIfNoTx(ThreadContext callContext,
Object bean)
- Specified by:
storeBeanIfNoTx
in interface CmpEngine
removeBean
public void removeBean(ThreadContext callContext)
- Specified by:
removeBean
in interface CmpEngine
queryBeans
public List<Object> queryBeans(ThreadContext callContext,
Method queryMethod,
Object[] args)
throws javax.ejb.FinderException
- Specified by:
queryBeans
in interface CmpEngine
- Throws:
javax.ejb.FinderException
queryBeans
public List<Object> queryBeans(CoreDeploymentInfo deploymentInfo,
String signature,
Object[] args)
throws javax.ejb.FinderException
- Specified by:
queryBeans
in interface CmpEngine
- Throws:
javax.ejb.FinderException
executeUpdateQuery
public int executeUpdateQuery(CoreDeploymentInfo deploymentInfo,
String signature,
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.