Package com.d3x.core.db
Interface DatabaseMapping.Mapper<T>
-
- Type Parameters:
T- the type produced by this Mapper
- Enclosing interface:
- DatabaseMapping<T>
- 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 static interface DatabaseMapping.Mapper<T>A Mapper that can create an Object from the current row in a ResultSet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tmap(java.sql.ResultSet rs)Returns an record created from the current row in the ResultSet
-
-
-
Method Detail
-
map
T map(java.sql.ResultSet rs) throws java.sql.SQLException
Returns an record created from the current row in the ResultSet- Parameters:
rs- the SQL ResultSet reference- Returns:
- the newly created record
- Throws:
java.sql.SQLException- if there is an error creating record
-
-