Exposing Typesafe Accessors to Clients

By exposing typesafe accessors for view object attributes, you can make coding and maintaining Oracle ADF Business Components clients and service methods much easier. For example, if you expose accessors, your clients will have access to methods such as setOrdId(Number) , rather than having to use setAttribute("OrdId", Object) . This reduces the amount of casting you have to do and prevents runtime class cast errors. It also reduces the chance that a typo in an attribute name will remain hidden until runtime.

To expose typesafe accessors to clients:

  1. Open the View Object Editor by doing one of the following:
  2. Select the Java node.
  3. Ensure that Generate Java File and Generate Accessors under the View Row Class label is checked.
  4. Select the Client Row Methods node and ensure that all typesafe accessors are exported.

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


Exposing Data to Clients
About Oracle ADF View Objects
About View Object Attributes
About View Object Java Classes
Retrieving Attribute Values
Updating a Row
Creating View Row-Level Methods for Clients
About Modeling Business Components

 

 

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