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.
- If hasNextForCollection retuns true,
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