java.lang.Object | |
↳ | com.android.contacts.model.EntityDelta.ValuesDelta |
Known Direct Subclasses |
Type of ContentValues that maintains both an original state and a
modified version of that state. This allows us to build insert, update,
or delete operations based on a "before" Entity
snapshot.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR | |||||||||||
mAfter | |||||||||||
mBefore | |||||||||||
mIdColumn | |||||||||||
sNextInsertId | Next value to assign to mIdColumn when building an insert
operation through fromAfter(ContentValues) . |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Build a
ContentProviderOperation that will transform our
"before" state into our "after" state, using insert, update, or
delete as needed. | |||||||||||
Create
EntityDelta.ValuesDelta , using the given object as the "after"
state, usually when we are inserting a row instead of updating. | |||||||||||
Create
EntityDelta.ValuesDelta , using the given object as the
"before" state, usually from an Entity. | |||||||||||
Return complete set of "before" and "after" values mixed together,
giving full state regardless of edits.
| |||||||||||
Return set of all keys defined through this object.
| |||||||||||
Merge the "after" values from the given
EntityDelta.ValuesDelta ,
discarding any existing "after" state. | |||||||||||
Check if the given
EntityDelta.ValuesDelta is both a subset of this
object, and any defined keys have equal values. | |||||||||||
Helper for building string representation, leveraging the given
StringBuilder to minimize allocations.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Next value to assign to mIdColumn
when building an insert
operation through fromAfter(ContentValues)
. This is used so
we can concretely reference this EntityDelta.ValuesDelta
before it has
been persisted.
Build a ContentProviderOperation
that will transform our
"before" state into our "after" state, using insert, update, or
delete as needed.
Create EntityDelta.ValuesDelta
, using the given object as the "after"
state, usually when we are inserting a row instead of updating.
Create EntityDelta.ValuesDelta
, using the given object as the
"before" state, usually from an Entity.
Return complete set of "before" and "after" values mixed together, giving full state regardless of edits.
Merge the "after" values from the given EntityDelta.ValuesDelta
,
discarding any existing "after" state. This is typically used when
re-parenting changes onto an updated Entity.
Check if the given EntityDelta.ValuesDelta
is both a subset of this
object, and any defined keys have equal values.
Helper for building string representation, leveraging the given StringBuilder to minimize allocations.