Class Records
- java.lang.Object
-
- com.chutneytesting.action.sql.core.Records
-
public class Records extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Map<String,Object>asMap(int index)intcount()Stringprintable(int limit)Rowrow(int index)StringrowAsString(Map<String,Object> row, Map<String,Integer> maxColumnLength)Rowsrows()StringtableHeaders(Map<Column,Integer> maxColumnLength)StringtableRows(int limit, Map<Column,Integer> maximumColumnLength)List<Map<String,Object>>toListOfMaps()Deprecated.List<Map<String,Object>>toListOfMaps(int n)Deprecated.Object[][]toMatrix()StringtoString()
-
-
-
Method Detail
-
rows
public Rows rows()
-
row
public Row row(int index)
-
count
public int count()
-
toMatrix
public Object[][] toMatrix()
-
toListOfMaps
@Deprecated public List<Map<String,Object>> toListOfMaps()
Deprecated.
-
toListOfMaps
@Deprecated public List<Map<String,Object>> toListOfMaps(int n)
Deprecated.This method is deprecated because it is bugged by design. Since a row is a Map, where the key is the column name and value is the effective data, it can't represent different columns having the same name. - Parameters:
n- limit the number of returned rows- Returns:
- list of rows, a row being a Map where the key is the column name and value is the effective data
-
printable
public String printable(int limit)
-
rowAsString
public String rowAsString(Map<String,Object> row, Map<String,Integer> maxColumnLength)
-
-