inExp vs inDbExp

From: Mike Kienenberger (mkienen..laska.net)
Date: Mon Apr 19 2004 - 15:29:40 EDT

  • Next message: Craig Jones: "RE: Recall object by it's PK? (e.g. w/Lucene)"

    Most of the methods in ExpressionFactory are convenience methods.

    matchDbExp:
           return new ASTEqual(new ASTDbPath(pathSpec), value);

    matchExp
           return new ASTEqual(new ASTObjPath(pathSpec), value);

    So if

    inExp:
            return new ASTIn(new ASTObjPath(pathSpec), new ASTList(values));

    then

    inDbExp
            return new ASTIn(new ASTDbPath(pathSpec), new ASTList(values));

    If you ask on the dev list, the committers would likely add it to the class,
    but you can easily use the long form in the meantime.



    This archive was generated by hypermail 2.0.0 : Mon Apr 19 2004 - 15:28:09 EDT