Calling Exported Methods from Clients

Oracle ADF view objects and application modules can provide service methods, methods that perform complex operations on data. These methods can be called from clients, requiring very little data manipulation processing in the client itself. To create these methods, see Creating Business Components Service Methods for Clients.

Once you have retrieved an application module instance, view object instance, or view row, you can call any appropriate Oracle ADF Business Components service methods you have created.

To call exported methods from clients:

  1. Make sure you have imported the common subpackage of the package containing your view object definition. For example, if your data model components are defined in orderentry.datamodel, you would use:

    import orderentry.datamodel.common.*;

  2. Cast the business component to the appropriate custom interface:

    Note: You can also cast the business component at the same time you retrieve it.

  3. Call the exported method on the cast business component.

Exposing Data to Clients
About Oracle ADF View Objects
About Oracle ADF Application Modules
Accessing a Root-Level Application Module
Finding a Nested Application Module Instance
Finding View Object Instances in the Data Model
Ways to Navigate Through Query Results

 

 

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