'LIKE' Expression on PrototypeQueries:

From: Adrian (kadrianu..ahoo.com)
Date: Wed Jun 11 2003 - 07:47:30 EDT

  • Next message: Adrian: "Can't enable SQL tracing:"

    In this sample code:

            List list = new ArrayList();
            list.add(ExpressionFactory.matchExp("name",
    new ExpressionParameter("name")));
           
    list.add(ExpressionFactory.likeIgnoreCaseExp("lastName",
    new ExpressionParameter("lastName"))); //* Line to
    replace
            Expression exp =
    ExpressionFactory.joinExp(Expression.AND, list);
            prototypeContestQuery = new
    SelectQuery(Contest.class, exp);

    I know the line with an * doesn't compile...the
    correct signature for the method is:

    ExpressionFactory.likeIgnoreCaseExp(String,
    String)...but I can't find the correct way to
    incorporate a LIKE or LIKE (ignore case) in a
    prototypeQuery....Thx in advance!

    __________________________________
    Do you Yahoo!?
    Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
    http://calendar.yahoo.com



    This archive was generated by hypermail 2.0.0 : Wed Jun 11 2003 - 07:46:02 EDT