Package jakarta.servlet.jsp.jstl.sql
Class ResultSupport
- java.lang.Object
 - 
- jakarta.servlet.jsp.jstl.sql.ResultSupport
 
 
- 
public class ResultSupport extends Object
Supports the creation of a jakarta.servlet.jsp.jstl.sql.Result object from a source java.sql.ResultSet object. A Result object makes it much easier for page authors to access and manipulate the data resulting from a SQL query.
- Author:
 - Justyna Horwat
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ResultSupport() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResulttoResult(ResultSet rs)Converts aResultSetobject to aResultobject.static ResulttoResult(ResultSet rs, int maxRows)ConvertsmaxRowsof aResultSetobject to aResultobject. 
 - 
 
- 
- 
Method Detail
- 
toResult
public static Result toResult(ResultSet rs)
Converts aResultSetobject to aResultobject.- Parameters:
 rs- theResultSetobject- Returns:
 - The 
Resultobject created from theResultSet 
 
- 
toResult
public static Result toResult(ResultSet rs, int maxRows)
ConvertsmaxRowsof aResultSetobject to aResultobject.- Parameters:
 rs- theResultSetobjectmaxRows- the maximum number of rows to be cached into theResultobject.- Returns:
 - The 
Resultobject created from theResultSet, limited bymaxRows 
 
 - 
 
 -