Onion Structure of OAF


Onion Structure of OAF





Onion Structure is the another structure of OAF.

Each layer only “knows” about the layers below it.

This encapsulation promotes easier reuse of components.

The components of Onion Structure are:-
  •                          Database.
  •     Entity Object.
  •    View Object.
  •     Application Module.
  •    OAController.



Database:-

It is a logical collection of data objects such as Tables, Views, 
                        Sequence etc.

Entity Object:-

Encapsulates the business rule and logic.
Map to database objects or other data source.

View Object:-

                        Manage collection of data.
                        Represents a query result.

Application Module:-

Application Module defines logical data module and business methods needed to support an application.
Application Module handles the Transactions.

OAController:-
    
                    Controller will take care of the web browser activities.
Controller responds to the user actions and directs application flow.

No comments:

Post a Comment