Name
Result
Synopsis
The Result
interface is implemented by the
object returned as the result from the
<sql:query>
action. Its methods provide
access to the query result.
Synopsis
Interface name: |
javax.servlet.jsp.jstl.sql.Result |
Extends: |
None |
Implemented by: |
The JSTL |
Methods
-
public String[] getColumnNames( )
Returns an array of
String
objects, representing the column values in the same order as in the arrays returned bygetRowsByIndex( )
.-
public int getRowCount( )
Returns the number of rows in the result.
-
public java.util.SortedMap[] getRows( )
Returns an array of
SortedMap
objects. Each array element represents a row, and the map contains the column values, with the column name as a case-insensitive key.-
public Object[][] getRowsByIndex( )
Returns an array of arrays. The first array dimension represents rows and the second the column values.
-
public boolean isLimitedByMaxRows( )
Returns
true
if the result was limited by the maximum rows configuration setting or action element attribute.
Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.