Creating View Row-Level Methods for Clients

View row-level service methods perform complex operations on a single row of data. These methods can be called from clients, requiring very little data manipulation processing in the client itself. For more information, see the related topics list.

To create view row-level service methods:

  1. Open the View Object Editor by doing one of the following:
  2. Select the Java node.
  3. Ensure that Generate Java File under the View Row Class label is checked.
  4. If you want to generate typesafe accessor methods for the view object attributes, ensure that Generate Accessors is checked.

    Note: We recommend generating typesafe accessors for view row classes. For more information, see the related topics list.

  5. Click OK to close the wizard.
  6. In the System Navigator, open the view object definition's node to expose an XML file and one or more Java files.

    Note: One of these files will be the source code for the view row class. It will be named <ViewObjectDefName>RowImpl.java, where <ViewObjectDefName> is the name of the view object definition. For more information, see the related topics list.

  7. Right-click the view row class' source and choose Edit.
  8. Write your service method in the class. Some common operations in view row-level service methods are:
  9. Open the View Object Editor again.
  10. Select the Client Row Methods node and choose the methods to export.

If you need further assistance with the Editor, click Help.

After you complete this procedure, you will be able to access the method from a client.


Creating Business Components Service Methods for Clients
About Business Components Service Methods
About Oracle ADF View Objects
About View Object Java Classes
Accessing Data from Clients
About Modeling Business Components

 

 

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