return getLimit(request,totalRows, defautPageSize,null);
}
static public Limit getLimit(HttpServletRequest request, int totalRows,int defautPageSize,String tableId) {
Context context = new HttpServletRequestContext(request);
LimitFactory limitFactory = null;
if(tableId == null)
limitFactory = new TableLimitFactory(context);
else
limitFactory = new TableLimitFactory(context,tableId);
TableLimit limit = new TableLimit(limitFactory);