public class TinyResult extends Object
This class creates a cached version of a ResultSet. It's represented as a Result implementation, capable of returing an array of Row objects containing a Column instance for each column in the row. It is not part of the JSTL API; it serves merely as a back-end to ResultSupport's static methods. Thus, we scope its access to the package.
| Constructor and Description |
|---|
TinyResult(ResultSet rs,
int startRow,
int maxRows)
This constructor reads the ResultSet and saves a cached copy.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getColumnNames()
Returns an array of String objects.
|
String |
getDebugInfo()
This method is added by Yong Zhu
|
List |
getFirstColumns()
This method is added by Yong Zhu
|
int |
getRowCount()
Returns the number of rows in the cached ResultSet
|
SortedMap[] |
getRows()
Returns an array of SortedMap objects.
|
Object[][] |
getRowsByIndex()
Returns an array of Object[] objects.
|
boolean |
isLimitedByMaxRows()
Returns true if the query was limited by a maximum row setting
|
public TinyResult(ResultSet rs, int startRow, int maxRows) throws SQLException
rs - an open ResultSet, positioned before the first rowstartRow - beginning row to be cachedmaxRows - query maximum rows limitSQLException - if a database error occurspublic SortedMap[] getRows()
public Object[][] getRowsByIndex()
public String[] getColumnNames()
public int getRowCount()
public boolean isLimitedByMaxRows()
public List getFirstColumns()
public String getDebugInfo()
Copyright © 2017. All rights reserved.