Is a view object really a data collection?
This may be the first question that you may ask when you start using view object instances exposed through the data control panel for building a UI.
Yes, the view object instance is a data collection (row set) in itself. To understand this point let us take a step back and take a closer look at the structure of the view object. The following class diagram represents the
oracle.jbo.server.ViewObjectImpl
class and its associated infrastructure classes namely oracle.jbo.server.ViewRowSetImpl
and oracle.jbo.server.ViewRowSetIteratorImpl
.
The following list discusses the roles of each class in brief from the above diagram:
A view object (
oracle.jbo.server.ViewObjectImpl
) contains logic for controlling the query execution.A view object uses a row set class (
oracle.jbo.server.ViewRowSetImpl
) to manage the collections of view rows read from a query. A view object may have multiple row sets—a default (primary) row set and secondary row sets. When the client...