Cursor getColumnCount - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Cursor getColumnCount method.

This code example shows how to use the following methods:getColumnCount
    return wrappedCursor.getColumnNames();
  } 
 
  @Implementation 
  public int getColumnCount() { 
    return wrappedCursor.getColumnCount();
  } 
 
  @Implementation 
  public byte[] getBlob(int i) {
    return wrappedCursor.getBlob(i);
  } 
 
  @Implementation 
  public String getString(int i) {
    return wrappedCursor.getString(i);
  } 
 
  @Implementation 
  public void copyStringToBuffer(int i, CharArrayBuffer charArrayBuffer) {
6
CodeRank
This code example shows how to use the following methods:getColumnCount
        return wrappedCursor.getColumnNames();
    } 
 
    @Implementation 
    public int getColumnCount() { 
        return wrappedCursor.getColumnCount();
    } 
 
    @Implementation 
    public byte[] getBlob(int i) {
        return wrappedCursor.getBlob(i);
    } 
 
    @Implementation 
    public String getString(int i) {
        return wrappedCursor.getString(i);
    } 
 
    @Implementation 
    public void copyStringToBuffer(int i, CharArrayBuffer charArrayBuffer) {
6
CodeRank
This code example shows how to use the following methods:getColumnCount, getLong
        try { 
            o = sca.getItem(selectedPosition);
            if (o != null) {
 
                Cursor c = (Cursor) o;
                feedId = c.getLong(c.getColumnCount() - 1);
            } 
        } catch (RuntimeException rte) {
            // ignored 
        } 
        return feedId;
    } 
 
    @Override 
    public String getDefaultStatusBarTitle() {
        StringBuilder sb = new StringBuilder();
        DBQuery dbq = getDbQuery();
        if (dbq.getFilterLabel() != null && !"all articles".equals(dbq.getFilterLabel()))
            sb.append("- " + dbq.getFilterLabel());
        if (sb.length() == 0)
6
CodeRank
This code example shows how to use the following methods:getColumnCount
        return mActiveCursor.getBlob(columnIndex);
    } 
 
    @Override 
    public int getColumnCount() { 
        return mActiveCursor.getColumnCount();
    } 
 
    @Override 
    public int getColumnIndex(String columnName) {
        return mActiveCursor.getColumnIndex(columnName);
    } 
 
    @Override 
    public int getColumnIndexOrThrow(String columnName) throws IllegalArgumentException {
        return mActiveCursor.getColumnIndexOrThrow(columnName);
    } 
 
    @Override 
    public String getColumnName(int columnIndex) {
6
CodeRank
This code example shows how to use the following methods:getColumnCount, isNull
        return mCursor.getDouble(column);
    } 
 
    @Override 
    public boolean isNull(int column) {
        if (column == mCursor.getColumnCount()) {
            return mValue == null;
        } 
        return mCursor.isNull(column);
    } 
 
    @Override 
    public boolean onMove(int oldPosition, int newPosition) {
        return mCursor.moveToPosition(newPosition);
    } 
 
    @Override 
    public void close() { 
        MoreCloseables.closeQuietly(mCursor);
        super.close(); 
5
CodeRank
This code example shows how to use the following methods:getColumnCount
	public FormDataGridCursorAdapter(Context context, Form form, Cursor c, int screenWidth) {
		super(context, c);
		mForm = form;
		mContext = context;
		mWidth = screenWidth;
		mColWidth = screenWidth / (c.getColumnCount() - 5);
 
	} 
 
	/* 
	 * (non-Javadoc) 
	 *  
	 * @see android.widget.CursorAdapter#bindView(android.view.View, 
	 * android.content.Context, android.database.Cursor) 
	 */ 
	@Override 
	public void bindView(View view, Context context, Cursor cursor) {
		if (view != null) {
			SingleGridRowView srv = (SingleGridRowView) view;
			srv.setData(cursor);
5
CodeRank
This code example shows how to use the following methods:getColumnCount
	public AndroidDatabaseResults(Cursor cursor, boolean firstCall, ObjectCache objectCache) {
		this(cursor, objectCache);
	} 
 
	public int getColumnCount() { 
		return cursor.getColumnCount();
	} 
 
	public String[] getColumnNames() {
		int colN = getColumnCount();
		String[] columnNames = new String[colN];
		for (int colC = 0; colC < colN; colC++) {
			columnNames[colC] = cursor.getColumnName(colC);
		} 
		return columnNames;
	} 
 
	public boolean first() { 
		return cursor.moveToFirst();
	} 
5
CodeRank
This code example shows how to use the following methods:getColumnCount
		return null; 
	} 
 
	@Override 
	public int getColumnCount() throws SQLException { 
		int columnCount = cursor.getColumnCount();
		return columnCount;
	} 
 
	@Override 
	public int getColumnDisplaySize(int column) throws SQLException {
		System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line " + DebugPrinter.getLineNumber());
		return 0; 
	} 
 
	@Override 
	public String getColumnLabel(int column) throws SQLException {
		return cursor.getColumnName(column - 1);
	} 
 
5
CodeRank
This code example shows how to use the following methods:getColumnCount
	return cursor.getColumnNames();
    } 
 
    @Implementation 
    public int getColumnCount() { 
	return cursor.getColumnCount();
    } 
 
    @Implementation 
    public byte[] getBlob(int columnIndex) {
	return cursor.getBlob(columnIndex);
    } 
 
    @Implementation 
    public String getString(int columnIndex) {
	return cursor.getString(columnIndex);
    } 
 
    @Implementation 
    public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer) {
5
CodeRank
This code example shows how to use the following methods:getColumnCount
	/* (non-Javadoc) 
	 * @see android.database.Cursor#getColumnCount() 
	 */ 
	@Override 
	public int getColumnCount() {		 
		return mCursor.getColumnCount();
	} 
 
	/* (non-Javadoc) 
	 * @see android.database.Cursor#getColumnIndex(java.lang.String) 
	 */ 
	@Override 
	public int getColumnIndex(String columnName) {		
		return mCursor.getColumnIndex(columnName);
	} 
 
	/* (non-Javadoc) 
	 * @see android.database.Cursor#getColumnIndexOrThrow(java.lang.String) 
	 */ 
	@Override 
5
CodeRank

Related Cursor getColumnCount Questions & Answers:

getColumnCount Method Overview
Return total number of columns
See Code Examples for other Android Cursor Methods: