void addRowToTable( Object... row ) throws IOException { table.addRow( row ); }
@Override public Object[] addRow(Object... row) throws IOException { return wrapped.addRow(row); }
@Override public ComplexValue.Id addRawValue(Map<String,?> rawValue) throws IOException { Object[] row = ((TableImpl)_flatTable).asRowWithRowId(rawValue); _flatTable.addRow(row); return getValueId(row); }
@Override public ComplexValue.Id addValue(V value) throws IOException { Object[] row = asRow(newRowArray(), value); _flatTable.addRow(row); ComplexValue.Id id = getValueId(row); value.setId(id); return id; }
public void insertRow(Table _table, Object[] _row) throws IOException { try { _table.addRow(newRow); } catch (ConstraintViolationException e) { List<? extends Column> lc = _table.getColumns(); boolean retry = false; for (Column cl : lc) { if (cl.isAutoNumber()) { retry = true; break; } } if (!retry) { throw e; } Database db = _table.getDatabase(); File fl = db.getFile(); DBReferenceSingleton dbsin = DBReferenceSingleton.getInstance(); DBReference ref = dbsin.getReference(fl); ref.reloadDbIO(); this.dbIO = ref.getDbIO(); _table = this.dbIO.getTable(this.tableName); _table.addRow(newRow); } }
data[c] = matrix.getAsObject(r, c); table.addRow(data);