org.jboss.ejb.plugins
Class EntitySynchronizationInterceptor

java.lang.Object
  |
  +--org.jboss.ejb.plugins.AbstractInterceptor
        |
        +--org.jboss.ejb.plugins.EntitySynchronizationInterceptor
All Implemented Interfaces:
ContainerPlugin, Interceptor, Service

public class EntitySynchronizationInterceptor
extends AbstractInterceptor

This container filter takes care of EntityBean persistance. Specifically, it calls ejbStore at appropriate times Possible options: After each call On tx commit

Version:
$Revision: 1.31 $
Author:
Rickard Öberg (rickard.oberg@telkel.com), Marc Fleury
See Also:

Field Summary
protected  int commitOption
          The current commit option.
protected  EntityContainer container
          The container of this interceptor.
protected  java.lang.reflect.Method isModified
          Optional isModified method
 
Fields inherited from class org.jboss.ejb.plugins.AbstractInterceptor
nextInterceptor
 
Constructor Summary
EntitySynchronizationInterceptor()
           
 
Method Summary
 Container getContainer()
           
 void init()
           
 java.lang.Object invoke(MethodInvocation mi)
           
 java.lang.Object invokeHome(MethodInvocation mi)
           
 void setContainer(Container container)
          This callback is set by the container so that the plugin may access it
 
Methods inherited from class org.jboss.ejb.plugins.AbstractInterceptor
destroy, getNext, setNext, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commitOption

protected int commitOption
The current commit option.

container

protected EntityContainer container
The container of this interceptor.

isModified

protected java.lang.reflect.Method isModified
Optional isModified method
Constructor Detail

EntitySynchronizationInterceptor

public EntitySynchronizationInterceptor()
Method Detail

setContainer

public void setContainer(Container container)
Description copied from interface: ContainerPlugin
This callback is set by the container so that the plugin may access it
Overrides:
setContainer in class AbstractInterceptor
Following copied from interface: org.jboss.ejb.ContainerPlugin
Parameters:
con - the container using this plugin

init

public void init()
          throws java.lang.Exception
Overrides:
init in class AbstractInterceptor

getContainer

public Container getContainer()
Overrides:
getContainer in class AbstractInterceptor

invokeHome

public java.lang.Object invokeHome(MethodInvocation mi)
                            throws java.lang.Exception
Overrides:
invokeHome in class AbstractInterceptor

invoke

public java.lang.Object invoke(MethodInvocation mi)
                        throws java.lang.Exception
Overrides:
invoke in class AbstractInterceptor


Copyright © 2000 The JBoss Organization. All Rights Reserved.