public class RMSQLUtils
extends java.lang.Object
Constructor and Description |
---|
RMSQLUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.util.Map> |
getMaps(java.sql.ResultSet aResultSet,
int aLimit)
Returns a list of maps for a given ResultSet.
|
static java.util.Map |
getMapsDeep(java.util.Map aMap,
int aDepth)
Returns map where any ResultSets have been converted to Lists.
|
public static java.util.List<java.util.Map> getMaps(java.sql.ResultSet aResultSet, int aLimit)
aResultSet
- the result set to be converted to a list of maps.aLimit
- the fetch limit for the list of maps. Use -1, 0 or Integer.MAX_VALUE for unlimited.public static java.util.Map getMapsDeep(java.util.Map aMap, int aDepth)
aMap
- the map to be stripped of result sets.aDepth
- the depth to traverse any nested maps or lists (suggested value: 2).