Inserting a Row

At any time, you can use a view object instance to create a row and add it to its cache. If the view object instance has any entity usages, entity object instances will be added to the entity cache and posted to the datasource when requested. For more information, see the related topics list.

To insert a row:

  1. Create an instance of the Row interface by calling createRow() on the view object instance:

    Row newOrdRow = ordVO.createRow();

  2. Update the row to include any information you want to add.
  3. Insert the row into the view cache by passing it into insertRow() on the view object instance:

    ordVO.insertRow(newOrdRow);


Ways to Manipulate Data
About Oracle ADF View Objects
About Oracle ADF Entity Objects
About Oracle ADF Business Components Cache Management
Finding View Object Instances in the Data Model
Implementing Row Creation and Deletion Logic
Posting Data Without Committing
Committing a Transaction

 

 

Copyright © 1997, 2004, Oracle. All rights reserved.