Hi there,


I have a new ;-) question... You've added paging support for Criteria classes 
generated by AndroMDA - it's working. But is there any way to COUNT entities 
returned by some criteria WITHOUT initializing whole collection?



I want to make 'classic' paging UI:

<prev    3 page of 12    next>



I made custom DTO:

entityPageDto {

  pageNo : int

  pageCount : int

  pageEntities : entityDto[]

}



EntityDao has two methods:

getByCriteria(criteria) - it's completely generated, not needing any 
hand-codeing

getByCriteriaPaged(criteria, perPage: int, pageNo: int) : entityPageDto



this second method is filling entityPageDto using getByCriteria but how can I - 
in some 'smart' way - obtain pageCount without initializing whole collection by 
calling getByCriteria(criteria) with 'non-paged' criteria object?



I hope I made myself clear... ;-)
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2526#2526
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to