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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanDataProvider
public BeanDataProvider(BoundValue value,
boolean useLocalName)
- Creates a BeanDataProvider
- Parameters:
value
- the BoundValue used to retrieve the beanuseLocalName
- 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.
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 contextnamespace
- the namespace of the requested DataObjectname
- 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