public class QueryResultSet extends Object
This class only allows a case-insensitive handling of table names and provides mechanisms to add, retrieve, and manage query results.
| Constructor and Description |
|---|
QueryResultSet()
Creates a QueryResult set with default case sensitivity (case-insensitive).
|
| Modifier and Type | Method and Description |
|---|---|
void |
addQueryResult(QueryResult queryResult)
Adds a query result to the result set.
|
static QueryResultSet |
build(QueryResult... data) |
QueryResult |
getQueryResultForNamedTable(String tableName)
Retrieves the query result associated with a named table.
|
public QueryResultSet()
public static QueryResultSet build(QueryResult... data)
public void addQueryResult(QueryResult queryResult)
If the query result corresponds to a named table, it is stored in the map. If it corresponds to a virtual table, it is stored separately. Throws an exception if a duplicate table (named or virtual) is added.
queryResult - the query result to addIllegalArgumentException - if the table name already exists in the setpublic QueryResult getQueryResultForNamedTable(String tableName)
tableName - the name of the tablenull if no result existsCopyright © 2016–2025. All rights reserved.