@Override public void execute(SqlJetDb db) throws SqlJetException { ISqlJetTable table = db.getTable(INVOKER_TABLE); ISqlJetCursor cursor = table.lookup(table.getPrimaryKeyIndexName(), transactionId, phase, databaseId); try { if (!cursor.eof()) { cursor.updateByFieldNames(Collections.<String, Object>singletonMap(RESULT_COLUMN, result)); } } finally { close(cursor); } } };
@Override public Set<String> execute(SqlJetDb database) throws SqlJetException { Set<String> set = new TreeSet<>(); ISqlJetTable table = database.getTable(STATE_TABLE); ISqlJetCursor cursor = table.lookup(table.getPrimaryKeyIndexName()); try { if (!cursor.eof()) { do { set.add(cursor.getString(DATABASE_COLUMN)); } while (cursor.next()); } return set; } finally { close(cursor); } } };
@Override public void execute(SqlJetDb db) throws SqlJetException { ISqlJetTable table = db.getTable(STATE_TABLE); ISqlJetCursor cursor = table.lookup(table.getPrimaryKeyIndexName(), event.getSource()); try { if (!cursor.eof()) { cursor.delete(); } } finally { close(cursor); } } };
private FSRepresentationCacheRecord getByHash(final String hash) throws SVNException { ISqlJetCursor lookup = null; try { lookup = myTable.lookup(myTable.getPrimaryKeyIndexName(), new Object[] { hash }); if (!lookup.eof()) { return new FSRepresentationCacheRecord(lookup); } } catch (SqlJetException e) { SVNErrorManager.error(convertError(e), SVNLogType.FSFS); } finally { if (lookup != null) { try { lookup.close(); } catch (SqlJetException e) { SVNErrorManager.error(convertError(e), SVNLogType.FSFS); } } } return null; }
private FSRepresentationCacheRecord getByHash(final String hash) throws SVNException { ISqlJetCursor lookup = null; try { lookup = myTable.lookup(myTable.getPrimaryKeyIndexName(), new Object[] { hash }); if (!lookup.eof()) { return new FSRepresentationCacheRecord(lookup); } } catch (SqlJetException e) { SVNErrorManager.error(convertError(e), SVNLogType.FSFS); } finally { if (lookup != null) { try { lookup.close(); } catch (SqlJetException e) { SVNErrorManager.error(convertError(e), SVNLogType.FSFS); } } } return null; }
private FSRepresentationCacheRecord getByHash(final String hash) throws SVNException { ISqlJetCursor lookup = null; try { lookup = myTable.lookup(myTable.getPrimaryKeyIndexName(), new Object[] { hash }); if (!lookup.eof()) { return new FSRepresentationCacheRecord(lookup); } } catch (SqlJetException e) { SVNErrorManager.error(convertError(e), SVNLogType.FSFS); } finally { if (lookup != null) { try { lookup.close(); } catch (SqlJetException e) { SVNErrorManager.error(convertError(e), SVNLogType.FSFS); } } } return null; }
ISqlJetCursor cursor = table.lookup(table.getPrimaryKeyIndexName(), transactionId, phase); try