From 4ecff29629eb503ac843f575b52e43e2e807e4df Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Fri, 11 Oct 2013 03:38:18 +0000 Subject: add public api for modifying properties git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@817 f203690c-595d-4dc9-a70b-905162fa7fd2 --- .../com/healthmarketscience/jackcess/impl/TableImpl.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java') diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java b/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java index 1d7e2e0..7939b90 100644 --- a/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java +++ b/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java @@ -1598,6 +1598,22 @@ public class TableImpl implements Table getDefaultCursor().getRowState(), (RowIdImpl)rowId, row); } + /** + * Update the given column's value for the given row id. Provided RowId + * must have previously been returned from this Table. + * @throws IllegalStateException if the given row is not valid, or deleted. + * @usage _intermediate_method_ + */ + public void updateValue(Column column, RowId rowId, Object value) + throws IOException + { + Object[] row = new Object[_columns.size()]; + Arrays.fill(row, Column.KEEP_VALUE); + column.setRowValue(row, value); + + updateRow(rowId, row); + } + public > M updateRowFromMap( RowState rowState, RowIdImpl rowId, M row) throws IOException -- cgit v1.2.3