congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ISqlJetCursor.eof
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.tmatesoft.sqljet/sqljet

public void delete() throws SqlJetException {
  if (!eof) {
    cursor.delete();
    eof = cursor.eof();
  }
}
origin: org.tmatesoft.svnkit/svnkit

private boolean exists(SqlJetDb db, long wcId, String localRelPath) throws SqlJetException {
  ISqlJetTable table = db.getTable(SVNWCDbSchema.NODES.name());
  ISqlJetCursor cursor = table.lookup(null, wcId, localRelPath);
  try {
    return !cursor.eof();
  } finally {
    cursor.close();
  }
}
origin: org.tmatesoft.svnkit/svnkit

  private boolean exists(SqlJetDb db, long wcId, String localRelPath) throws SqlJetException {
    ISqlJetTable table = db.getTable(SVNWCDbSchema.NODES.name());
    ISqlJetCursor cursor = table.lookup(null, wcId, localRelPath);
    try {
      return !cursor.eof();
    } finally {
      cursor.close();
    }
  }
}
origin: org.tmatesoft.svnkit/svnkit

protected long getColumnLong(String f) throws SVNException {
  try {
    if (getCursor() == null || getCursor().eof())
      return 0;
    return getCursor().getInteger(f);
  } catch (SqlJetException e) {
    SVNSqlJetDb.createSqlJetError(e);
    return 0;
  }
}
origin: org.tmatesoft.svnkit/svnkit

public void beforeInsert(SqlJetConflictAction conflictAction, ISqlJetTable table, Map<String, Object> newValues) throws SqlJetException {
  if (conflictAction == SqlJetConflictAction.REPLACE) {
    Object o1 = newValues.get(NODES__Fields.wc_id.toString());
    Object o2 = newValues.get(NODES__Fields.local_relpath.toString());
    Object o3 = newValues.get(NODES__Fields.op_depth.toString());
    ISqlJetCursor cursor = table.lookup(null, new Object[] {o1, o2, o3});
    try { 
      if (!cursor.eof()) {
        changeRefCount(cursor.getString(NODES__Fields.checksum.toString()), -1);
      }
    } finally {
      cursor.close();
    }
  }
  String newChecksumValue = (String) newValues.get(NODES__Fields.checksum.toString());
  changeRefCount(newChecksumValue, 1);
}
origin: org.tmatesoft.svnkit/svnkit

public long count() throws SVNException {
  try {
    if (getCursor() == null || getCursor().eof())
      return 0;
    return getCursor().getRowCount();
  } catch (SqlJetException e) {
    SVNSqlJetDb.createSqlJetError(e);
    return 0;
  }
}
origin: org.tmatesoft.svnkit/svnkit

protected Object getColumn(String f) throws SVNException {
  try {
    if (getCursor() == null || getCursor().eof())
      return null;
    return getCursor().getValue(f);
  } catch (SqlJetException e) {
    SVNSqlJetDb.createSqlJetError(e);
    return null;
  }
}
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

protected String getColumnString(String f) throws SVNException {
  try {
    if (getCursor() == null || getCursor().eof())
      return null;
    return getCursor().getString(f);
  } catch (SqlJetException e) {
    SVNSqlJetDb.createSqlJetError(e);
    return null;
  }
}
origin: org.tmatesoft.svnkit/svnkit

protected boolean isColumnNull(String f) throws SVNException {
  try {
    if (getCursor() == null || getCursor().eof())
      return true;
    return getCursor().isNull(f);
  } catch (SqlJetException e) {
    SVNSqlJetDb.createSqlJetError(e);
    return false;
  }
}
origin: org.tmatesoft.svnkit/svnkit

protected byte[] getColumnBlob(String f) throws SVNException {
  try {
    if (getCursor() == null || getCursor().eof())
      return null;
    return getCursor().getBlobAsArray(f);
  } catch (SqlJetException e) {
    SVNSqlJetDb.createSqlJetError(e);
    return null;
  }
}
origin: org.tmatesoft.svnkit/svnkit

public boolean eof() throws SVNException {
  try {
    if (getCursor() == null) {
      sDb.beginTransaction(transactionMode);
      setCursor(openCursor());
    }
    return getCursor().eof();
  } catch (SqlJetException e) {
    SVNSqlJetDb.createSqlJetError(e);
    return false;
  }
}
origin: ha-jdbc/ha-jdbc

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

private String getNodeReposRelpath(long wcId, String path) throws SVNException {
  ISqlJetCursor cursor = null;
  try {
    cursor = getTable().lookup(null, wcId, path);
    if (!cursor.eof()) {
      return cursor.getString(NODES__Fields.repos_path.toString());
    }
  } catch (SqlJetException e) {
    SVNSqlJetDb.createSqlJetError(e);
  } finally {
    if (cursor != null) {
      try {
        cursor.close();
      } catch (SqlJetException e) {
      }
    }
  }
  return null;
}

origin: org.syncloud/syncloud-dao-sqljet

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

public Long getMaxOpDepth(Long wcId, String localRelpath) throws SVNException {
  ISqlJetCursor c = null;
  try {
    c = getTable().lookup(null, wcId, localRelpath);
    c = c.reverse();
    if (!c.eof()) {
      long rowDepth = c.getInteger(SVNWCDbSchema.NODES__Fields.op_depth.toString());
      if (rowDepth >= minDepth) {
        return rowDepth;
      }
    }
  } catch (SqlJetException e) {
    SVNSqlJetDb.createSqlJetError(e);
  } finally {
    try {
      c.close();
    } catch (SqlJetException e) {
    }
  }
  return null;
}
origin: org.tmatesoft.svnkit/svnkit

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;
}
origin: com.svnkit/com.springsource.org.tigris.subversion.javahl

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

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;
}
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);
  }
}
org.tmatesoft.sqljet.core.tableISqlJetCursoreof

Javadoc

Tests whether this cursor is positioned behind the last record.

Popular methods of ISqlJetCursor

  • close
    Closes the cursor.
  • 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.
  • 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

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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