Codota Logo
ISqlJetCursor.updateByFieldNames
Code IndexAdd Codota to your IDE (free)

How to use
updateByFieldNames
method
in
org.tmatesoft.sqljet.core.table.ISqlJetCursor

Best Java code snippets using org.tmatesoft.sqljet.core.table.ISqlJetCursor.updateByFieldNames (Showing top 8 results out of 315)

  • Common ways to obtain ISqlJetCursor
private void myMethod () {
ISqlJetCursor i =
  • Codota IconISqlJetTable iSqlJetTable;ISqlJetTable iSqlJetTable2;iSqlJetTable.lookup(iSqlJetTable2.getPrimaryKeyIndexName(), new Object[]{hash})
  • Smart code suggestions by Codota
}
origin: org.tmatesoft.sqljet/sqljet

public void updateByFieldNames(Map<String, Object> values) throws SqlJetException {
  cursor.updateByFieldNames(values);
}
origin: org.tmatesoft.svnkit/svnkit

public void update(final Map<String, Object> values) throws SqlJetException {
  if (getCursor() == null) {
    throw new UnsupportedOperationException();
  }
  beforeUpdate(getCursor(), values);
  getCursor().updateByFieldNames(values);
}
origin: ha-jdbc/ha-jdbc

  @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);
    }
  }
};
origin: org.tmatesoft.svnkit/svnkit

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;
  }
}
origin: org.tmatesoft.svnkit/svnkit

if (refCount != refcountTable.get(checksum)) {
  Map<String, Object> value = new HashMap<String, Object>();
  cursor.updateByFieldNames(value);
origin: org.tmatesoft.svnkit/svnkit

  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;
    }
  }
}
origin: org.tmatesoft.svnkit/svnkit

if (!oldUrl.equals(newUrl)) {
  values.put(SVNWCDbSchema.REPOSITORY__Fields.root.toString(), newUrl);                
  cursor.updateByFieldNames(values);
origin: org.tmatesoft.svnkit/svnkit

newRowValues.put(ACTUAL_NODE__Fields.prop_reject.toString(), null);
newRowValues.put(ACTUAL_NODE__Fields.tree_conflict_data.toString(), null);
actulaNode.updateByFieldNames(newRowValues);
org.tmatesoft.sqljet.core.tableISqlJetCursorupdateByFieldNames

Javadoc

Updates the current record.

Popular methods of ISqlJetCursor

  • close
    Closes the cursor.
  • eof
    Tests whether this cursor is positioned behind the last record.
  • getString
    Returns specified field's value as String.
  • isNull
    Tests field value for null.
  • getInteger
    Returns specified field's value as integer.
  • delete
    Deletes the current record.
  • getFieldsCount
    Returns number of fields in the current record.
  • next
    Goes to the next record.
  • getBlobAsArray
    Returns specified field's value as BLOB.
  • getBoolean
    Returns specified field's value as boolean.
  • getFieldType
    Returns field type.
  • getRowCount
    Returns number of rows accessible with this cursor.
  • getFieldType,
  • getRowCount,
  • getRowValues,
  • getValue,
  • setLimit,
  • update,
  • first,
  • getBlobAsStream,
  • getFloat

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • String (java.lang)
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Reference (javax.naming)
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now