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 Result
toResult(ResultSet rs)
Converts aResultSet
object to aResult
object.static Result
toResult(ResultSet rs, int maxRows)
ConvertsmaxRows
of aResultSet
object to aResult
object.
-
-
-
Method Detail
-
toResult
public static Result toResult(ResultSet rs)
Converts aResultSet
object to aResult
object.- Parameters:
rs
- theResultSet
object- Returns:
- The
Result
object created from theResultSet
-
toResult
public static Result toResult(ResultSet rs, int maxRows)
ConvertsmaxRows
of aResultSet
object to aResult
object.- Parameters:
rs
- theResultSet
objectmaxRows
- the maximum number of rows to be cached into theResult
object.- Returns:
- The
Result
object created from theResultSet
, limited bymaxRows
-
-