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.
Performs Row mapping from result set to domain object properties.
Usage
this.jdbcTemplate.executeQuery(SELECT_SQL, (resultSet, rowNumber) -> {
DomainObject domainObject = new DomainObject();
domainObject.setProperty(resultSet.getString("COLUMN_1"));
return domainObject;
}
-
Method Summary
-
Method Details
-
mapRow
- Throws:
SQLException
-