-
Method Summary
-
Method Details
-
Maps a ResultSet to an Optional. Should be used when only one result is expected from the database.
- Parameters:
set - The ResultSet to get the data from.
- Returns:
- An
Optional containing the ResultSets data.
- Throws:
SQLException - In case the ResultSet can't be read.
-
Maps a ResultSet to a List.
- Parameters:
set - The ResultSet to get the data from.
- Returns:
- A
List containing the ResultSets data.
- Throws:
SQLException - In case the ResultSet can't be read.
-
Maps a ResultSet to a Stream.
- Parameters:
set - The ResultSet to get the data from.
- Returns:
- A
Stream containing the ResultSets data.
- Throws:
SQLException - In case the ResultSet can't be read.
-
Maps a ResultSet to an array.
- Parameters:
set - The ResultSet to get the data from.
- Returns:
- An array containing the
ResultSets data.
- Throws:
SQLException - In case the ResultSet can't be read.
-
Maps a
ResultSet to a
Map.
- Type Parameters:
K - The type of the keys in the map.
- Parameters:
set - The ResultSet to get the data from.
keyMapping - The key function of the map.
- Returns:
- A
Map containing the ResultSets data.
- Throws:
SQLException - In case the ResultSet can't be read.
-
Maps a
ResultSet to a
Map.
- Type Parameters:
K - The type of the keys in the map.
V - The type of the values in the map.
- Parameters:
set - The ResultSet to get the data from.
keyMapping - The key function of the map.
valueMapping - The value function of the map.
- Returns:
- A
Map containing the ResultSets data.
- Throws:
SQLException - In case the ResultSet can't be read.
-
Maps a ResultSet to a Set.
- Parameters:
set - The ResultSet to get the data from.
- Returns:
- A
Set containing the ResultSets data.
- Throws:
SQLException - In case the ResultSet can't be read.