An view object definition always has an associated XML file. It optionally has up to two Java source files a view object class and a view row class.
Instances of the view object class are view object instances; that is,
they represent a particular reference to a Oracle ADF view object
definition within an application module definition. View object classes
extend the class oracle.jbo.server.ViewObjectImpl
. View
objects can simply use instances of ViewObjectImpl
as their
view object instances.
The main reason to generate custom view object classes is to write view object service methods, methods that perform complex operations on an entire set of data (usually the result set of a query). These methods can be called from clients, requiring very little data manipulation processing in the client itself. For more information, see the realted topics list.
Instances of the view row class represent one row of data returned by
the view object's data retrieval mechanism (usually a SQL query). View
row classes extend the class oracle.jbo.server.ViewRowImpl
.
View objects can simply use instances of ViewRowImpl
to
represent their rows; however, there are two advantages to generating
custom view row classes.
ViewRowImpl.getAttribute()
and ViewRowImpl.setAttribute()
, which are not typesafe.
Representing a Query
About Oracle ADF View Objects
About View Object and View Link Instances
About Business Components Service Methods
About Oracle ADF Application Modules
Copyright © 1997, 2004, Oracle. All rights reserved.