From a49de754bce849d94719a473567e78b595fbdc9a Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Mon, 16 Nov 2009 13:08:01 +0000 Subject: initial update row support git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@409 f203690c-595d-4dc9-a70b-905162fa7fd2 --- src/java/com/healthmarketscience/jackcess/Cursor.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/java/com/healthmarketscience/jackcess/Cursor.java') 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 @@ -510,6 +510,15 @@ public abstract class Cursor implements Iterable> _table.deleteRow(_rowState, _curPos.getRowId()); } + /** + * 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 -- cgit v1.2.3