| net.sourceforge.squirrel_sql.fw.util.IObjectCache
IObjectCache | public interface IObjectCache (Code) | | This interface defines a the behaviour of an object cache.
author: Colin Bell |
addChangesListener | void addChangesListener(IObjectCacheChangeListener lis, Class<E> objClass)(Code) | | Adds a listener for changes to the cache entry for the passed class.
Parameters: lis - a IObjectCacheChangeListener that will be notifiedwhen objects are added or removed from this cacheentry. Parameters: objClass - The class of objects whose cache we want to listento. |
get | IHasIdentifier get(Class<E> objClass, IIdentifier id)(Code) | | Retrieve a stored object.
Parameters: objClass - The class of the object to be retrieved. Parameters: id - The IIdentifier that identifiesthe object to be retrieved. The IHasIdentifier retrieved or null if no object exists for id . |
getAllClasses | Class<E>[] getAllClasses()(Code) | | Return an array of Class |
getAllForClass | Iterator<E> getAllForClass(Class<E> objClass)(Code) | | Return an Iterator of all objects stored for the
passed class.
Parameters: objClass - Class to return objects for. Iterator over all objects. |
remove | void remove(Class<E> objClass, IIdentifier id)(Code) | | Remove an object.
Parameters: objClass - Class of object to be removed. Parameters: id - Identifier for object to be removed. |
removeChangesListener | void removeChangesListener(IObjectCacheChangeListener lis, Class<E> objClass)(Code) | | Removes a listener for changes to the cache entry for the passed class.
Parameters: lis - a IObjectCacheChangeListener that will be notifiedwhen objects are added or removed from this cacheentry. Parameters: objClass - The class of objects whose cache we want to listento. |
|
|