예제 #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);
   }
 }
예제 #2
0
 public SqlColumnHeader header() {
   return sqlColumn.header();
 }
예제 #3
0
 public int columnIndex() {
   return sqlColumn.index();
 }