org.apache.openejb.core.cmp.jpa
Class JpaCmpEngine

java.lang.Object
  extended by org.apache.openejb.core.cmp.jpa.JpaCmpEngine
All Implemented Interfaces:
CmpEngine

public class JpaCmpEngine
extends java.lang.Object
implements CmpEngine


Field Summary
static java.lang.String CMP_PERSISTENCE_CONTEXT_REF_NAME
           
protected  java.lang.Object entityManagerListener
          Listener added to entity managers.
 
Constructor Summary
JpaCmpEngine(CmpCallback cmpCallback)
           
 
Method Summary
 java.lang.Object createBean(javax.ejb.EntityBean bean, ThreadContext callContext)
           
 void deploy(CoreDeploymentInfo deploymentInfo)
           
 int executeUpdateQuery(CoreDeploymentInfo deploymentInfo, 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(CoreDeploymentInfo deploymentInfo, 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(CoreDeploymentInfo deploymentInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

JpaCmpEngine

public JpaCmpEngine(CmpCallback cmpCallback)
Method Detail

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.