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);

Reply via email to