android.database
Class MatrixCursor

java.lang.Object
  extended by android.database.AbstractCursor
      extended by android.database.MatrixCursor
All Implemented Interfaces:
CrossProcessCursor, Cursor

public class MatrixCursor
extends AbstractCursor


Nested Class Summary
 class MatrixCursor.RowBuilder
           
 
Nested classes/interfaces inherited from class android.database.AbstractCursor
AbstractCursor.SelfContentObserver
 
Field Summary
 
Fields inherited from class android.database.AbstractCursor
mClosed, mContentResolver, mCurrentRowID, mPos, mRowIdColumnIndex, mUpdatedRows
 
Fields inherited from interface android.database.Cursor
FIELD_TYPE_BLOB, FIELD_TYPE_FLOAT, FIELD_TYPE_INTEGER, FIELD_TYPE_NULL, FIELD_TYPE_STRING
 
Constructor Summary
MatrixCursor(String[] columnNames)
           
MatrixCursor(String[] columnNames, int initialCapacity)
           
 
Method Summary
 void addRow(Iterable<?> columnValues)
           
 void addRow(Object[] columnValues)
           
 byte[] getBlob(int column)
           
 String[] getColumnNames()
           
 int getCount()
           
 double getDouble(int column)
           
 float getFloat(int column)
           
 int getInt(int column)
           
 long getLong(int column)
           
 short getShort(int column)
           
 String getString(int column)
           
 int getType(int column)
           
 boolean isNull(int column)
           
 MatrixCursor.RowBuilder newRow()
           
 
Methods inherited from class android.database.AbstractCursor
checkPosition, close, copyStringToBuffer, deactivate, fillWindow, finalize, getColumnCount, getColumnIndex, getColumnIndexOrThrow, getColumnName, getExtras, getNotificationUri, getPosition, getUpdatedField, getWantsAllOnMoveCalls, getWindow, isAfterLast, isBeforeFirst, isClosed, isFieldUpdated, isFirst, isLast, move, moveToFirst, moveToLast, moveToNext, moveToPosition, moveToPrevious, onChange, onMove, registerContentObserver, registerDataSetObserver, requery, respond, setNotificationUri, unregisterContentObserver, unregisterDataSetObserver
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatrixCursor

public MatrixCursor(String[] columnNames,
                    int initialCapacity)

MatrixCursor

public MatrixCursor(String[] columnNames)
Method Detail

newRow

public MatrixCursor.RowBuilder newRow()

addRow

public void addRow(Object[] columnValues)

addRow

public void addRow(Iterable<?> columnValues)

getCount

public int getCount()
Specified by:
getCount in interface Cursor
Specified by:
getCount in class AbstractCursor

getColumnNames

public String[] getColumnNames()
Specified by:
getColumnNames in interface Cursor
Specified by:
getColumnNames in class AbstractCursor

getString

public String getString(int column)
Specified by:
getString in interface Cursor
Specified by:
getString in class AbstractCursor

getShort

public short getShort(int column)
Specified by:
getShort in interface Cursor
Specified by:
getShort in class AbstractCursor

getInt

public int getInt(int column)
Specified by:
getInt in interface Cursor
Specified by:
getInt in class AbstractCursor

getLong

public long getLong(int column)
Specified by:
getLong in interface Cursor
Specified by:
getLong in class AbstractCursor

getFloat

public float getFloat(int column)
Specified by:
getFloat in interface Cursor
Specified by:
getFloat in class AbstractCursor

getDouble

public double getDouble(int column)
Specified by:
getDouble in interface Cursor
Specified by:
getDouble in class AbstractCursor

getBlob

public byte[] getBlob(int column)
Specified by:
getBlob in interface Cursor
Overrides:
getBlob in class AbstractCursor

getType

public int getType(int column)
Specified by:
getType in interface Cursor
Overrides:
getType in class AbstractCursor

isNull

public boolean isNull(int column)
Specified by:
isNull in interface Cursor
Specified by:
isNull in class AbstractCursor


Copyright © 2008-2012. All Rights Reserved.