Tutorial demonstrating “Developing of Business Services with Oracle ADF BusinessComponents”Steps to be followed:1. Need to model business components.2. Add validation rules.3. Add formatting rules.4. Finally, test with a swing based tester.Open Oracle JDeveloper 10g and press the connections tab.Right click the Database tab to create a new connection to the database.The following screen will be displayed:If you know how to establish a connection, skip the next few screens or else Follow the screens to establish the connection:Enter your username and password:Click the Test Connection tab to test the connection:Create a new application workspace:Right click the model tab and select new:We are going to use UML modeler to define the business service layer:Business Component Diagram is now created.Now create business components basing on existing tables in the database:Drag the tables ex: EMPLOYEES and DEPARTMENTS onto the HR diagramFollowing Screen is displayed:We can choose our implementation of database access from Java…Edit entity object attributes by selecting Name on the left view and EMPLOYEES as the schema object.Add a validation rule for an attribute say ‘salary’Generate Data control for the model layer as shown in the following screen:Follow these steps to create default data model components:Thus default view object is created from entity object Employees.In the Applications Navigator select Employees View, now we will hide a couple of the attributes from the Model layer.Select and transfer JobId and CommissionPct onto the Employees tab.Now select HireDate and Add formatting and heading to attributes:Now test the business components you have created with a simple Swing based tester:Heading and format are now shown in the UI:As you can see, the validation rule is now working:Reference: http://www.oracle.com/technology/products/jdev/index.htmlTutorial written by:Mazharuddin
View Full Document