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.
Note that these methods hide any SQLExceptions that are caused and return null - to work around that use org.apache.taglibs.standard.tag.common.sql.ResultImpl directly.
| Constructor and Description |
|---|
ResultSupport() |
public static Result toResult(ResultSet rs)
ResultSet object to a Result object.rs - the ResultSet objectResult object created from the ResultSetpublic static Result toResult(ResultSet rs, int maxRows)
maxRows of a ResultSet object to a
Result object.rs - the ResultSet objectmaxRows - the maximum number of rows to be cached into the Result object.Result object created from the ResultSet,
limited by maxRowsCopyright © 2001-2014 The Apache Software Foundation. All Rights Reserved.