ResultSupportpublic 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. |
Methods Summary |
---|
public static Result | toResult(java.sql.ResultSet rs)Converts a ResultSet object to a Result object.
try {
return new ResultImpl(rs, -1, -1);
} catch (SQLException ex) {
return null;
}
| public static Result | toResult(java.sql.ResultSet rs, int maxRows)Converts maxRows of a ResultSet object to a
Result object.
try {
return new ResultImpl(rs, -1, maxRows);
} catch (SQLException ex) {
return null;
}
|
|