Skip to content

Commit

Permalink
Support for Filter method .contains()
Browse files Browse the repository at this point in the history
  • Loading branch information
hopecee authored Jan 13, 2018
1 parent 0d44b87 commit 8d93f4a
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ else if (expr.getOperator() == Expression.OP_DISTINCT)
{
return processDistinctExpression(expr);
}
else if (expr.getOperator() == Expression.OP_CONTAINS)
{
return processContainsExpression(expr);
}
return compilePrimaryExpression(expr);
}

Expand Down Expand Up @@ -581,4 +585,14 @@ protected Object processLiteral(Literal expr)
{
throw new NucleusException("Literals are not supported by this mapper");
}
}
/**
* Method to process the supplied CONTAINS expression.
* To be implemented by subclasses.
* @param expr The expression
* @return The result
*/
protected Object processContainsExpression(Expression expr)
{
throw new NucleusException("Operation CONTAINS is not supported by this mapper");
}
}

0 comments on commit 8d93f4a

Please sign in to comment.