Class SelectionResults
java.lang.Object
io.github.mrtesz.teszcore.db.selection.SelectionResults
- All Implemented Interfaces:
Copyable<SelectionResults>
Class for simple handling results of a selection
-
Constructor Summary
ConstructorsConstructorDescriptionSelectionResults(@NotNull List<Map<String, Object>> results) Execution results as a List of Maps representing the selected rows -
Method Summary
-
Constructor Details
-
SelectionResults
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
getFirst
Get the first result of all results (useful when you are sure you have one result - e.g. selection with unique key selection)- Returns:
- the first result
-
asList
-
asMap
-
copy
Description copied from interface:CopyableCopy the executing class- Specified by:
copyin interfaceCopyable<SelectionResults>- Returns:
- a copy of the class executed in
-