@Override protected BoundSql getPageBoundSql(Object parameterObject) { String tempSql = sql; String orderBy = OrderByHelper.getOrderBy(); if (orderBy != null) { tempSql = OrderByParser.converToOrderBySql(sql, orderBy); } tempSql = parser.getPageSql(tempSql); return new BoundSql( configuration, tempSql, parser.getPageParameterMapping(configuration, original.getBoundSql(parameterObject)), parameterObject); }
@Override protected BoundSql getCountBoundSql(Object parameterObject) { return new BoundSql(configuration, parser.getCountSql(sql), parameterMappings, parameterObject); }