public boolean translatesFilter(Filter filter) {
return filter instanceof Between;
}
public String getWhereStringForFilter(Filter filter, StatementHelper sh) {
Between between = (Between) filter;
sh.addParameterValue(between.getStartValue());
sh.addParameterValue(between.getEndValue());
return QueryBuilder.quote(between.getPropertyId()) + " BETWEEN ? AND ?";
}