Interface RowMapper<T>
-
- Type Parameters:
T- the type of the domain object.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface RowMapper<T>
Performs Row mapping from result set to domain object properties. Usagethis.jdbcTemplate.executeQuery(SELECT_SQL, (resultSet, rowNumber) -> { DomainObject domainObject = new DomainObject(); domainObject.setProperty(resultSet.getString("COLUMN_1")); return domainObject; }
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TmapRow(ResultSet resultSet, int rowNumber)
-
-
-
Method Detail
-
mapRow
T mapRow(ResultSet resultSet, int rowNumber) throws SQLException
- Throws:
SQLException
-
-