public RowImpl(Row row) { super(row); _id = (RowIdImpl)row.getId(); }
@Override public void deleteRawValue(Row rawValue) throws IOException { deleteRow(rawValue.getId()); }
@Override public Row deleteRow(Row row) throws IOException { deleteRow(row.getId()); return row; }
protected ComplexValueIdImpl getValueId(Row row) { int idVal = (Integer)getPrimaryKeyColumn().getRowValue(row); return new ComplexValueIdImpl(idVal, row.getId()); }
@Override public Row updateRow(Row row) throws IOException { return updateRowFromMap( getDefaultCursor().getRowState(), (RowIdImpl)row.getId(), row); }
private PropertyMaps readProperties(int objectId, Row objectRow, PropertyMaps.Owner owner) throws IOException { byte[] propsBytes = null; RowIdImpl rowId = null; if(objectRow != null) { propsBytes = objectRow.getBytes(CAT_COL_PROPS); objectId = objectRow.getInt(CAT_COL_ID); rowId = (RowIdImpl)objectRow.getId(); } return getPropsHandler().read(propsBytes, objectId, rowId, owner); }
private void populateIndexData(IndexData idxData) throws IOException { // grab the columns involved in this index List<ColumnImpl> idxCols = new ArrayList<ColumnImpl>(); for(IndexData.ColumnDescriptor col : idxData.getColumns()) { idxCols.add(col.getColumn()); } // iterate through all the rows and add them to the index Object[] rowVals = new Object[_columns.size()]; for(Row row : getDefaultCursor().newIterable().addColumns(idxCols)) { for(Column col : idxCols) { col.setRowValue(rowVals, col.getRowValue(row)); } IndexData.commitAll( idxData.prepareAddRow(rowVals, (RowIdImpl)row.getId(), null)); } updateTableDefinition(0); }
public Row(com.healthmarketscience.jackcess.Row tableRow) { this(tableRow.getId(), tableRow.getByte(COL_ATTRIBUTE), tableRow.getString(COL_EXPRESSION), tableRow.getShort(COL_FLAG), tableRow.getInt(COL_EXTRA), tableRow.getString(COL_NAME1), tableRow.getString(COL_NAME2), tableRow.getInt(COL_OBJECTID), tableRow.getBytes(COL_ORDER)); }