|
JavaServer Pages(TM) Standard Tag Library 1.2 API 1.0.3.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.taglibs.standard.tag.common.sql.ResultImpl
public class ResultImpl
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.
Note -- this is a private copy for the RI to avoid making the corresponding class in javax.servlet.* public.
Constructor Summary | |
---|---|
ResultImpl(ResultSet rs,
int startRow,
int maxRows)
This constructor reads the ResultSet and saves a cached copy. |
Method Summary | |
---|---|
String[] |
getColumnNames()
Returns an array of String objects. |
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 of the query was limited by a maximum row setting |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultImpl(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 limit
if
- a database error occurs
SQLException
Method Detail |
---|
public SortedMap[] getRows()
getRows
in interface Result
public Object[][] getRowsByIndex()
getRowsByIndex
in interface Result
public String[] getColumnNames()
getColumnNames
in interface Result
public int getRowCount()
getRowCount
in interface Result
public boolean isLimitedByMaxRows()
isLimitedByMaxRows
in interface Result
|
JavaServer Pages(TM) Standard Tag Library 1.2 API 1.0.3.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |