Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.data.provider
Class CachingDataProvider

java.lang.Object
  |
  +--oracle.cabo.ui.data.provider.CachingDataProvider
All Implemented Interfaces:
DataProvider

public class CachingDataProvider
extends java.lang.Object
implements DataProvider

This class wraps a DataProvider and caches DataObjects returned by the getDataObject method.


Constructor Summary
CachingDataProvider(DataProvider provider)
           
 
Method Summary
 void cleanup(RenderingContext context)
          cleans up the wrapped DataProvider
 DataObject getDataObject(RenderingContext context, java.lang.String namespace, java.lang.String name)
          the internal cache is searched by namespace and name for the request before querying the DataProvider.
 void init(RenderingContext context)
          initializes the wrapped DataProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingDataProvider

public CachingDataProvider(DataProvider provider)
Parameters:
provider - the DataProvider to wrap around and provide caching for.
Method Detail

getDataObject

public DataObject getDataObject(RenderingContext context,
                                java.lang.String namespace,
                                java.lang.String name)
the internal cache is searched by namespace and name for the request before querying the DataProvider. Note that the RenderingContext is ignored during the cache search.
Specified by:
getDataObject in interface DataProvider
See Also:
DataProvider

init

public void init(RenderingContext context)
initializes the wrapped DataProvider
Specified by:
init in interface DataProvider
See Also:
DataProvider

cleanup

public void cleanup(RenderingContext context)
cleans up the wrapped DataProvider
Specified by:
cleanup in interface DataProvider
See Also:
DataProvider

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.