public void updateByFieldNames(Map<String, Object> values) throws SqlJetException { cursor.updateByFieldNames(values); }
public void update(final Map<String, Object> values) throws SqlJetException { if (getCursor() == null) { throw new UnsupportedOperationException(); } beforeUpdate(getCursor(), values); getCursor().updateByFieldNames(values); }
@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); } } };
public void statementCompleted(SqlJetDb db, SqlJetException error) throws SqlJetException { try { if (error == null && !getTriggerValues().isEmpty()) { Map<String, Object> values = new HashMap<String, Object>(); ISqlJetTable pristineTable = db.getTable(SVNWCDbSchema.PRISTINE.toString()); for (String checksum : getTriggerValues().keySet()) { long delta = getTriggerValues().get(checksum); if (delta == 0) { continue; } ISqlJetCursor cursor = pristineTable.lookup(null, checksum); if (cursor != null && !cursor.eof()) { long refcount = cursor.getInteger(SVNWCDbSchema.PRISTINE__Fields.refcount.toString()); refcount += delta; if (refcount < 0) { refcount = 0; } values.put(SVNWCDbSchema.PRISTINE__Fields.refcount.toString(), refcount); cursor.updateByFieldNames(values); } cursor.close(); } } } finally { checksumTriggerValues = null; } }
if (refCount != refcountTable.get(checksum)) { Map<String, Object> value = new HashMap<String, Object>(); cursor.updateByFieldNames(value);
public void transaction(SVNSqlJetDb db) throws SqlJetException, SVNException { try { db.beginTransaction(SqlJetTransactionMode.WRITE); final ISqlJetTable table = db.getDb().getTable(SVNWCDbSchema.NODES.name()); ISqlJetCursor c = table.lookup(null, wcRoot.getWcId(), SVNFileUtil.getFilePath(localRelpath)); c = c.reverse(); if (!c.eof()) { final Map<String, Object> updateValues = new HashMap<String, Object>(); updateValues.put(SVNWCDbSchema.NODES__Fields.translated_size.toString(), translatedSize); updateValues.put(SVNWCDbSchema.NODES__Fields.last_mod_time.toString(), lastModTime); c.updateByFieldNames(updateValues); } c.close(); db.commit(); } catch (SqlJetException e) { db.rollback(); throw e; } catch (SVNException e) { db.rollback(); throw e; } } }
if (!oldUrl.equals(newUrl)) { values.put(SVNWCDbSchema.REPOSITORY__Fields.root.toString(), newUrl); cursor.updateByFieldNames(values);
newRowValues.put(ACTUAL_NODE__Fields.prop_reject.toString(), null); newRowValues.put(ACTUAL_NODE__Fields.tree_conflict_data.toString(), null); actulaNode.updateByFieldNames(newRowValues);