org.jboss.proxy.ejb
Class ListEntityInterceptor
java.lang.Object
org.jboss.proxy.Interceptor
org.jboss.proxy.ejb.GenericEJBInterceptor
org.jboss.proxy.ejb.EntityInterceptor
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GET_READ_AHEAD_VALUES
protected static final Method GET_READ_AHEAD_VALUES
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.
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.