Building a Single VO CRUD Model layer

Saturday, October 23, 2010

| | |
ADF is a fairly new framework for many developers. The best way to learn any new framework is to see a basic example running. In this post i have come up with a single VO (Emp) CRUD operation model layer project. I think it would be easy for newbies to get started after following this viewlet.
A simple ADF application contains 2 projects: Model and ViewController (MVC).
A model project contains BC4J objects: Entity Objects,View Objects and ApplicationModules.
An Entity Object is a row from a DB table. It is synonymous to an EJB entity bean. A ViewObject represents a collection of Entity Rows in memory. It can be compared with a EJB Session bean. An application Module is a special Session bean which provides important functionality to the BC4J objects like transaction, session management, activation, passivation etc. It is the interface through which all the business logic is exposed for the UI layer to consume. Its much like a sessionFacade in a typical EJB model layer.

Jdeveloper provides an integrated Swing client to test an AM. Its called the Business Component Browser or simply, AM tester. This gives a very important feature for developers to test the integrity of model layer separately.
Refer the ADF developer guide for more details : http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/toc.htm

Click on the image to see the viewlet..



(Note: If you have resolution problems, right click and zoom in. View in Full Screen and navigate through the tutorial using the Green buttons)

I hope this will help anybody to bring up a simple ApplicationModule and compare it with any other Framework such as EJB beans or Hibernate POJOs.

The next topic will be ADF Single VO CRUD UI layer. Stay tuned...

0 comments:

Post a Comment