Creating View Object-Level Methods for Clients

View object-level service methods 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 related topics list.

To create view object-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 Object Class label is checked.
  4. Click OK to close the wizard.
  5. 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 object class. It will be named <ViewObjectDefName>Impl.java, where <ViewObjectDefName> is the name of the view object definition. For more information, see the related topics list.

  6. Right-click the view object class' source and choose Edit.
  7. Write your service method in the class. Some common operations in view object-level service methods are:
  8. Open the View Object Editor again.
  9. Select the Client 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 View Objects
About View Object Java Classes
Accessing Data from Clients
About Modeling Business Components

 

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