5
Blog about the Java and Oracle Technologies Amit Sharma's Blog Amit Sharma's Blog THURSDAY, JANUARY 17, 2013 Oracle ADF Interview Question Part- 1 Q1. What is Oracle ADF? Ans : Oracle Application Development Framework, usually called Oracle ADF, provides a commercial Java framework for building enterprise applications. It provides visual and declarative approaches to Java EE development. It supports rapid application development based on ready-to-use design patterns, metadata-driven and visual tools. Q2 How does ADF fall in MVC architecture? Oracle ADF Architecture is based on the Model-View-Controller (MVC) design pattern.MVC consists of three layers which are model layer,view layer,controller layer.Oracle ADF implements MVC and further separates the model layer from the business services to enable service-oriented development of applications. The Oracle ADF architecture is based on four layers: The Business Services layer This layer provides access to data from various sources and handles business logic. ADF Component comes, in this section are ViewObject, EntityObject, ViewLink, Association etc The Model layer This layer provides an abstraction layer on top of the Business Services layer, enabling the View and Controller layers to work with different implementations of Business Services in a consistent way. ADF Component comes in this section are PageDefn, DataBindings,DataControls (AppModuleDataControl, WebServiceDataControl) The Controller layer This layer provides a mechanism to control the flow of the Web application. ADF Component comes in this section are TaskFlows(Bounded and unbounded, faces-config.xml, adfc-config.xml) The View layer This layer provides the user interface of the application. ADF components comes in this section are jsff, jspx page. Q3 How will JDeveloper support rapid development? Ans : Oracle ADF is an Oracle product. Ide used to develop ADF application which is Oracle JDeveloper. This IDE is has all component which support in rapid developer starting form designing Application using the UML to Java, Visual Designer, DataBase development, Testing Webservices to Deployment. Most of the feature are just drag and drop. hence this IDE become the perfect choice for ADF development. Although it bit slow and hangs sometime but still we don't have any other option. Q4 What are the different type of Business Component in Oracle ADF? Ans : Different kinds of Business component support by ADF are EntityObject, ViewObjects, ViewLinks, Association. Q6 What is Entity Object in ADF Framework? Ans: EnitityObject in ADF are similar to Table in database. Any number of ViewObejct can create on single Entity. Q6 What is ViewObejct in ADF framework? Ans : ViewObject is 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. These viewobejct will have underlying SQL Query. At runtime they will hold data return by SQL. · Programatic View Object : User can define the view attribute which defining viewobejct. 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 kind of viewobejct will have fixed no of rows. Q7 What is Association in ADF? Ans: Association represent 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 ORACLE ADF INTERVIEW QUESTION PART 1 Amit Sharma mumbai, Maharastra, India I am working on JDeveloper and ADF from past 4 year Here i am sharing my JDeveloper Experience that may help other people. Everybody is welcome here, post your queries here i'll be glad to solve them. View my complete profile ABOUT ME Loading... There was an error in this gadget LINKEDIN PROFILE TRANSLATE 2013 (9) September (2) August (1) March (1) January (5) How to change view criteria at run time Oracle ADF Interview question Part 3 ADF Interview Question - Part 2 Oracle ADF Interview Question Part- 1 Default value to view attribute using other attrib... 2012 (12) 2010 (7) BLOG ARCHIVE FOLLOWERS FACEBOOK BADGE TOTAL PAGEVIEWS 4 8 5 5 8 Share this on Face Tweet this View stats (NEW) Appointment ga SHARE IT 3 AMAZON CONTEXTUAL Share 1 More Next Blog» Create Blog Sign In converted by Web2PDFConvert.com

adf

Embed Size (px)

DESCRIPTION

Oracle ADF Training

