Class Records

java.lang.Object
com.chutneytesting.action.sql.core.Records

public class Records extends Object
  • Field Details

  • Constructor Details

    • Records

      public Records(int affectedRows, List<Column> columns, List<Row> records)
  • Method Details

    • 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<String, Object>, 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
    • asMap

      public Map<String,Object> asMap(int index)
    • printable

      public String printable(int limit)
    • tableHeaders

      public String tableHeaders(Map<Column,Integer> maxColumnLength)
    • tableRows

      public String tableRows(int limit, Map<Column,Integer> maximumColumnLength)
    • rowAsString

      public String rowAsString(Map<String,Object> row, Map<String,Integer> maxColumnLength)
    • toString

      public String toString()
      Overrides:
      toString in class Object