/** * Returns <code>true</code> if this batch query has no parameter rows. */ public boolean isEmpty() { return size() == 0; }
/** * Repositions batch to the next object, so that subsequent calls to getObject(int) * would return the values of the next batch object. Returns <code>true</code> if * batch has more objects to iterate over, <code>false</code> otherwise. */ public boolean next() { batchIndex++; return size() > batchIndex; }