devsource360

Does findByKey help for transient VO.

This item was filled under [ MISC. ]


That is interesting. Came across this in one of our team tech presentations.
let me jott down the points ..
1.TransientVO is a type of viewobject where rows are supposed to be populated programmatically unlike entity or query based VO where rows are populated from entity cache or directly from db.

2.Now, per my last post, we already know that findBykey() is actually meant for entity object based view objects where the rows from entity cache can be fetched more efficiently using key columns which are indexed. Now, if we enforce the findByKey() to find rows based on key column in a transient VO then it unnecessarily performs some steps like checking if it is an entity based VO, checking for key columns, checking for indexes etc, which is of no use.
Now, since all the rows are already in transient VO cache, so we can directly use getFilteredRows() or getRow(key). Thus, in this case findByKey() won’t be good to use.






Rate this topic:
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
Popularity: 20 views
You can follow any responses to this entry through the RSS 2.0 feed. Responses are currently closed, but you can trackback from your own site.


Does findByKey help for transient VO. Copyright: You should confirm all information about Does findByKey help for transient VO. full version edition(freeware/shareware) before downloading or relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators or key gen, cd key, hacks, dvd rip is illegal and prevent future development of Does findByKey help for transient VO. full version edition. Download links are directly from our publisher sites or from the link provided by users, torrent files or links from rapidshare.com, yousendit.com, megaupload.com, netload.in, storage.to or depositfiles.com are not allowed.