diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2007-11-28 17:40:59 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2007-11-28 17:40:59 +0000 |
commit | a926006cdd0ba50273f302bdd4ec69c6028d677c (patch) | |
tree | a71bfcb378a0ee4737cc2260d7fed7710f08651c /src/java/com/healthmarketscience/jackcess/Index.java | |
parent | f7c4cad8e51d083571ed1ec0ebab61ac205399e2 (diff) | |
download | jackcess-a926006cdd0ba50273f302bdd4ec69c6028d677c.tar.gz jackcess-a926006cdd0ba50273f302bdd4ec69c6028d677c.zip |
implement save/restore in Cursor; use during find calls
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@187 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/java/com/healthmarketscience/jackcess/Index.java')
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/Index.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/Index.java b/src/java/com/healthmarketscience/jackcess/Index.java index f703a57..6793a7b 100644 --- a/src/java/com/healthmarketscience/jackcess/Index.java +++ b/src/java/com/healthmarketscience/jackcess/Index.java @@ -1426,9 +1426,13 @@ public class Index implements Comparable<Index> { */ private void restorePosition(Entry curEntry) { - _prevPos = updatePosition(_curPos.getEntry()); - _curPos = updatePosition(curEntry); - _lastModCount = Index.this._modCount; + if(!curEntry.equals(_curPos.getEntry())) { + _prevPos = updatePosition(_curPos.getEntry()); + _curPos = updatePosition(curEntry); + _lastModCount = Index.this._modCount; + } else { + checkForModification(); + } } /** |