Interface GenericDAOImpl.ExtractEntity<T>
- Type Parameters:
T- Type of Entity
- Enclosing class:
GenericDAOImpl<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Extract entity from ResultSet in JavaBean
-
Method Summary
Modifier and TypeMethodDescriptionExample -
User user = new User
user.setId(rs.getInt(1));
user.setName(rs.getString("name"));
return user
-
Method Details
-
extractEntity
Example -
User user = new User
user.setId(rs.getInt(1));
user.setName(rs.getString("name"));
return user- Returns:
- T - Filled Entity
- Throws:
SQLException
-