/** * Converts a RowSet into a PageableRowSet, stores the PageableRowSet * result in the cache and then returns the PageableRowSet. A unique * id will be created for the PagedRowSet. * * @param rowset RowSet to be cached for paged access. * @param pageSize Size of the first page to be sent to the client. Default * is 25 if pageSize is set to 0 or less. If all records should be sent at once * consider not caching the RowSet or specify Integer.MAX_VALUE. * * @return resulting <tt>PageableRowSet</tt> of the <tt>RowSet</tt> conversion */ public static PageableRowSet cacheRowSet(RowSet rowset, int pageSize) { if (pageSize <= 0) pageSize = DEFAULT_PAGE_SIZE; PageableRowSet prs = new PagedRowSet(rowset, pageSize, true); cachePageableRowSet(prs); return prs; }
/** * Converts a RowSet into a PageableRowSet, stores the PageableRowSet * result in the cache and then returns the PageableRowSet. A unique * id will be created for the PagedRowSet. * * @param rowset RowSet to be cached for paged access. * @param pageSize Size of the first page to be sent to the client. Default * is 25 if pageSize is set to 0 or less. If all records should be sent at once * consider not caching the RowSet or specify Integer.MAX_VALUE. * * @return resulting <tt>PageableRowSet</tt> of the <tt>RowSet</tt> conversion */ public static PageableRowSet cacheRowSet(RowSet rowset, int pageSize) { if (pageSize <= 0) pageSize = DEFAULT_PAGE_SIZE; PageableRowSet prs = new PagedRowSet(rowset, pageSize, true); cachePageableRowSet(prs); return prs; }
instance = new PagedRowSet((RowSet)instance, HUGE_PAGE_SIZE, false);
instance = new PagedRowSet((RowSet)instance, HUGE_PAGE_SIZE, false);
instance = new PagedRowSet((RowSet)instance, HUGE_PAGE_SIZE, false);
o = new PagedRowSet((RowSet)o, Integer.MAX_VALUE, false);
o = new PagedRowSet((RowSet)o, Integer.MAX_VALUE, false);
o = new PagedRowSet((RowSet)o, Integer.MAX_VALUE, false);
o = new PagedRowSet((RowSet)o, Integer.MAX_VALUE, false);
o = new PagedRowSet((RowSet)o, Integer.MAX_VALUE, false);
o = new PagedRowSet((RowSet)o, Integer.MAX_VALUE, false);
o = new PagedRowSet((RowSet)o, Integer.MAX_VALUE, false);
o = new PagedRowSet((RowSet)o, Integer.MAX_VALUE, false);
o = new PagedRowSet((RowSet)o, Integer.MAX_VALUE, false);