if(currentRecord+1 < currentBatch.getRecordCount()){
currentRecord++;
return true;
}else{
try {
QueryResultBatch qrb = listener.getNext();
recordBatchCount++;
while(qrb != null && qrb.getHeader().getRowCount() == 0 && !first){
qrb.release();
qrb = listener.getNext();
recordBatchCount++;
}
first = false;
if(qrb == null){
finished = true;
return false;
}else{
currentRecord = 0;
boolean changed = currentBatch.load(qrb.getHeader().getDef(), qrb.getData());
schema = currentBatch.getSchema();
if(changed) updateColumns();
if (redoFirstNext && currentBatch.getRecordCount() == 0) {
redoFirstNext = false;
}