English | Site Directory

Android - An Open Handset Alliance Project

android.content
protected class

android.content.DatabaseContentProvider.DcpCursor

java.lang.Object
android.database.AbstractCursor Cursor
android.database.AbstractWindowedCursor
android.database.sqlite.SQLiteCursor
android.content.DatabaseContentProvider.DcpCursor

A specialization of SQLiteCursor that protects commitUpdates with a lock.

Summary

Fields inherited from class android.database.AbstractWindowedCursor
Fields inherited from class android.database.AbstractCursor

Protected Constructors

          DatabaseContentProvider.DcpCursor(SQLiteDatabase db, SQLiteCursorDriver compiledQuery, String editTable, SQLiteQuery query, int count)

Public Methods

        boolean  commitUpdates(Map additionalValues)
Atomically commits all updates to the backing store, as well as the updates included in values.
Methods inherited from class android.database.sqlite.SQLiteCursor
Methods inherited from class android.database.AbstractWindowedCursor
Methods inherited from class android.database.AbstractCursor
Methods inherited from class java.lang.Object
Methods inherited from interface android.database.Cursor

Details

Protected Constructors

protected DatabaseContentProvider.DcpCursor(SQLiteDatabase db, SQLiteCursorDriver compiledQuery, String editTable, SQLiteQuery query, int count)

Public Methods

public boolean commitUpdates(Map additionalValues)

Atomically commits all updates to the backing store, as well as the updates included in values. After completion, this method leaves the data in an inconsistent state and you should call requery() before reading data from the cursor again.
Build m5-rc15g - 14 May 2008 12:50