use of org.jmesa.limit.RowSelectImpl in project OpenClinica by OpenClinica.
the class AbstractTableFactory method getRowSelects.
private ArrayList<RowSelect> getRowSelects(int size) {
ArrayList<RowSelect> rowSelects = new ArrayList<RowSelect>();
int i = 0;
for (i = 0; i < size / 50; i++) {
RowSelect rowSelect = new RowSelectImpl(i + 1, 50, size);
rowSelects.add(rowSelect);
}
if (size % 50 > 0) {
RowSelect rowSelect = new RowSelectImpl(i + 1, size % 50, size);
rowSelects.add(rowSelect);
}
return rowSelects;
}
Aggregations