Re: 'LIKE' Expression on PrototypeQueries:

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Jun 11 2003 - 11:21:26 EDT

  • Next message: Martin Ruff: "oracle PK generation problem?"

    Indeed looks like a hole in the API. Tonight I will see if I should change
    this to accept Object as a second parameter.

    Andrus

    > 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!



    This archive was generated by hypermail 2.0.0 : Wed Jun 11 2003 - 11:21:26 EDT