Class QueryResult


  • public class QueryResult
    extends Object
    The results of a SQL Select query, in a easy to parse/manipulate data structure compared to java.sql.ResultSet.
    • Constructor Detail

      • QueryResult

        public QueryResult​(List<String> columnNames,
                           String tableName)
        WARNING: Constructor only needed for testing
        Parameters:
        columnNames - name of columns
        tableName - name of table the columns belongs to
      • QueryResult

        public QueryResult​(ResultSet resultSet)
    • Method Detail

      • addRow

        public void addRow​(DataRow row)
      • sameVariableNames

        public boolean sameVariableNames​(DataRow row)
      • isEmpty

        public boolean isEmpty()
      • size

        public int size()