Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.data.bean
Class BeanDataProvider

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

public class BeanDataProvider
extends java.lang.Object
implements DataProvider

DataProvider implementation that will turn JavaBeans into DataObjects.

See Also:
BeanAdapterUtils, BuildBeanDOAdapter

Constructor Summary
BeanDataProvider(BoundValue value, boolean useLocalName)
          Creates a BeanDataProvider
 
Method Summary
 void cleanup(RenderingContext context)
          RenderingContext implementations must call cleanup() once after the last callto getDataObject().
 DataObject getDataObject(RenderingContext context, java.lang.String namespaceURI, java.lang.String localName)
           
 void init(RenderingContext context)
          RenderingContext implementations must call init() once before calling getDataObject().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanDataProvider

public BeanDataProvider(BoundValue value,
                        boolean useLocalName)
Creates a BeanDataProvider
Parameters:
value - the BoundValue used to retrieve the bean
useLocalName - if true, the object returned from the bound value will be interpreted as a DataObject itself; the "localName" of the data object being requested will be used as a select key. This feature makes it feasible to use a single BeanDataProvider to serve a set of beans.
Method Detail

getDataObject

public DataObject getDataObject(RenderingContext context,
                                java.lang.String namespaceURI,
                                java.lang.String localName)
Specified by:
getDataObject in interface DataProvider
Following copied from interface: oracle.cabo.ui.data.DataProvider
Parameters:
context - the current rendering context
namespace - the namespace of the requested DataObject
name - the name of the requested DataObject
Returns:
the DataObject for the specified namespace and name, or null if no such dataObject exists.

init

public void init(RenderingContext context)
Description copied from interface: DataProvider
RenderingContext implementations must call init() once before calling getDataObject(). In general, they should try to call it as early as possible.
Specified by:
init in interface DataProvider

cleanup

public void cleanup(RenderingContext context)
Description copied from interface: DataProvider
RenderingContext implementations must call cleanup() once after the last callto getDataObject().
Specified by:
cleanup in interface DataProvider

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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