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: |
|
Extends: |
None |
Implemented by: |
The |
Methods
-
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 represents the column values.
-
public String[] getColumnNames( )
Returns an array of
String
objects, representing the column values in the same order as in the arrays returned bygetRowsByIndex( )
.-
public boolean isLimitedByMaxRows( )
Returns
true
if the result was limited by the maximum row configuration setting or action element attributes.
Get JavaServer Pages, Second 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.