ORMLite's iterator forgets all the data after hasNext() == false -


code sample:

//... closeableiterator<order> iterator = dao.iterator();  iterator.first(); // object iterator.current(); // object  iterator.hasnext(); // false (only 1 record in table "order")  iterator.current(); // null (?!) iterator.first(); // null (?!!) 

also, iterator.previous() returns null (if more 1 record, ofc).

how forbid ormlite's selectiterator forget data after calling hasnext() on last record?..

according source code of sqlite, normal undocumented unchangeable behavior.


Comments