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); } }
public SqlColumnHeader header() { return sqlColumn.header(); }
public int columnIndex() { return sqlColumn.index(); }