congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ISqlJetCursor.updateByFieldNames
Code IndexAdd Tabnine 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)

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

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now