diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2009-11-16 13:08:01 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2009-11-16 13:08:01 +0000 |
commit | a49de754bce849d94719a473567e78b595fbdc9a (patch) | |
tree | 5cbd0752d5395558fd9e8ecb729a9be62bf81dd2 /src/java/com/healthmarketscience/jackcess/Cursor.java | |
parent | df8fc3e6d7f317b30d577d34a347bf14bfda3a6f (diff) | |
download | jackcess-a49de754bce849d94719a473567e78b595fbdc9a.tar.gz jackcess-a49de754bce849d94719a473567e78b595fbdc9a.zip |
initial update row support
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@409 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/java/com/healthmarketscience/jackcess/Cursor.java')
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/Cursor.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/Cursor.java b/src/java/com/healthmarketscience/jackcess/Cursor.java index 5804eea..8e7f61f 100644 --- a/src/java/com/healthmarketscience/jackcess/Cursor.java +++ b/src/java/com/healthmarketscience/jackcess/Cursor.java @@ -511,6 +511,15 @@ public abstract class Cursor implements Iterable<Map<String, Object>> } /** + * Update the current row. + * @throws IllegalStateException if the current row is not valid (at + * beginning or end of table), or deleted. + */ + public void updateCurrentRow(Object... row) throws IOException { + _table.updateRow(_rowState, _curPos.getRowId(), row); + } + + /** * Moves to the next row in the table and returns it. * @return The next row in this table (Column name -> Column value), or * {@code null} if no next row is found |