diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2013-10-11 03:38:18 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2013-10-11 03:38:18 +0000 |
commit | 4ecff29629eb503ac843f575b52e43e2e807e4df (patch) | |
tree | a496db0f19248d29738dbb41b37df86fb340da0e /src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java | |
parent | bcbcda7563428dff2820ec142e05a31f342eb293 (diff) | |
download | jackcess-4ecff29629eb503ac843f575b52e43e2e807e4df.tar.gz jackcess-4ecff29629eb503ac843f575b52e43e2e807e4df.zip |
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
Diffstat (limited to 'src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java')
-rw-r--r-- | src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java | 16 |
1 files changed, 16 insertions, 0 deletions
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 extends Map<String,Object>> M updateRowFromMap( RowState rowState, RowIdImpl rowId, M row) throws IOException |