public class QueryResult extends Object
| Constructor and Description |
|---|
QueryResult(List<String> columnNames,
String tableName)
WARNING: Constructor only needed for testing
|
QueryResult(List<VariableDescriptor> variableDescriptorList) |
QueryResult(ResultSet resultSet) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRow(DataRow row) |
void |
addRow(List<String> columnNames,
String tableName,
List<Object> row) |
String |
getTableName()
Retrieves the table name of this queryResult.
|
boolean |
isEmpty() |
boolean |
sameVariableNames(DataRow row) |
boolean |
sameVariableNames(List<String> columnNames,
String tableName) |
List<DataRow> |
seeRows() |
List<VariableDescriptor> |
seeVariableDescriptors() |
int |
size() |
QueryResultDto |
toDto() |
String |
toString() |
public QueryResult(List<VariableDescriptor> variableDescriptorList)
public QueryResult(List<String> columnNames, String tableName)
columnNames - name of columnstableName - name of table the columns belongs topublic QueryResult(ResultSet resultSet)
public void addRow(DataRow row)
public boolean sameVariableNames(DataRow row)
public List<VariableDescriptor> seeVariableDescriptors()
public boolean isEmpty()
public int size()
public QueryResultDto toDto()
public String getTableName()
VariableDescriptor in the variableDescriptors list.IllegalStateException - if the variableDescriptors list is empty.Copyright © 2016–2025. All rights reserved.