You can generate a file where you store the row read each time.
PrintWriter writer = new PrintWriter("table-process", "UTF-8");
writer.println(row);
writer.close();
and When the application starts, you only have to read the value of that file and init the row count.