com.caucho.jstl
Class ResultImpl

java.lang.Object
  extended by com.caucho.jstl.ResultImpl
All Implemented Interfaces:
Result

public class ResultImpl
extends java.lang.Object
implements Result

Returns the result of a SQL query.


Constructor Summary
ResultImpl(java.sql.ResultSet rs, int maxRows)
           
 
Method Summary
 java.lang.String[] getColumnNames()
           
 int getRowCount()
           
 java.util.SortedMap[] getRows()
           
 java.lang.Object[][] getRowsByIndex()
           
 boolean isLimitedByMaxRows()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultImpl

public ResultImpl(java.sql.ResultSet rs,
                  int maxRows)
           throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

getRows

public java.util.SortedMap[] getRows()
Specified by:
getRows in interface Result

getRowsByIndex

public java.lang.Object[][] getRowsByIndex()
Specified by:
getRowsByIndex in interface Result

getColumnNames

public java.lang.String[] getColumnNames()
Specified by:
getColumnNames in interface Result

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface Result

isLimitedByMaxRows

public boolean isLimitedByMaxRows()
Specified by:
isLimitedByMaxRows in interface Result