Limiting Fetching of Business Components Attributes in JClient

Note: Starting in JDeveloper 10g, users who work with the design time tools in JDeveloper will by default obtain the optimization described in this topic.

Use this topic if you develop applications outside of JDeveloper using the provided APIs for ADF Business Components and do not create view object metadata (XML files).

You can optimize startup time for a Business Components client application and the remotely deployed Business Components by specifying the list of view object attributes that your client uses. If you create a project without the metadata, by coding to the API, you will want to add fetchAttributeProperties() to the bootstrap code of the client forms with a list of only the attributes used by the form. Without this method call, your client form would fetch all control hint properties (including the attributes format and label for example) for all the attributes of the named view objects in the application module, in a single network roundtrip.

For example, when you do not intend to use all the attributes of the ADF JClient form's bound view object, with the fetchAttributeProperties() method, your JClient form fetches only the information required to layout your forms, while ignoring the attributes you do not require.

Note: In local mode deployment (the client and Business Components reside in the same VM), the fetching of attribute properties is not supported.

To minimize retrieving of attribute properties (outside of the JDeveloper design time):

Calling fetchAttributeProperties() will prevent property methods such as getFormat() or getLabel() from being called on the Business Components attribute definition whenever the form is created.

 

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