org.jboss.ejb
Class ListCacheKey
java.lang.Object
org.jboss.ejb.CacheKey (src)
org.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
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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.
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