SelectionResults
| Type | TYPE_EMOJI TYPE |
| Package | io.github.mrtesz.teszcore.db.selection |
| GitHub | SelectionResults.java |
| Implements | Copyable<SelectionResults> |
Description
Class for simple handling results of a selection
Constructor
SelectionResults(List<Map<String, Object>> results);
| Parameter | Type | Annotations | Description |
|---|---|---|---|
results | List<Map<String, Object>> | @NotNull | Execution results as a List of Maps representing the selected rows |
Methods
isEmpty
boolean isEmpty();
See if the results are empty
Returns: boolean — true if the results are empty
getFirst
SelectionResult getFirst();
Get the first result of all results
Returns: SelectionResult — the first result
asList
List<SelectionResult> asList();
Get the results of the selection
Returns: List<SelectionResult> — results
asMap
List<Map<String, Object>> asMap();
Get the results of the selection as a list of the selected rows represented in a map
Returns: List<Map<String, Object» — results as a list of the selected rows represented in a map
copy
implemented from Copyable.java
T: SelectionResults