1 package jnicli;
2 import java.util.*;
3 
4 class IncrementalCursorForUpdate extends IncrementalCursor {
IncrementalCursorForUpdate(DatabaseJNI db, long cursor, ClassDescriptor desc)5     IncrementalCursorForUpdate(DatabaseJNI db, long cursor, ClassDescriptor desc) {
6         super(db, cursor, desc);
7     }
8 
nextElement()9     public Object nextElement() {
10         return currObj = super.nextElement();
11     }
12 
update()13     public void update() {
14         if  (currOid == 0) {
15             throw new NoSuchElementException();
16         }
17         db.update(currOid, currObj);
18     }
19 
20     Object currObj;
21 }
22