Package net.sf.jkniv.whinstone
Interface ResultRow<T,R>
-
- Type Parameters:
T- Type of objects thats must be returned.R- Type of objects thats database connection return as row, JDBC is {link ResultSet} JPA isObject[].
public interface ResultRow<T,R>Extract the result for each row fromResultSet.Note: ResultRow must be
stateless.- Since:
- 0.6.0
- Author:
- Alisson Gomes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Transformable<T>getTransformable()Trow(R rs, int rownum)Retrieve column values from the current row, implementations must don't callnextneitherclosemethods.voidsetColumns(JdbcColumn<R>[] columns)
-
-
-
Method Detail
-
row
T row(R rs, int rownum) throws SQLException
Retrieve column values from the current row, implementations must don't callnextneitherclosemethods.- Parameters:
rs- A ResultSet or Object[] pointing to its current row of datarownum- The row number- Returns:
- the instance of object with
ResultSetdata. - Throws:
SQLException- errors that occurs when accessResultSetmethods.
-
getTransformable
Transformable<T> getTransformable()
-
setColumns
void setColumns(JdbcColumn<R>[] columns)
-
-