|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.ejb.plugins.AbstractInterceptor (src)
org.jboss.resource.connectionmanager.CachedConnectionInterceptor
CachedConnectionInterceptor.java Created: Sat Jan 12 01:22:06 2002
| Field Summary |
| Fields inherited from class org.jboss.ejb.plugins.AbstractInterceptor (src) |
nextInterceptor |
| Constructor Summary | |
CachedConnectionInterceptor()
|
|
| Method Summary | |
void |
activateEntity(EntityEnterpriseContext (src) instance)
This method is called when an entity shall be activated. |
void |
create()
create the service, do expensive operations etc |
java.lang.Object |
createBeanClassInstance()
Returns a new instance of the bean class or a subclass of the bean class. |
void |
createEntity(java.lang.reflect.Method m,
java.lang.Object[] args,
EntityEnterpriseContext (src) instance)
This method is called whenever an entity is to be created. |
void |
destroy()
destroy the service, tear down |
java.util.Collection |
findEntities(java.lang.reflect.Method finderMethod,
java.lang.Object[] args,
EntityEnterpriseContext (src) instance,
GenericEntityObjectFactory (src) factory)
This method is called when collections of entities are to be found. |
java.lang.Object |
findEntity(java.lang.reflect.Method finderMethod,
java.lang.Object[] args,
EntityEnterpriseContext (src) instance,
GenericEntityObjectFactory (src) factory)
This method is called when single entities are to be found. |
Container (src) |
getContainer()
|
java.lang.Object |
invoke(Invocation (src) mi)
??? |
void |
invokeEjbStore(EntityEnterpriseContext (src) ctx)
Invokes ejbStore on the instance. |
java.lang.Object |
invokeHome(Invocation (src) mi)
??? |
boolean |
isModified(EntityEnterpriseContext (src) ctx)
This method is used to determined whether the instance was modified. |
boolean |
isStoreRequired(EntityEnterpriseContext (src) instance)
This method is used to determine if an entity should be stored. |
void |
loadEntity(EntityEnterpriseContext (src) instance)
This method is called whenever an entity shall be load from the underlying storage. |
void |
passivateEntity(EntityEnterpriseContext (src) instance)
This method is called when an entity shall be passivate. |
void |
postCreateEntity(java.lang.reflect.Method m,
java.lang.Object[] args,
EntityEnterpriseContext (src) instance)
This method is called whenever an entity is to be created. |
void |
removeEntity(EntityEnterpriseContext (src) instance)
This method is called when an entity shall be removed from the underlying storage. |
void |
setContainer(Container (src) container)
This callback is set by the container so that the plugin may access it |
void |
start()
start the service, create is already called |
void |
stop()
stop the service |
void |
storeEntity(EntityEnterpriseContext (src) ctx)
This method is called whenever an entity shall be stored to the underlying storage. |
| Methods inherited from class org.jboss.ejb.plugins.AbstractInterceptor (src) |
getNext, setNext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CachedConnectionInterceptor()
throws java.lang.Exception
| Method Detail |
public void start()
throws java.lang.Exception
Service (src)
start in interface Service (src) start in class AbstractInterceptor (src) java.lang.Exception - public void stop()
Service (src)
stop in interface Service (src) stop in class AbstractInterceptor (src) public void destroy()
Service (src)
destroy in interface Service (src) destroy in class AbstractInterceptor (src)
public void create()
throws java.lang.Exception
Service (src)
create in interface Service (src) create in class AbstractInterceptor (src) java.lang.Exception -
public java.lang.Object invoke(Invocation (src) mi)
throws java.lang.Exception
Interceptor (src)
invoke in interface Interceptor (src) invoke in class AbstractInterceptor (src) java.lang.Exception -
public java.lang.Object invokeHome(Invocation (src) mi)
throws java.lang.Exception
Interceptor (src)
invokeHome in interface Interceptor (src) invokeHome in class AbstractInterceptor (src) java.lang.Exception - public void setContainer(Container (src) container)
ContainerPlugin (src)
setContainer in interface ContainerPlugin (src) setContainer in class AbstractInterceptor (src) public Container (src) getContainer()
getContainer in class AbstractInterceptor (src)
public java.lang.Object createBeanClassInstance()
throws java.lang.Exception
createBeanClassInstance in interface EntityPersistenceManager (src) java.lang.Exception
public void createEntity(java.lang.reflect.Method m,
java.lang.Object[] args,
EntityEnterpriseContext (src) instance)
throws java.lang.Exception
createEntity in interface EntityPersistenceManager (src) m - the create method in the home interface that was
calledargs - any create parametersinstance - the instance being used for this create call
java.lang.Exception
public void postCreateEntity(java.lang.reflect.Method m,
java.lang.Object[] args,
EntityEnterpriseContext (src) instance)
throws java.lang.Exception
EntityPersistenceManager (src)
postCreateEntity in interface EntityPersistenceManager (src) m - the create method in the home interface that was
calledargs - any create parametersinstance - the instance being used for this create call
java.lang.Exception
public java.lang.Object findEntity(java.lang.reflect.Method finderMethod,
java.lang.Object[] args,
EntityEnterpriseContext (src) instance,
GenericEntityObjectFactory (src) factory)
throws java.lang.Exception
findEntity in interface EntityPersistenceManager (src) finderMethod - the find method in the home interface that was
calledargs - any finder parametersinstance - the instance to use for the finder call
java.lang.Exception
public java.util.Collection findEntities(java.lang.reflect.Method finderMethod,
java.lang.Object[] args,
EntityEnterpriseContext (src) instance,
GenericEntityObjectFactory (src) factory)
throws java.lang.Exception
findEntities in interface EntityPersistenceManager (src) finderMethod - the find method in the home interface that was
calledargs - any finder parametersinstance - the instance to use for the finder call
java.lang.Exception
public void activateEntity(EntityEnterpriseContext (src) instance)
throws java.rmi.RemoteException
activateEntity in interface EntityPersistenceManager (src) instance - the instance to use for the activation
java.rmi.RemoteException - thrown if some system exception occurs
public void loadEntity(EntityEnterpriseContext (src) instance)
throws java.rmi.RemoteException
loadEntity in interface EntityPersistenceManager (src) instance - the instance to synchronize
java.rmi.RemoteException - thrown if some system exception occurs
public boolean isStoreRequired(EntityEnterpriseContext (src) instance)
throws java.lang.Exception
isStoreRequired in interface EntityPersistenceManager (src) instance - the instance to check
java.lang.Exception - thrown if some system exception occurs
public boolean isModified(EntityEnterpriseContext (src) ctx)
throws java.lang.Exception
EntityPersistenceManager (src)
isModified in interface EntityPersistenceManager (src) ctx -
java.lang.Exception
public void storeEntity(EntityEnterpriseContext (src) ctx)
throws java.rmi.RemoteException
storeEntity in interface EntityPersistenceManager (src) ctx - the instance to synchronize
java.rmi.RemoteException - thrown if some system exception occurs
public void invokeEjbStore(EntityEnterpriseContext (src) ctx)
throws java.rmi.RemoteException
EntityPersistenceManager (src)
invokeEjbStore in interface EntityPersistenceManager (src) ctx -
java.rmi.RemoteException
public void passivateEntity(EntityEnterpriseContext (src) instance)
throws java.rmi.RemoteException
passivateEntity in interface EntityPersistenceManager (src) instance - the instance to passivate
java.rmi.RemoteException - thrown if some system exception occurs
public void removeEntity(EntityEnterpriseContext (src) instance)
throws java.rmi.RemoteException,
RemoveException (src)
removeEntity in interface EntityPersistenceManager (src) instance - the instance to remove
java.rmi.RemoteException - thrown if some system exception occurs
RemoveException (src) - thrown if the instance could not be removed
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||