android.content
public
abstract
class
android.content.AbstractTableMerger
Summary
Fields
Public Constructors
Public Methods
|
|
|
|
|
void |
deleteRow(Cursor localCursor) |
abstract |
|
|
|
|
void |
insertRow(ContentProvider diffs, Cursor diffsCursor) |
|
|
|
|
|
void |
merge(SyncContext context, String account, SyncableContentProvider serverDiffs, TempProviderSyncResult result, SyncResult syncResult, SyncableContentProvider temporaryInstanceFactory) |
|
|
|
|
|
void |
onMergeCancelled() |
abstract |
|
|
|
|
void |
resolveRow(long localPersonID, String syncID, ContentProvider diffs, Cursor diffsCursor) |
abstract |
|
|
|
|
void |
updateRow(long localPersonID, ContentProvider diffs, Cursor diffsCursor) |
Protected Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Fields
protected
String
mDeletedTable
protected
Uri
mDeletedTableURL
Public Constructors
Public Methods
public
void
deleteRow(Cursor localCursor)
This is called when it is determined that a row should be deleted from the
ContentProvider. The localCursor is on a table from the local ContentProvider
and its current position is of the row that should be deleted. The localCursor
contains the complete projection of the table.
It is the responsibility of the implementation of this method to ensure that the cursor
points to the next row when this method returns, either by calling Cursor.deleteRow() or
Cursor.next().
Parameters
localCursor
| The Cursor into the local table, which points to the row that
is to be deleted.
|
Carry out a merge of the given diffs, and add the results to
the given MergeResult. If we are the first merge to find
client-side diffs, we'll use the given ContentProvider to
construct a temporary instance to hold them.
public
void
onMergeCancelled()
Protected Methods
protected
void
cursorRowToContentValues(Cursor cursor, ContentValues map)
Converts cursor into a Map, using the correct types for the values.
protected
abstract
void
notifyChanges()