Friday, 5 June 2015

ADF Business Components

Hello friends, before diving into ADF Business Component I would like to share some basic knowledge about it. Coming few lines explain what ADF Business Components is all about and its features. Here it is:

The prime goal of ADF Business Components is to make the business services developer more productive.

ADF BUSINESS COMPONENT:

ADF Business Components and JDeveloper simplify the development, delivery, and customization of business applications for the Java EE platform. With ADF Business Components, developers aren't required to write the application infrastructure code required by the typical Java EE application to:
  • Connect to the database
  • Retrieve data
  • Lock database records
  • Manage transactions

ADF BUSINESS COMPONENT FEATURES: 
  • Simplifying Data Access
  • Enforcing Business Domain Validation and Business Logic
  • Supporting Sophisticated UIs with Multipage Units of Work
  • Implementing High-Performance Service-Oriented Architecture
  • Streamlining Application Customization
Detailed information about ADF Business Components can be found here.

Now, lets see how we can create ADF Business Components in ADF:

1) First, create a Fusion Web Applicaiton (ADF) in JDeveloper.


2) Once, you create an Fusion Web Application, you would on following screen.


3) Simply right click on model (showing under red circle) & choose New option. Following window will appear in your screen.


You need to opt Business Components from Tables option. This will create you Entity object and View Object at the same time.  You can also create Entity Object & View Object explicitly (by using the option showing under red rectangle). But for the time being just use Business Components from Tables option.

4) After this you need to specify a database connection. If you have already integrated your application with a DB connection then it is just fine. Otherwise, you need to specify one like this:



You can test your connect by clicking on Test Connection button, if it returns success then your connection is fine. Finally, click on OK button.

5) Now, create your Entity Object & View Object as follows:


Click on this Query button (indicated by a red arrow) to get the tables listed on your Database.


Entity Object:
Now, choose desired table to create Entity Object from the table list shown in left side and shuttle it to right side by choosing shift option (indicated by a red arrow). Here, I did this with Employee table. You can also give name to your Entity object using Entity Name field.



View Object:
Now, again shift the available object from left to right to create your "Updatable View Object".

Now, click next button until you got the final finish button. Once you click on Finish button something like following will appear in your Application Navigator panel:



Here, we done.....!!

Thank you :)

4 comments:

  1. well done Sr. Deepak....keep it up!!

    ReplyDelete
  2. Hey nice blog, need more of these..!!! Keep blogging..!!! :) :)

    ReplyDelete
  3. Sir soa bpel ke bhi start karo

    ReplyDelete
  4. Great, thanks for sharing this post.Much thanks again. Awesome.
    web methods training

    ReplyDelete