org.jboss.ejb
Class ListCacheKey

java.lang.Object
  extended byorg.jboss.ejb.CacheKey (src) 
      extended byorg.jboss.ejb.ListCacheKey
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public final class ListCacheKey
extends CacheKey (src)

ListCacheKey extends CacheKey (src) and holds info about the List that the entity belongs to, it is used with CMP 2.0 for reading ahead.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.ejb.CacheKey (src)
hashCode, id, mo
 
Constructor Summary
ListCacheKey()
           
ListCacheKey(java.lang.Object id, long listId, int index)
           
 
Method Summary
 int getIndex()
           
 long getListId()
           
 void readExternal(java.io.ObjectInput in)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class org.jboss.ejb.CacheKey (src)
equals, getId, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListCacheKey

public ListCacheKey()

ListCacheKey

public ListCacheKey(java.lang.Object id,
                    long listId,
                    int index)
Parameters:
listId - The list id.
index - The index of this entity in the list.
Method Detail

getListId

public long getListId()

getIndex

public int getIndex()

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class CacheKey (src)
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class CacheKey (src)
Throws:
java.io.IOException
java.lang.ClassNotFoundException