Re: Testing for Pagination

From: Gary Jarrel (garyjarre..mail.com)
Date: Wed Jun 30 2010 - 07:07:42 UTC

  • Next message: Andrus Adamchik: "Re: Testing for Pagination"

    So given the query

    SelectQuery s = new SelectQuery(Role.class);
    s.setPageSize(2);
    List<Role> results = getDataContext().performQuery(s);

    How can I use the PersistentObjectList ???

    Thank you

    Gary

    On Wed, Jun 30, 2010 at 4:24 PM, Andrus Adamchik <andru..bjectstyle.org> wrote:
    > Exactly. Essentially it is "List.get(int)" method that loads the page, so
    > once you get an object via this method it is already inflated.
    >
    > Andrus
    >
    > On Jun 30, 2010, at 8:40 AM, Andrey Razumovsky wrote:
    >
    >> For getting unresolved list, you can use
    >> PersistentObjectList.getValueDirectly(), if that helps
    >>

    <snip>



    This archive was generated by hypermail 2.0.0 : Wed Jun 30 2010 - 07:09:15 UTC