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

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

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

origin: org.tmatesoft.sqljet/sqljet

public SqlJetValueType getColumnType(int columnIndex) throws SqlJetException {
  if (result instanceof String) {
    return SqlJetValueType.TEXT;
  }
  if (result instanceof Integer) {
    return SqlJetValueType.INTEGER;
  }
  if (result instanceof Double) {
    return SqlJetValueType.FLOAT;
  }
  return cursor.getFieldType(columnIndex);
}
origin: org.tmatesoft.sqljet/sqljet

public SqlJetValueType getFieldType(int field) throws SqlJetException {
  return cursor.getFieldType(field);
}
origin: org.tmatesoft.sqljet/sqljet

public SqlJetValueType getFieldType(String fieldName) throws SqlJetException {
  return cursor.getFieldType(fieldName);
}
origin: org.tmatesoft.svnkit/svnkit

public Map<String, Object> getRowValues() throws SVNException {
  final HashMap<String, Object> v = new HashMap<String, Object>();
  try {
    final List<ISqlJetColumnDef> columns = getTable().getDefinition().getColumns();
    for (ISqlJetColumnDef column : columns) {
      final String colName = column.getName();
      final SqlJetValueType fieldType = getCursor().getFieldType(colName);
      if (fieldType == SqlJetValueType.NULL) {
        v.put(colName, null);
      } else if (fieldType == SqlJetValueType.BLOB) {
        v.put(colName, getCursor().getBlobAsArray(colName));
      } else {
        v.put(colName, getCursor().getValue(colName));
      }
    }
    return v;
  } catch (SqlJetException e) {
    SVNSqlJetDb.createSqlJetError(e);
    return null;
  }
}
org.tmatesoft.sqljet.core.tableISqlJetCursorgetFieldType

Javadoc

Returns field type.

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.
  • updateByFieldNames
    Updates the current record.
  • getBoolean
    Returns specified field's value as boolean.
  • getRowCount
    Returns number of rows accessible with this cursor.
  • getBoolean,
  • getRowCount,
  • getRowValues,
  • getValue,
  • setLimit,
  • update,
  • first,
  • getBlobAsStream,
  • getFloat

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top plugins for WebStorm
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