Package com.helixframework.db.repository
Interface ResultSetMapper<T>
- Type Parameters:
T- The type of object to be mapped from the ResultSet
- All Superinterfaces:
ResultSetSupport
The ResultSetMapper interface is used for mapping a ResultSet to an object or a list of objects.
-
Method Summary
Methods inherited from interface com.helixframework.db.repository.ResultSetSupport
getBooleanOrDefault, getBooleanOrNull, getDoubleOrDefault, getDoubleOrNull, getFloatOrDefault, getFloatOrNull, getIntOrDefault, getIntOrNull, getLongOrDefault, getLongOrNull, getObjectOrDefault, getObjectOrNull, getOptionalBoolean, getOptionalDouble, getOptionalFloat, getOptionalInt, getOptionalLong, getOptionalObject, getOptionalZonedDateTime, getZonedDateTimeOrDefault, getZonedDateTimeOrNull, hasColumn, isValid
-
Method Details
-
map
Maps aResultSetto an object of typeT.- Parameters:
rs- The ResultSet to be mapped- Returns:
- An object of type
Tmapped from the ResultSet - Throws:
SQLException- In case of a SQLException
-
mapAll
Maps each row of a ResultSet to a list of objects of type T.- Parameters:
rs- The ResultSet to be mapped- Returns:
- A
List<T>containing the mapped objects from the ResultSet - Throws:
SQLException- If an error occurs while accessing the ResultSet
-