org.jboss.proxy.ejb
Class ListEntityInterceptor

java.lang.Object
  extended by org.jboss.proxy.Interceptor
      extended by org.jboss.proxy.ejb.GenericEJBInterceptor
          extended by org.jboss.proxy.ejb.EntityInterceptor
              extended by org.jboss.proxy.ejb.ListEntityInterceptor
All Implemented Interfaces:
Externalizable, Serializable

public class ListEntityInterceptor
extends EntityInterceptor

An EJB CMP entity bean proxy class holds info about the List that the entity belongs to, is used for reading ahead.

Version:
$Revision: 57209 $
Author:
Oleg Nitz
See Also:
Serialized Form

Field Summary
protected static Method GET_READ_AHEAD_VALUES
           
 
Fields inherited from class org.jboss.proxy.ejb.GenericEJBInterceptor
EQUALS, GET_EJB_HOME, GET_HANDLE, GET_PRIMARY_KEY, HASH_CODE, IS_IDENTICAL, TO_STRING
 
Fields inherited from class org.jboss.proxy.Interceptor
nextInterceptor
 
Constructor Summary
ListEntityInterceptor()
          No-argument constructor for externalization.
ListEntityInterceptor(List list)
          Construct a ListEntityProxy.
 
Method Summary
 Map getReadAheadValues()
           
 Object invoke(Invocation invocation)
          InvocationHandler implementation.
 void readExternal(ObjectInput in)
          Externalization support.
 void writeExternal(ObjectOutput out)
          Externalization support.
 
Methods inherited from class org.jboss.proxy.ejb.GenericEJBInterceptor
getEJBHome
 
Methods inherited from class org.jboss.proxy.Interceptor
getNext, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GET_READ_AHEAD_VALUES

protected static final Method GET_READ_AHEAD_VALUES
Constructor Detail

ListEntityInterceptor

public ListEntityInterceptor()
No-argument constructor for externalization.


ListEntityInterceptor

public ListEntityInterceptor(List list)
Construct a ListEntityProxy.

Parameters:
name - The JNDI name of the container that we proxy for.
container - The remote interface of the invoker for which this is a proxy for.
id - The primary key of the entity.
optimize - True if the proxy will attempt to optimize VM-local calls.
list - A List that this entity belongs to (used for reading ahead).
listId - The list id.
index - The index of this entity in the list.
Throws:
NullPointerException - Id may not be null.
Method Detail

getReadAheadValues

public Map getReadAheadValues()

invoke

public Object invoke(Invocation invocation)
              throws Throwable
InvocationHandler implementation.

Overrides:
invoke in class EntityInterceptor
Parameters:
proxy - The proxy object.
m - The method being invoked.
args - The arguments for the method.
Throws:
Throwable - Any exception or error thrown while processing.

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Externalization support.

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class Interceptor
Parameters:
out -
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Externalization support.

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class Interceptor
Parameters:
in -
Throws:
IOException
ClassNotFoundException


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