@Override
public StatementHelper getQueryStatement(int offset, int limit)
throws UnsupportedOperationException {
StatementHelper sh = new StatementHelper();
StringBuffer query = new StringBuffer(
"SELECT id, service, theme, observations, action FROM myActions");
if (filters != null) {
for (Filter f : filters) {
generateFilter(query, f, filters.indexOf(f) == 0,
FilteringMode.FILTERING_MODE_INCLUSIVE, sh);
}
}
query.append(getOrderByString());
if (offset != 0 || limit != 0) {
query.append(" LIMIT ").append(limit);
query.append(" OFFSET ").append(offset);
}
sh.setQueryString(query.toString());
return sh;
}