congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ISqlJetCursor.next
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.tmatesoft.sqljet/sqljet

public boolean previous() throws SqlJetException {
  return !(eof = !cursor.next());
}
origin: ha-jdbc/ha-jdbc

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

cursor.next();
origin: org.tmatesoft.svnkit/svnkit

cursor.next();
origin: org.tmatesoft.svnkit/svnkit

private static Map<SvnChecksum, Integer> calculateCorrectChecksumRefcounts(SVNWCDbRoot root) throws SVNException {
  Map<SvnChecksum, Integer> checksumToRefCount = new HashMap<SvnChecksum, Integer>();
  final SqlJetDb db = root.getSDb().getDb();
  try {
    final ISqlJetTable nodesTable = db.getTable(SVNWCDbSchema.NODES.name());
    db.beginTransaction(SqlJetTransactionMode.READ_ONLY);
    final ISqlJetCursor cursor = nodesTable.open();
    for (; !cursor.eof(); cursor.next()) {
      String sha1ChecksumString = cursor.getString(SVNWCDbSchema.NODES__Fields.checksum.name());
      if (sha1ChecksumString == null) {
        continue;
      }
      SvnChecksum sha1Checksum = SvnChecksum.fromString(sha1ChecksumString);
      Integer refCount = checksumToRefCount.get(sha1Checksum);
      int incrementedRefCount = refCount == null ? 1 : refCount + 1;
      checksumToRefCount.put(sha1Checksum, incrementedRefCount);
    }
    cursor.close();
  } catch (SqlJetException e) {
    SVNErrorMessage errorMessage = SVNErrorMessage.create(SVNErrorCode.WC_DB_ERROR, e);
    SVNErrorManager.error(errorMessage, e, SVNLogType.WC);
  } finally {
    try {
      db.commit();
    } catch (SqlJetException ignore) {
    }
  }
  return checksumToRefCount;
}
origin: org.tmatesoft.svnkit/svnkit

cursor.next();
origin: org.tmatesoft.svnkit/svnkit

  parentReposRelpath = cursor.getString(SVNWCDbSchema.NODES__Fields.repos_path.toString());
  parents.put("", parentReposRelpath);
  cursor.next();
  break;
cursor.next();
origin: ha-jdbc/ha-jdbc

  map.put(SQLiteStateManager.this.listener.createInvocationEvent(transactionId, phase, exceptionType), new HashMap<String, InvokerEvent>());
while (cursor.next());
while (cursor.next());
origin: org.tmatesoft.svnkit/svnkit

  actulaNode.next();
  continue;
actulaNode.updateByFieldNames(newRowValues);
actulaNode.next();
origin: org.syncloud/syncloud-dao-sqljet

@Override
public void update(State state) {
  try {
    db.beginTransaction(SqlJetTransactionMode.WRITE);
    try {
      ISqlJetTable table = db.getTable(StateTable.TABLE_NAME);
      ISqlJetCursor cursor = table.lookup(StateTable.NDX_FULL_NAME, state.fullname);
      while (!cursor.eof()) {
        cursor.update(getData(state));
        cursor.next();
      }
      cursor.close();
    } finally {
      db.commit();
    }
  } catch (Throwable e) {
    logger.error("unable to update: " + state, e);
  }
}
origin: org.tmatesoft.svnkit/svnkit

  break;
cursor.next();
  break;
cursor.next();
          cursor.next();
          continue;
  break;
cursor.next();
origin: org.tmatesoft.svnkit/svnkit

private static Map<SvnChecksum, Integer> loadChecksumsRefcountsFromTable(SVNWCDbRoot root) throws SVNException {
  Map<SvnChecksum, Integer> checksumToRefCount = new HashMap<SvnChecksum, Integer>();
  final SqlJetDb db = root.getSDb().getDb();
  try {
    final ISqlJetTable pristineTable = db.getTable(SVNWCDbSchema.PRISTINE.name());
    db.beginTransaction(SqlJetTransactionMode.READ_ONLY);
    final ISqlJetCursor cursor = pristineTable.open();
    for (; !cursor.eof(); cursor.next()) {
      String sha1ChecksumString = cursor.getString(PRISTINE__Fields.checksum.name());
      if (sha1ChecksumString == null) {
        continue;
      }
      SvnChecksum sha1Checksum = SvnChecksum.fromString(sha1ChecksumString);
      long refcount = cursor.getInteger(PRISTINE__Fields.refcount.name());
      checksumToRefCount.put(sha1Checksum, (int)refcount);
    }
    cursor.close();
  } catch (SqlJetException e) {
    SVNErrorMessage errorMessage = SVNErrorMessage.create(SVNErrorCode.WC_DB_ERROR, e);
    SVNErrorManager.error(errorMessage, e, SVNLogType.WC);
  } finally {
    try {
      db.commit();
    } catch (SqlJetException ignore) {
    }
  }
  return checksumToRefCount;
}
origin: org.tmatesoft.svnkit/svnkit

public boolean next() throws SVNException {
  try {
    if (getCursor() == null) {
      sDb.beginTransaction(transactionMode);
      try {
        setCursor(openCursor());
        return !getCursor().eof();
      } catch (SVNException e) {
        if (getCursor() == null) {
          sDb.commit();
        }
        throw e;
      }
    }
    return getCursor().next();
  } catch (SqlJetException e) {
    SVNSqlJetDb.createSqlJetError(e);
    return false;
  }
}
origin: org.tmatesoft.svnkit/svnkit

  break;
cursor.next();
origin: ha-jdbc/ha-jdbc

while (cursor.next());
org.tmatesoft.sqljet.core.tableISqlJetCursornext

Javadoc

Goes to the next 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.
  • getBlobAsArray
    Returns specified field's value as BLOB.
  • updateByFieldNames
    Updates the current record.
  • 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
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • 21 Best IntelliJ Plugins
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