Codota Logo
ISqlJetCursor.getFieldType
Code IndexAdd Codota 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)

  • 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 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

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
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