public class ResultList extends PagedList implements org.displaytag.pagination.PaginatedList
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
CVS ID
|
Constructor and Description |
---|
ResultList(java.sql.ResultSet rs)
Create a new ResultList of the default page size, set to page 1.
|
ResultList(java.sql.ResultSet rs,
int page)
Create a new ResultList of the default page size, set to a specific page.
|
ResultList(java.sql.ResultSet rs,
int page,
int opp,
boolean ascending)
Create a new ResultList, set to a specific page, with a given page size.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getColumnNames()
Get the column names as returned by the database.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getList() |
static java.util.Map<java.lang.String,java.lang.Object> |
getMap(java.sql.ResultSetMetaData meta,
java.sql.ResultSet rs)
Get a map of column names to values for the current row.
|
getFullListSize, getObjectsPerPage, getPageNumber, getSearchId, getSortCriterion, getSortDirection, setFullListSize, setObjectsPerPage, setPageNumber, setSortDirection
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
finalize, getClass, notify, notifyAll, wait, wait, wait
public static final java.lang.String ID
public ResultList(java.sql.ResultSet rs) throws java.sql.SQLException
rs
- The datajava.sql.SQLException
- Could not read datapublic ResultList(java.sql.ResultSet rs, int page) throws java.sql.SQLException
rs
- The datapage
- The page numberjava.sql.SQLException
- Could not read datapublic ResultList(java.sql.ResultSet rs, int page, int opp, boolean ascending) throws java.sql.SQLException
rs
- The datapage
- The page numberopp
- Objects (rows) per pageascending
- If true, it is sorted in ascending orderjava.sql.SQLException
- Could not read datapublic java.util.List<java.lang.String> getColumnNames() throws java.sql.SQLException
java.sql.SQLException
- Could not read column namespublic static final java.util.Map<java.lang.String,java.lang.Object> getMap(java.sql.ResultSetMetaData meta, java.sql.ResultSet rs) throws java.sql.SQLException
meta
- query meta-datars
- query resultjava.sql.SQLException
- Error fetching valuesCopyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona