Example #1
0
 SqlDataImpl(SqlResults results, SqlRow sqlRow, SqlColumn sqlColumn, ResultSet resultSet) {
   this.results = results;
   this.sqlRow = sqlRow;
   this.sqlColumn = sqlColumn;
   try {
     this.object =
         JdbcUtils.getResultSetValue(resultSet, sqlColumn.index() + 1, sqlColumn.header().type());
   } catch (SQLException e) {
     throw new RuntimeException(e.getMessage(), e);
   }
 }
Example #2
0
 public SqlColumnHeader header() {
   return sqlColumn.header();
 }
Example #3
0
 public int columnIndex() {
   return sqlColumn.index();
 }