Saturday, 7 February 2015

Adf Interview Questions Part-3


7. What is Association in ADF?
Association represents the relationship between 2 and more tables like foreign key relationship.
If you create Entities from database association will automatically got created for entity. User can
also define custom association if there is no foreign-key is define in database. In this way user
can handle foreign key in ADF application and can remove overhead from database.
8. What is view link?
ViewLink represent the relationship between data ofsame or multiple Entities or table. It works
in same manner as association work for entity. While defining the ViewLink user can define the
reference of already created association if ViewObejct based on Entity Object else can manually
select the column and define link between 2 ViewObject.
9. What is ViewObejct in ADF framework?
Ans : ViewObjectis represent the data collection. These view object can be created in different
ways which are as follows:
·  Entity Based ViewObject: These viewobejct will hold the reference of underlying entity. These
view object can hold data from single or multiple entities. While defining Viewobject based on
Entity you can select the attribute which you want to keep in entity.
·  SQL Based ViewObject: These ViewObejct are based on sql quarries. Theseviewobejct will have
underlying SQL Query. At runtime they will hold data return by SQL.
Programatic View Object: User can define the view attribute which definingviewobejct. Data
will insert programmatically into these ViewObject.
·  Static ViewObject: While defining user will define attribute for view and in later he has to
provide the values for those attribute. These kindofviewobejct will have fixed no of rows.
10. Which component in ADF BC manages transaction ?
Application Module, manages transaction.
11. Can an entity object be based on two Database Objects(tables/views) or
two Webservices ?
No entity objects will always have one to one relationship with a database object or web
service.
12. Why we used applicationmodule in ADF framework?
Ans:Applicationmodule is the component of ADF BC which hold the references of ViewObject
and instantiate them while running the application.ViewObejct reference define in Application
Module can be used to define the jsff/jspz page. Ifyou want to use any ViewObject on you page
you must have to provide the reference in Application Module.
Application module also provide the transaction management with commit and rollback
operation
13. What is the difference between an action and anaction listener?
Actions are designed for business logic and participate in navigation handling, whereas action
listeners typically perform user interface logic and do not participate in navigation handling.
Action listener is a class that wants to be notified when a command component fires an action
event.
14. What is the difference between visible propertyand render property
The visible property is set to true/false based on the requirement whether we want to see the
field on the page or not at run time. The field or component still exists on the page, though
hidden. The render property is used to conditionally load the component based on a criteria.
15. What is the Business Component Tester
The mostly used component of the model layer is thetester, which is used to run and check the
data model that is implemented.This serves as the first line of defense to see if data is exposed
as we need it and to test the data model with out aneed to create a UI.

No comments:

Post a Comment