Re: performQuery generics

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Sun Jan 20 2008 - 16:00:46 EST

  • Next message: Aristedes Maniatis: "Re: 3.0M3 Release Plan"

    There is even a name for the kind of pattern we discussed for the new
    set of queries - "fluent interface":

        http://www.martinfowler.com/bliki/FluentInterface.html

    Andrus

    On Jan 13, 2008, at 4:32 PM, Andrus Adamchik wrote:

    > Select<Artist> query1 = new Select<Artist>(Artist.class);
    > query1.andQualifier("artistName = 'ABC'")
    > .orQualifier("artistName = 'XYZ'")
    > .orderAscending(Artist.ARTIST_NAME_PROPERTY);
    > List<Artist> artists = context.performQuery(query1);



    This archive was generated by hypermail 2.0.0 : Sun Jan 20 2008 - 16:01:19 EST