1 2 3 4 5 6 7 8 9 10 11 12 13
package org.openslx.imagemaster.db; public class Paginator { public static final int PER_PAGE = 400; public static String limitStatement( int page ) { return " LIMIT " + ( page * PER_PAGE ) + ", " + PER_PAGE; } }