Oracle Application Server 10g Java Object Cache API Reference
10g(9.0.4)

B10388-01

oracle.ias.cache
Class CacheListLoader

java.lang.Object
  |
  +--oracle.ias.cache.CacheLoader
        |
        +--oracle.ias.cache.CacheListLoader

public abstract class CacheListLoader
extends CacheLoader

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.

Since:
9.0.4
See Also:
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

CacheListLoader

public CacheListLoader()
Method Detail

loadList

public abstract void loadList(java.lang.Object handle,
                              java.lang.Object argument)
                       throws CacheException
This is an abstract method, applications should implement this method to customize the loading of a list of cache objects.

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.

Parameters:
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 class
argument - 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)
Throws:
CacheException - if any error occurs.
Since:
9.0.4
See Also:
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

Copyright © 2003 Oracle Corporation. All Rights Reserved.