Citation preview

  • Blog about the Java and Oracle Technologies

    Amit Sharma's BlogAmit Sharma's Blog

    THURSDAY, JANUARY 17, 2013

    Oracle ADF Interview Question Part- 1

    Q1. What is Oracle ADF?Ans : Oracle Application Development Framework, usually called Oracle ADF, provides a commercial Java framework for building enterpriseapplications. It provides visual and declarative approaches to Java EE development. It supports rapid application development based onready-to-use design patterns, metadata-driven and visual tools.Q2 How does ADF fall in MVC architecture?Oracle ADF Architecture is based on the Model-View-Controller (MVC) design pattern.MVC consists of three layers which are modellayer,view layer,controller layer.Oracle ADF implements MVC and further separates the model layer from the business services to enableservice-oriented development of applications.

    The Oracle ADF architecture is based on four layers:

    The Business Services layer

    This layer provides access to data from various sources and handles business logic. ADF Component comes, in this section areViewObject, EntityObject, ViewLink, Association etc

    The Model layer

    This layer provides an abstraction layer on top of the Business Services layer, enabling the View and Controller layers to work with differentimplementations of Business Services in a consistent way. ADF Component comes in this section are PageDefn,DataBindings,DataControls (AppModuleDataControl, WebServiceDataControl)

    The Controller layer

    This layer provides a mechanism to control the flow of the Web application. ADF Component comes in this section are TaskFlows(Boundedand unbounded, faces-config.xml, adfc-config.xml)

    The View layer

    This layer provides the user interface of the application. ADF components comes in this section are jsff, jspx page.

    Q3 How will JDeveloper support rapid development?

    Ans : Oracle ADF is an Oracle product. Ide used to develop ADF application which is Oracle JDeveloper. This IDE is has all componentwhich support in rapid developer starting form designing Application using the UML to Java, Visual Designer, DataBase development, TestingWebservices to Deployment. Most of the feature are just drag and drop. hence this IDE become the perfect choice for ADF development.Although it bit slow and hangs sometime but still we don't have any other option.

    Q4 What are the different type of Business Component in Oracle ADF?Ans : Different kinds of Business component support by ADF are EntityObject, ViewObjects, ViewLinks, Association.

    Q6 What is Entity Object in ADF Framework?Ans: EnitityObject in ADF are similar to Table in database. Any number of ViewObejct can create on single Entity.

    Q6 What is ViewObejct in ADF framework?Ans : ViewObject is 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 ormultiple 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. These viewobejct will have underlying SQL Query. At runtime theywill hold data return by SQL.

    Programatic View Object: User can define the view attribute which defining viewobejct. Data will insert programmatically into theseViewObject.

    Static ViewObject : While defining user will define attribute for view and in later he has to provide the values for those attribute. These kindof viewobejct will have fixed no of rows.

    Q7 What is Association in ADF?Ans: Association represent the relationship between 2 and more tables like foreign key relationship. If you create Entities fromdatabase 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

    ORACLE ADF INTERVIEW QUESTION PART 1

    Amit Sharmamumbai, Maharastra, IndiaI am working on JDeveloper andADF from past 4 year Here i amsharing my JDeveloper

    Experience that may help other people.Everybody is welcome here, post yourqueries here i'll be glad to solve them.View my complete profile

    ABOUT ME

    Loading...

    There was an error in this gadget

    LINKEDIN PROFILE

    TRANSLATE

    2013 (9) September (2) August (1) March (1) January (5)

    How to change view criteria at run timeOracle ADF Interview question Part 3ADF Interview Question - Part 2Oracle ADF Interview Question Part- 1Default value to view attribute using

    other attrib...

    2012 (12) 2010 (7)

    BLOG ARCHIVE

    FOLLOWERS

    FACEBOOK BADGE

    TOTAL PAGEVIEWS

    4 8 5 5 8

    Share this on FacebookTweet this

    View stats (NEW) Appointment gadget >>

    SHARE IT

    3

    AMAZONCONTEXTUAL

    Share 1 More Next Blog Create Blog Sign In

    converted by Web2PDFConvert.com

  • database.

    Q8 What is view link?Ans: ViewLink represent the relationship between data of same or multiple Entities or table. It works in same manner asassociation work for entity. While defining the ViewLink user can define the reference of already created association ifViewObejct based on Entity Object else can manually select the column and define link between 2 ViewObject.

    Q9 Why we used applicationmodule in ADF framework?Ans:Applicationmodule is the component of ADF BC which hold the references of ViewObject and instantiate themwhile running the application. ViewObejct reference define in Application Module can be used to define the jsff/jspzpage. If you 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

    Q10 What is the controller in ADF in respect of MVC architecture?Ans:Controllers in ADF framework are TaskFlows, Faces-config.xml, adfc-config.xml. In all there file you can definenavigation between the pages. Declare the manage-bean in different scope.

    Q11 What are the different kind of resource bundle supported in ADF?Ans: ADF support different types of resource bundle which are as follows:

    Property file based (txt file which contains key-value pair)xliff file based (xml file which contains key-value pair)List Resource bundle

    Q12 How to provide common resource bundle for entire proejct?Ans: Go to property file of you Project and select resouce bundle

    From here you can select one bundle for entire project.

    Q13 How to provide separate resource bundle for each jsff/jspx?Ans: Refer Q 12 answer there is option using that you can select One Bundle per file. Q14 What is the difference in jspx and jsff?Ans: jspx and jsff file are same in most of manner. Only difference is that you can run jspx directly on browser while jsff filecontainer which will run on browser.

    Q15 What is taskflow ? how many type of taskflow adf support?Ans: Taskflow is the Component of Oracle ADF which is used to define simple task. After successfully defining task-flow can consume any number of time.ADF support two kind of taskflow:

    Bounded TaskFlow : Bonded taskflow require the page on which they will consume.UnBounded TaskFlow : Unbounded taskflows can directly run on browser

    Q16 How to develop reusable taskflow in ADF?Ans: Please fins the step below

    Define taskflowDefine deployment profile as ADF Library jarDeploy adf jar fileOpen new project where you want to consume the task flow.Add newly created jar of taskflow project go to component palate You will fine you jar name select it.It will show list of taskflow you developed

    Amit Sharma

    Create Your Badge

    CONTEXTUALPRODUCT ADS

    VISITOR'S

    VISITORS LIVE

    ADF (20)

    JDeveloper (7)

    LABELS

    Oracle ADF Interview Question Part- 1Oracle ADF Interview question Part 1 Q1.What is Oracle ADF? Ans : OracleApplication Development Framework, usuallycalled Ora...

    ADF Interview Question - Part 2ADF Interview Question - Part 2 Q29 What isthe different between Action andActionListener? Ans : ActionListener :ActionListene...

    Parent Action Activity in ADF Bounded TaskFlowEffective use of Parent Action Activity Here inthis post I am explaining the way of UsingParent Action Activity. Using Parent Acti...

    Oracle ADF Interview question Part 3Oracle ADF Interview question Part 3 Q52How to save custom property in ADF? Q53How to generate id from seq usign

    POPULAR POSTS

    converted by Web2PDFConvert.com

  • Posted by Amit Sharma at 8:17 PM

    Labels: ADF, ADF Interview question

    Drag drop your taskflow as region on jsff/jspx page and run ur application Q17 Can bounded taskflow run on browser?Ans: NOQ18 What are different scope of adf taskflow?Ans: Isolate/SharedShared scope will share data among the multiple instance of taskflows while Isolated doesn't.

    Q19 How can you force ADF taskflow to use new transaction everytime taskflow is called?Ans: Go taskflow overview and you will file below item

    Select always begin new transaction fron dropdown Q20 How to use same transaction in ADF taskflow?Ans

    Q 21 How can you pass parameter to adf taskflow?Ans: Go to overview select parameters link it will show screen like

    Here you can add multiple parameter which you want to pass takflow while loading it.Q22 Explain the purpose of using Controls flow in adf?Ans: Controls flow defined in taskflow can be called anytime from any page of that taskflow.if you have same flow for multiple pages just define the control flow once in taskflow. You can invoke it anytime fromany action event.

    Q23 What is the behavior of router in ADF taskflow?Ans : Based on some condition router can decide which route need to be follow. If none of condition match in thatcase router will follow default route defined by used. Q24 How can navigation define in taskflow? Ans : Navigation can be defined in taskflow using control flows and invoked by jsff/jspx page using action event likebutton link etc. Q25 Can ADF task flow hold more than 1 view activity?Ans: Yes. ADF taskflow can have multiple view activity but 1 activity has to be defined as default activity.

    Q26 What is the Parent Action in ADF Taskflow?Ans:Parent action is activity using that you can invoke the Control flow define in parent taskflow from child taskflow.More details about how to develop it can be found on Parent Activity

    Q27 What is method activity in Adf Taskflow?Ans: Using this activity you can invoke and method defined in manage-bean.Q28 How to initialize ADF Taskflow?Ans: Open the taskflow in Overview Mode select general like there is initiallizer property. you can provide the any method reference which will get invoked whenever taskflow instance created.

    Oracel ADF Interview Question Part 2

    +1 Recommend this on Google

    16 comments:

    Rishi Pomal March 3, 2013 at 11:14 PM

    Thank You, these question are really helpful to clear concepts related to ADF.

    Reply

    Anonymous May 17, 2013 at 1:01 AM

    thanks for share..

    Reply

    How to generate id from seq usignEntityObject ...

    How to disable adf default row selection in?How to disable adf default row selection in? Problem Definition In day to daydevelopment we faced common issue with ...

    Mobile ADF: Webservice CallUsing Oracle ADF MobileFramework (Android)Web-service Call Using OracleADF Mobile Framework

    (Android) Writing web service I have writtena simple webservice which will...

    Change ADF Default Error MessagesHow to change ADF default messages Theseare some requirement on which we want tochange the default adf error messages. Iam...

    Oracle ADF Mobile AppOracle ADF Mobile App Greatnews Oracle released firstversion of Oracle ADF Mobileframework. This is the only

    framework in which you ...

    JDeveloper Extension forGenerating Hibernate Units.I am working on the JDeveloperExtension project to makehibernate development work a

    little bit easier. I have creating Extension forJDev...

    Select Once Choice inside ADFQuery Referencing Parent tableHere By this sample I amexplaining the way of using ADFSelectOneChoice inside

    Af:Query component as a reference toparents table. In that ...

    LIVE ACTIVITY

    Live Traffic Feed

    A visitor from Houston, Texasviewed "Amit Sharma's Blog: Oracle ADF InterviewQuestion Part- 1" 2 secs ago

    A visitor from Chennai, Tamil Naduviewed "Amit Sharma's Blog: Oracle ADF InterviewQuestion Part- 1" 2 mins ago

    A visitor from Marietta, Georgiaarrived from google.com and viewed "Amit Sharma'sBlog: Oracle ADF Interview Question Part- 1" 4 minsago

    A visitor from Miamisburg, Ohioarrived from google.com and viewed "Amit Sharma'sBlog: How to use JPA using data-source on tomcat?"47 mins ago

    A visitor from Chennai, Tamil Naduviewed "Amit Sharma's Blog: Oracle ADF InterviewQuestion Part- 1" 1 hr 22 mins ago

    A visitor from Bangalore, Karnatakaarrived from google.co.in and viewed "Amit Sharma'sBlog: Oracle ADF Interview Question Part- 1" 3 hrs34 mins ago

    A visitor from Alhambra, Californialeft "Amit Sharma's Blog: Oracle ADF InterviewQuestion Part- 1" via blogger.com 3 hrs 56 mins ago

    A visitor from Alhambra, Californiaarrived from google.com and viewed "Amit Sharma'sBlog: Oracle ADF Interview Question Part- 1" 3 hrs59 mins ago

    A visitor from Lawrenceville, Georgiaarrived from google.com and viewed "Amit Sharma'sBlog: How to use JPA using data-source on tomcat?"4 hrs 43 mins ago

    A visitor from Lawrenceville, Georgiaarrived from google.com and viewed "Amit Sharma'sBlog: How to use JPA using data-source on tomcat?"7 hrs 13 mins ago

    R e a l - t i m e v i e w M e n u

    converted by Web2PDFConvert.com

  • Replies

    Reply

    siva ram May 19, 2013 at 11:17 PM

    thank you for share .share more interview questions

    Reply

    KV YADAV June 7, 2013 at 4:13 AM

    Thank you Amit for sharing these questions, it is really helpful to get an overview about ADF. Please share some moreinterview questions. Thanks in advance

    Reply

    muppavaram babu June 14, 2013 at 7:22 AM

    Hi Amit,

    I created a VO's but I am unable to see now. I can see these VO's in Data control.

    Reply

    Anonymous June 27, 2013 at 2:04 AM

    Drag and drop VO on jspx page as table or ADF form..and then run .jspx page.

    Anonymous September 4, 2013 at 10:12 AM

    move the ViewObject to AppModule, now show the viewobject in DataControl

    ramkumar kuruba June 19, 2013 at 12:16 AM

    hi AmitQ28 How to initialize ADF Taskflow?Ans: Open the taskflow in Overview Mode select general like there is initiallizer property. you can provide the any method reference which will get invoked whenever taskflow instance created.for this answer i didn't find any initiallizer property in general in the overview tab in adfc-config.xml taskflow, please givedetails regarding to this

    Reply

    Anonymous June 28, 2013 at 8:05 AM

    I got one doubt, our requirement is to generate char sequence. we generate the char sequence 10L70A0401-10L70AO450 and later I start my sequence 10L70A04A1-10L70A04A9 so please post char sequence java code for thisrequriment

    Reply

    Anonymous July 21, 2013 at 12:11 PM

    Thanks a lot for sharing.Its really helpful

    Reply

    Anonymous August 8, 2013 at 4:10 AM

    hi amit i have one doubt regarding to adf tree , i set application module in hierarchyregions,locations,countries,departments,employees in the oracle 11g database,employees details should be updatewhen any one of the hierarchy , i made jsf page into two parts by using panel splitter , in one section i taken tree , inanother section employees adf form, please resolve my problem

    Reply

    prakash kadam August 26, 2013 at 11:24 PM

    This is the information that I was looking for and let me tell you one thing that is it is very useful for who is looking forORACLE ADF.

    Reply

    kishor mahakale August 27, 2013 at 11:26 PM

    Really good piece of knowledge, I had come back to understand regarding your website from my friend Sumit,Hyderabad And it is very useful for who is looking for ORACLE ADF.

    Reply

    Anonymous September 4, 2013 at 7:17 PM

    Thanks a lot for sharing this info

    Reply

    converted by Web2PDFConvert.com

  • Newer Post Older PostHome

    Subscribe to: Post Comments (Atom)

    Enter your comment...

    Comment as: Select profile...

    PublishPublish

    PreviewPreview

    Thanks for your valuable comment. You comment will go live soon.

    babu m October 25, 2013 at 4:40 AM

    It was nice article it was very useful for me as well as useful foronline Oracle ADF training learners. thanks for providingthis valuable information.

    Reply

    kumar November 9, 2013 at 2:04 AM

    Thanks for this valuble information and itis useful for us .Biginfosys also provides the best Oracle ADF online trainingclasses in India.

    Reply

    Picture Window template. Powered by Blogger.

    converted by Web2PDFConvert.com