reset();
}
@Override
protected CaoElement nextElement() throws CaoException {
if (!hasNext) throw new CaoException("no more elements");
MutableElement element = new MutableElement(getApplication());
element.setMetadata(queryList.meta);
try {
for (CaoMetaDefinition m : queryList.meta) {
element.setString(m.getName(), res.getString(m.getName()));
}
hasNext = res.next();
} catch (Exception e) {
throw new CaoException(e);
}
return element;
}