T
- Type of objects thats must be returned.R
- Type of objects thats database connection return as row, JDBC is {link ResultSet}
JPA is Object[]
.public interface ResultRow<T,R>
ResultSet
.
Note: ResultRow must be stateless
.
Modifier and Type | Method and Description |
---|---|
Transformable<T> |
getTransformable() |
T |
row(R rs,
int rownum)
Retrieve column values from the current row, implementations must don't call
next
neither close methods. |
void |
setColumns(JdbcColumn<R>[] columns) |
T row(R rs, int rownum) throws SQLException
next
neither close
methods.rs
- A ResultSet or Object[] pointing to its current row of datarownum
- The row numberResultSet
data.SQLException
- errors that occurs when access ResultSet
methods.Transformable<T> getTransformable()
void setColumns(JdbcColumn<R>[] columns)
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.