@Override public ResultInterface query(int maxrows) { ResultInterface result = command.query(maxrows); executeRemaining(); return result; }
private void executeRemaining() { Command remainingCommand = session.prepareLocal(remaining); if (remainingCommand.isQuery()) { remainingCommand.query(0); } else { remainingCommand.update(); } }
while (true) { try { return query(maxrows); } catch (DbException e) { throw e;