Android Guides | Samples

Android.Database Namespace

If you need to manage data in a private database, use the Android.Database.Sqlite classes.

Remarks

Contains classes to explore data returned through a content provider.

If you need to manage data in a private database, use the Android.Database.Sqlite classes. These classes are used to manage the ICursor object returned from a content provider query. Databases are usually created and opened with Context.OpenOrCreateDatabase(String,FileCreationMode,FileCreationMode) To make requests through content providers, you can use the ContentResolver class.

All databases are stored on the device in /data/data/<package_name>/databases

Classes

TypeReason
AbstractCursorThis is an abstract cursor class that handles a lot of the common code that all cursors need to deal with and is provided for convenience reasons.
AbstractCursor+SelfContentObserverCursors use this class to track changes others make to their URI.
AbstractWindowedCursorA base class for Cursors that store their data in CursorWindows.
CharArrayBufferThis is used for ICursor.CopyStringToBuffer(Int32,CharArrayBuffer)
ContentObservableA specialization of Observable for ContentObserver that provides methods for sending notifications to a list of ContentObserver objects.
ContentObserverReceives call backs for changes to content.
CrossProcessCursorWrapperCursor wrapper that implements ICrossProcessCursor.
CursorIndexOutOfBoundsExceptionAn exception indicating that a cursor is out of bounds.
CursorJoinerDoes a join on two cursors using the specified columns.
CursorJoiner+ResultThe result of a call to next().
CursorWindowA buffer containing multiple cursor rows.
CursorWindow+InterfaceConsts
CursorWrapperWrapper class for Cursor that delegates all calls to the actual cursor object.
DatabaseUtilsStatic utility methods for dealing with databases and ICursors.
DatabaseUtils+InsertHelperThis class allows users to do multiple inserts into a table using the same statement.
DataSetObservableA specialization of Observable for DataSetObserver that provides methods for sending notifications to a list of DataSetObserver objects.
DataSetObserverReceives call backs when a data set has been changed, or made invalid.
DefaultDatabaseErrorHandlerDefault class used to define the action to take when database corruption is reported by sqlite.
FieldTypeEnumerates values returned by several types.
ICrossProcessCursorA cross process cursor is an extension of a ICursor that also supports usage from remote processes.
ICursorThis interface provides random read-write access to the result set returned by a database query.
IDatabaseErrorHandlerAn interface to let apps define an action to take when database corruption is detected.
MatrixCursorA mutable cursor implementation backed by an array of Objects.
MatrixCursor+RowBuilderBuilds a row, starting from the left-most column and adding one column value at a time.
MergeCursorA convience class that lets you present an array of Cursors as a single linear Cursor.
ObservableProvides methods for registering or unregistering arbitrary observers in an JavaList.
SQLExceptionAn exception that indicates there was an error with SQL parsing or execution.
StaleDataExceptionThis exception is thrown when a Cursor contains stale data and must be requeried before being used again.
StatementTypeEnumerates values returned by several types.