Creating Oracle ADF Data Controls for JavaBeans

If you use JavaBeans technology as your business service technology, model information will be exposed to the view and controller layers through ADF data control interfaces implemented by thin, Oracle-provided adapter classes.

Note: If your JavaBean uses TopLink mappings, see Creating Oracle ADF Data Controls for JavaBeans with TopLink Mappings.

To create adapter classes and data controls:

  1. In the navigator, select the Model project which contains the model objects you want to expose to the application client.
  2. In the model project, right-click the bean and choose Create Data Control.

    OR:

    Drag the bean from the Application Navigator onto the Data Control Palette to create the data controls.

  3. If your bean defines attributes or methods that return a Collection type, you must specify the return type for the data control.

JDeveloper adds the data control definition file (DataControls.dcx ) to the model project. The .dcx file identifies the Oracle ADF model layer adapter classes that facilitate the interaction between the client and the available business services.

To view the business services you have registered for use with your client application:


Working with JavaBean Components in the Model Project
Working with TopLink Objects in the Model Project
About the Oracle ADF Data Controls for JavaBeans and TopLink-based Bean Components
About the Data Control Palette

 

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