public class

EntityDiff

extends ArrayList<E>
java.lang.Object
   ↳ java.util.AbstractCollection<E>
     ↳ java.util.AbstractList<E>
       ↳ java.util.ArrayList<E>
         ↳ com.android.contacts.model.EntityDiff

Class Overview

Describes a set of ContentProviderOperation that need to be executed to transform a database from one Entity to another.

Summary

[Expand]
Inherited Fields
From class java.util.AbstractList
Public Methods
static EntityDiff buildDiff(Entity before, Entity after, Uri targetUri, String childForeignKey)
Build the set of ContentProviderOperation needed to translate from "before" to "after".
[Expand]
Inherited Methods
From class java.util.ArrayList
From class java.util.AbstractList
From class java.util.AbstractCollection
From class java.lang.Object
From interface java.lang.Iterable
From interface java.util.Collection
From interface java.util.List

Public Methods

public static EntityDiff buildDiff (Entity before, Entity after, Uri targetUri, String childForeignKey)

Build the set of ContentProviderOperation needed to translate from "before" to "after". Tries its best to keep operations to minimal number required. Assumes that all ContentValues are keyed using _ID values.