|
Oracle Application Server 10g Java Object Cache API Reference 10g(9.0.4) B10388-01 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ias.cache.CacheLoader | +--oracle.ias.cache.CacheListLoader
CacheListLoader is an abstract class. The application writer should extend this class to handle the loading of objects into the cache. A cache list loader can be registered for a region or group. The cache list loader differs from the CacheLoader in that the list loader will allow multiple objects to be loaded with a single call to the loader.
CacheAccess.defineRegion
, CacheAccess.defineGroup
, CacheAccess.defineObject
, CacheLoader
Constructor Summary | |
CacheListLoader() |
Method Summary | |
abstract void |
loadList(java.lang.Object handle, java.lang.Object argument) This is an abstract method, applications should implement this method to customize the loading of a list of cache objects. |
Methods inherited from class oracle.ias.cache.CacheLoader |
load |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CacheListLoader()
Method Detail |
public abstract void loadList(java.lang.Object handle, java.lang.Object argument) throws CacheException
This method is called by the caching service when any of the requested objects are not in the cache. The getNextMethod must be used to iterate through the list to retrieve each object to be loaded. Only the objects not already in the cache will be loaded. The saveObject method must be used to save the object to the cache once it is created. SaveObject will associate the object with the current name.
handle
- An internal handle object is passed in from cache service. It should only be used as the first parameter of the helper methods in this classargument
- It is an argument object for load method passed in from customer code. This object is passed in as args either in get(String name, Object args), or get(String name, String group, Object args)CacheException
- if any error occurs.CacheAccess.loadList(Object[])
, CacheAccess.loadList(Object[], Object)
, CacheAccess.loadList(Object[], String, Object)
|
Oracle Application Server 10g Java Object Cache API Reference 10g(9.0.4) B10388-01 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |