comparison src/luan/modules/lucene/PostgresBackup.java @ 1539:c27dc6af87ca

remove nextId
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 06 Sep 2020 11:35:30 -0600
parents 3bd4d7963456
children 26c51acf00f3
comparison
equal deleted inserted replaced
1538:634f6765830e 1539:c27dc6af87ca
167 li.restore(doc); 167 li.restore(doc);
168 } 168 }
169 stmt.close(); 169 stmt.close();
170 } 170 }
171 171
172 long maxId()
173 throws LuanException, IOException, SQLException
174 {
175 Statement stmt = con.createStatement();
176 ResultSet rs = stmt.executeQuery("select max(id) as m from lucene");
177 rs.next();
178 long m = rs.getLong("m");
179 stmt.close();
180 return m;
181 }
182
183 final class Checker { 172 final class Checker {
184 private final Connection con; 173 private final Connection con;
185 private final PreparedStatement pstmt; 174 private final PreparedStatement pstmt;
186 private final Luan luan = new Luan(); 175 private final Luan luan = new Luan();
187 176