Hi Emmanuel!
Emmanuel Lecharny wrote:
I am not happy with the use of CursorIterator (especially the cast).
Anybody a better idea how to perform a search and process the results
from an embedded server?
You don't have to use a CursorIterator. Once you get a cursor, you can
do something like :
cursor.beforeFirst(); // To position the cursor at the beginning
while (cursor.next() )
{
ServerEntry entry = cursor.get();
}
No need to cast, and the entry you get is a clone.
I was blind. Thanks E, works great!
Greetings from Hamburg,
Stefan