org.jboss.resource.connectionmanager
Class CachedConnectionInterceptor

java.lang.Object
  extended by org.jboss.ejb.plugins.AbstractInterceptor
      extended by org.jboss.resource.connectionmanager.CachedConnectionInterceptor
All Implemented Interfaces:
org.jboss.ejb.AllowedOperationsFlags, org.jboss.ejb.ContainerPlugin, org.jboss.ejb.EntityPersistenceManager, org.jboss.ejb.Interceptor, org.jboss.system.Service

public class CachedConnectionInterceptor
extends org.jboss.ejb.plugins.AbstractInterceptor
implements org.jboss.ejb.EntityPersistenceManager

CachedConnectionInterceptor

Version:
$Revision: 1.17.2.5 $
Author:
David Jencks, Erwin Guib, Adrian Brock

Field Summary
 
Fields inherited from class org.jboss.ejb.plugins.AbstractInterceptor
nextInterceptor
 
Fields inherited from interface org.jboss.ejb.AllowedOperationsFlags
IN_AFTER_BEGIN, IN_AFTER_COMPLETION, IN_BEFORE_COMPLETION, IN_BUSINESS_METHOD, IN_EJB_ACTIVATE, IN_EJB_CREATE, IN_EJB_FIND, IN_EJB_HOME, IN_EJB_LOAD, IN_EJB_PASSIVATE, IN_EJB_POST_CREATE, IN_EJB_REMOVE, IN_EJB_STORE, IN_EJB_TIMEOUT, IN_INTERCEPTOR_METHOD, IN_SERVICE_ENDPOINT_METHOD, IN_SET_ENTITY_CONTEXT, IN_SET_MESSAGE_DRIVEN_CONTEXT, IN_SET_SESSION_CONTEXT, IN_UNSET_ENTITY_CONTEXT, NOT_ALLOWED
 
Constructor Summary
CachedConnectionInterceptor()
           
 
Method Summary
 void activateEntity(org.jboss.ejb.EntityEnterpriseContext instance)
           
 Object createBeanClassInstance()
           
 void createEntity(Method m, Object[] args, org.jboss.ejb.EntityEnterpriseContext instance)
           
 Collection findEntities(Method finderMethod, Object[] args, org.jboss.ejb.EntityEnterpriseContext instance, org.jboss.ejb.GenericEntityObjectFactory factory)
           
 Object findEntity(Method finderMethod, Object[] args, org.jboss.ejb.EntityEnterpriseContext instance, org.jboss.ejb.GenericEntityObjectFactory factory)
           
 org.jboss.ejb.Container getContainer()
           
 org.jboss.ejb.EntityPersistenceManager getDelegatePersistenceManager()
          Return the real EntityPersistenceManager to which this interceptor delegates.
 Object invoke(org.jboss.invocation.Invocation mi)
           
 void invokeEjbStore(org.jboss.ejb.EntityEnterpriseContext ctx)
           
 Object invokeHome(org.jboss.invocation.Invocation mi)
           
 boolean isModified(org.jboss.ejb.EntityEnterpriseContext ctx)
           
 boolean isStoreRequired(org.jboss.ejb.EntityEnterpriseContext instance)
           
 void loadEntity(org.jboss.ejb.EntityEnterpriseContext instance)
           
 void passivateEntity(org.jboss.ejb.EntityEnterpriseContext instance)
           
 void postCreateEntity(Method m, Object[] args, org.jboss.ejb.EntityEnterpriseContext instance)
           
 void removeEntity(org.jboss.ejb.EntityEnterpriseContext instance)
           
 void setContainer(org.jboss.ejb.Container container)
           
 void start()
           
 void stop()
           
 void storeEntity(org.jboss.ejb.EntityEnterpriseContext ctx)
           
 
Methods inherited from class org.jboss.ejb.plugins.AbstractInterceptor
create, destroy, getNext, isAppException, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.Service
create, destroy
 

Constructor Detail

CachedConnectionInterceptor

public CachedConnectionInterceptor()
                            throws Exception
Throws:
Exception
Method Detail

start

public void start()
           throws Exception
Specified by:
start in interface org.jboss.system.Service
Overrides:
start in class org.jboss.ejb.plugins.AbstractInterceptor
Throws:
Exception

stop

public void stop()
Specified by:
stop in interface org.jboss.system.Service
Overrides:
stop in class org.jboss.ejb.plugins.AbstractInterceptor

invoke

public Object invoke(org.jboss.invocation.Invocation mi)
              throws Exception
