FileDocCategorySizeDatePackage
ResultSupport.javaAPI DocGlassfish v2 API3474Sat May 05 19:17:14 BST 2007javax.servlet.jsp.jstl.sql

ResultSupport

public class ResultSupport extends Object

Supports the creation of a javax.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

Fields Summary
Constructors Summary
Methods Summary
public static ResulttoResult(java.sql.ResultSet rs)
Converts a ResultSet object to a Result object.

param
rs the ResultSet object
return
The Result object created from the ResultSet

        try {
            return new ResultImpl(rs, -1, -1);
        } catch (SQLException ex) {
            return null;
        }
    
public static ResulttoResult(java.sql.ResultSet rs, int maxRows)
Converts maxRows of a ResultSet object to a Result object.

param
rs the ResultSet object
param
maxRows the maximum number of rows to be cached into the Result object.
return
The Result object created from the ResultSet, limited by maxRows

        try {
            return new ResultImpl(rs, -1, maxRows);
        } catch (SQLException ex) {
            return null;
        }