jrun.ejb
Interface InstanceCache

All Known Implementing Classes:
EntityInstanceCache, StatefulSessionInstanceCache

public interface InstanceCache

The interface for instance caches. The hope is that this will support entity bean and stateful session bean caching.

Author:
Paul Reilly

Method Summary
 Instance get(java.lang.Object id)
           
 void insert(java.lang.Object id, Instance instance)
           
 void remove(java.lang.Object id)
           
 

Method Detail

get

public Instance get(java.lang.Object id)
Parameters:
id - the primary key for the cached instance.

insert

public void insert(java.lang.Object id,
                   Instance instance)
            throws javax.ejb.EJBException,
                   java.rmi.RemoteException
Parameters:
instance - the instance object to be cached.

remove

public void remove(java.lang.Object id)
            throws java.util.NoSuchElementException
Parameters:
id - the primary key for the cached instance.


Copyright � 2002 Macromedia Corporation. All Rights Reserved.