public class

ContactsProvider2.PhotoDataRowHandler

extends Object
java.lang.Object
   ↳ com.android.providers.contacts.ContactsProvider2.PhotoDataRowHandler

Summary

Fields
protected final String mMimetype
protected long mMimetypeId
Public Constructors
ContactsProvider2.PhotoDataRowHandler()
Public Methods
int delete(SQLiteDatabase db, Cursor c)
ContentValues getAugmentedValues(SQLiteDatabase db, long dataId, ContentValues update)
Return set of values, using current values at given _ID as baseline, but augmented with any updates.
long insert(SQLiteDatabase db, long rawContactId, ContentValues values)
Inserts a row into the Data table.
boolean update(SQLiteDatabase db, ContentValues values, Cursor c, boolean callerIsSyncAdapter)
Validates data and updates a Data row using the cursor, which contains the current data.
Protected Methods
void fixRawContactDisplayName(SQLiteDatabase db, long rawContactId)
long getMimeTypeId()
int getTypeRank(int type)
Returns the rank of a specific record type to be used in determining the primary row.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected final String mMimetype

protected long mMimetypeId

Public Constructors

public ContactsProvider2.PhotoDataRowHandler ()

Public Methods

public int delete (SQLiteDatabase db, Cursor c)

public ContentValues getAugmentedValues (SQLiteDatabase db, long dataId, ContentValues update)

Return set of values, using current values at given _ID as baseline, but augmented with any updates. Returns null if there is no change.

public long insert (SQLiteDatabase db, long rawContactId, ContentValues values)

Inserts a row into the Data table.

public boolean update (SQLiteDatabase db, ContentValues values, Cursor c, boolean callerIsSyncAdapter)

Validates data and updates a Data row using the cursor, which contains the current data.

Returns
  • true if update changed something

Protected Methods

protected void fixRawContactDisplayName (SQLiteDatabase db, long rawContactId)

protected long getMimeTypeId ()

protected int getTypeRank (int type)

Returns the rank of a specific record type to be used in determining the primary row. Lower number represents higher priority.