public class

ContactsProvider2.PhoneDataRowHandler

extends ContactsProvider2.CommonDataRowHandler
java.lang.Object
   ↳ com.android.providers.contacts.ContactsProvider2.CommonDataRowHandler
     ↳ com.android.providers.contacts.ContactsProvider2.PhoneDataRowHandler

Summary

[Expand]
Inherited Fields
From class com.android.providers.contacts.ContactsProvider2.CommonDataRowHandler
Public Constructors
ContactsProvider2.PhoneDataRowHandler()
Public Methods
int delete(SQLiteDatabase db, Cursor c)
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
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 com.android.providers.contacts.ContactsProvider2.CommonDataRowHandler
From class java.lang.Object

Public Constructors

public ContactsProvider2.PhoneDataRowHandler ()

Public Methods

public int delete (SQLiteDatabase db, Cursor c)

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 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.