Specified by:
invoke in interface org.jboss.ejb.Interceptor
Overrides:
invoke in class org.jboss.ejb.plugins.AbstractInterceptor
Throws:
Exception

invokeHome

public Object invokeHome(org.jboss.invocation.Invocation mi)
                  throws Exception
Specified by:
invokeHome in interface org.jboss.ejb.Interceptor
Overrides:
invokeHome in class org.jboss.ejb.plugins.AbstractInterceptor
Throws:
Exception

setContainer

public void setContainer(org.jboss.ejb.Container container)
Specified by:
setContainer in interface org.jboss.ejb.ContainerPlugin
Overrides:
setContainer in class org.jboss.ejb.plugins.AbstractInterceptor

getContainer

public org.jboss.ejb.Container getContainer()
Overrides:
getContainer in class org.jboss.ejb.plugins.AbstractInterceptor

createBeanClassInstance

public Object createBeanClassInstance()
                               throws Exception
Specified by:
createBeanClassInstance in interface org.jboss.ejb.EntityPersistenceManager
Throws:
Exception

createEntity

public void createEntity(Method m,
                         Object[] args,
                         org.jboss.ejb.EntityEnterpriseContext instance)
                  throws Exception
Specified by:
createEntity in interface org.jboss.ejb.EntityPersistenceManager
Throws:
Exception

postCreateEntity

public void postCreateEntity(Method m,
                             Object[] args,
                             org.jboss.ejb.EntityEnterpriseContext instance)
                      throws Exception
Specified by:
postCreateEntity in interface org.jboss.ejb.EntityPersistenceManager
Throws:
Exception

findEntity

public Object findEntity(Method finderMethod,
                         Object[] args,
                         org.jboss.ejb.EntityEnterpriseContext instance,
                         org.jboss.ejb.GenericEntityObjectFactory factory)
                  throws Exception
Specified by:
findEntity in interface org.jboss.ejb.EntityPersistenceManager
Throws:
Exception

findEntities

public Collection findEntities(Method finderMethod,
                               Object[] args,
                               org.jboss.ejb.EntityEnterpriseContext instance,
                               org.jboss.ejb.GenericEntityObjectFactory factory)
                        throws Exception
Specified by:
findEntities in interface org.jboss.ejb.EntityPersistenceManager
Throws:
Exception

activateEntity

public void activateEntity(org.jboss.ejb.EntityEnterpriseContext instance)
                    throws RemoteException
Specified by:
activateEntity in interface org.jboss.ejb.EntityPersistenceManager
Throws:
RemoteException

loadEntity

public void loadEntity(org.jboss.ejb.EntityEnterpriseContext instance)
                throws RemoteException
Specified by:
loadEntity in interface org.jboss.ejb.EntityPersistenceManager
Throws:
RemoteException

isStoreRequired

public boolean isStoreRequired(org.jboss.ejb.EntityEnterpriseContext instance)
                        throws Exception
Specified by:
isStoreRequired in interface org.jboss.ejb.EntityPersistenceManager
Throws:
Exception

isModified

public boolean isModified(org.jboss.ejb.EntityEnterpriseContext ctx)
                   throws Exception
Specified by:
isModified in interface org.jboss.ejb.EntityPersistenceManager
Throws:
Exception

storeEntity

public void storeEntity(org.jboss.ejb.EntityEnterpriseContext ctx)
                 throws RemoteException
Specified by:
storeEntity in interface org.jboss.ejb.EntityPersistenceManager
Throws:
RemoteException

invokeEjbStore

public void invokeEjbStore(org.jboss.ejb.EntityEnterpriseContext ctx)
                    throws RemoteException
Specified by:
invokeEjbStore in interface org.jboss.ejb.EntityPersistenceManager
Throws:
RemoteException

passivateEntity

public void passivateEntity(org.jboss.ejb.EntityEnterpriseContext instance)
                     throws RemoteException
Specified by:
passivateEntity in interface org.jboss.ejb.EntityPersistenceManager
Throws:
RemoteException

removeEntity

public void removeEntity(org.jboss.ejb.EntityEnterpriseContext instance)
                  throws RemoteException,
                         javax.ejb.RemoveException
Specified by:
removeEntity in interface org.jboss.ejb.EntityPersistenceManager
Throws:
RemoteException
javax.ejb.RemoveException

getDelegatePersistenceManager

public org.jboss.ejb.EntityPersistenceManager getDelegatePersistenceManager()
Return the real EntityPersistenceManager to which this interceptor delegates.

Returns:
the real EntityPersistenceManager


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.