Пример #1
0
 @Override
 protected BoundSql getDefaultBoundSql(Object parameterObject) {
   String tempSql = sql;
   String orderBy = OrderByHelper.getOrderBy();
   if (orderBy != null) {
     tempSql = OrderByParser.converToOrderBySql(sql, orderBy);
   }
   return new BoundSql(configuration, tempSql, parameterMappings, parameterObject);
 }
Пример #2
0
 @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);
 }