public boolean translatesFilter(Filter filter) {
return filter instanceof Compare;
}
public String getWhereStringForFilter(Filter filter, StatementHelper sh) {
Compare compare = (Compare) filter;
sh.addParameterValue(compare.getValue());
String prop = QueryBuilder.quote(compare.getPropertyId());
switch (compare.getOperation()) {
case EQUAL:
return prop + " = ?";
case GREATER:
return prop + " > ?";
case GREATER_OR_EQUAL: