@Override public void fill(long id, String columnName, Object value) { boolean shouldInsert = !idColl.has(id); // System.out.println("FILL " + id + " COL=" + columnName + " VAL=" + // value + " INS=" + shouldInsert); int row; if (shouldInsert) { idColl.registerId(id); row = rows++; idColl.set(id, new IdAddress(this, row)); size++; records.add(newEntity()); ids.add(id); } else { row = row(id); } checkId(id); checkColumn(columnName); PropertyInfo prop = colInfo(columnName); Column column = prop.getColumn(); column.set(row, value); }
@Override public void fill(long id, String columnName, Object value) { boolean shouldInsert = !idColl.has(id); // System.out.println("FILL " + id + " COL=" + columnName + " VAL=" + // value + " INS=" + shouldInsert); int row; if (shouldInsert) { idColl.registerId(id); row = rows++; idColl.set(id, new IdAddress(this, row)); size++; records.add(newEntity()); ids.add(id); } else { row = row(id); } checkId(id); checkColumn(columnName); PropertyInfo prop = colInfo(columnName); Column column = prop.getColumn(); column.set(row, value); }
@Override public void fill(long id, String columnName, Object value) { boolean shouldInsert = !idColl.has(id); // System.out.println("FILL " + id + " COL=" + columnName + " VAL=" + // value + " INS=" + shouldInsert); int row; if (shouldInsert) { idColl.registerId(id); row = rows++; idColl.set(id, new IdAddress(this, row)); size++; records.add(newEntity()); ids.add(id); } else { row = row(id); } checkId(id); checkColumn(columnName); PropertyInfo prop = colInfo(columnName); Column column = prop.getColumn(); column.set(row, value); }