Package org.evomaster.client.java.sql
Class QueryResult
java.lang.Object
org.evomaster.client.java.sql.QueryResult
The results of a SQL Select query, in a easy to parse/manipulate data structure
compared to java.sql.ResultSet.
-
Constructor Summary
ConstructorsConstructorDescriptionQueryResult(ResultSet resultSet) QueryResult(List<String> columnNames, String tableName) WARNING: Constructor only needed for testingQueryResult(List<VariableDescriptor> variableDescriptorList) -
Method Summary
-
Constructor Details
-
QueryResult
-
QueryResult
WARNING: Constructor only needed for testing- Parameters:
columnNames- name of columnstableName- name of table the columns belongs to
-
QueryResult
-
-
Method Details
-
addRow
-
addRow
-
sameVariableNames
-
sameVariableNames
-
seeRows
-
seeVariableDescriptors
-
isEmpty
public boolean isEmpty() -
size
public int size() -
toString
-
toDto
-
getTableName
Retrieves the table name of this queryResult.- Returns:
- the table name of the first
VariableDescriptorin thevariableDescriptorslist. - Throws:
IllegalStateException- if thevariableDescriptorslist is empty.
-