This blog is helpful for those who are new in Oracle ADF 12c as well as for the professionals. This blog contains the basic and advanced concept of Oracle ADF 12c.

Tuesday 14 March 2017

Lifecycle of View Object?

When View Object is called , the following methods of ViewObjectImpl are executed in a sequence. 
  • executeQueryForCollection(Object qc, Object[] params, int noUserParams) :-
        This method executes the Database Query in the viewObject and then calls the next method.

       After the execution of executeQueryForCollection
  • hasNextForCollection(Object qc) is called.
         It checks whether the collection has returned a row or not,  If it returns True then the next method of life cycle is called which converts the row to ADF understandable form i.e into ViewObjectRowImpl form.

  • If hasNextForCollection retuns true
         then method createRowFromResultSet(Object qc, ResultSet resultSet) is called.

         if it return false,
         then it comes out from the lifecycle.

  • This goes on until all the rows are covered and there is no rows left in collection. When there are no rows in the collection then the method hasNextForCollection returns false.

  • Then method setFetchCompleteForCollection(java.lang.Object qc,boolean val) is called and it sets the flag for fetch completion. This indicates that the rows from the collection are fetched.

0 comments:

Post a Comment

Social Profiles

Google Plus Email

Popular Posts

palash dabkara . Powered by Blogger.

Followers

Copyright © Oracle ADF 12c (Application Development Framework) Tutorial for Beginners | Powered by Blogger
Design by Palash Dabkara