public class SQLTransform
extends java.lang.Object SQLTransform provides helper methods for converting java.sql.ResultSet objects to desired return data structures. See the DataSource Operations section of the client reference docs for a mapping of operationType to expected data structure.| Modifier and Type | Method and Description | 
|---|---|
| static java.util.List | toListOfMaps(java.sql.ResultSet rs)Converts all rows of a  ResultSetobject to return aListofMapobjects. | 
| static java.util.List | toListOfMaps(java.sql.ResultSet rs, long numRows)Converts a  ResultSetobject to return aListofMapobjects for the number of rows given bynumRows. | 
public static java.util.List toListOfMaps(java.sql.ResultSet rs)
                                   throws java.lang.Exception ResultSet object to return a List of Map objects. rs - ResultSet object to be convertedjava.util.List containing the result as a java.util.Map of name-value pairsjava.sql.SQLExceptionjava.lang.Exceptionpublic static java.util.List toListOfMaps(java.sql.ResultSet rs,
                                          long numRows)
                                   throws java.lang.Exception ResultSet object to return a List of Map objects for the number of rows given by numRows. This expanded signature is primarily useful if you're responding to a paged request.rs - ResultSet object to be convertednumRows - the number of rows to convertjava.util.List containing the result as a java.util.Map of name-value pairsjava.sql.SQLExceptionjava.lang.Exception