Search in sources :

Example 1 with RowSelectImpl

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;
}
Also used : RowSelectImpl(org.jmesa.limit.RowSelectImpl) RowSelect(org.jmesa.limit.RowSelect) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 RowSelect (org.jmesa.limit.RowSelect)1 RowSelectImpl (org.jmesa.limit.RowSelectImpl)1