Home | History | Annotate | Download | only in datasources

Lines Matching refs:id

32    * @param contentValues an entire row not including the ID
34 * update, or delete with the provided id
36 public void insert(long id, ContentValues contentValues) {
37 Assert.checkArgument(!inserts.containsKey(id), "Can't insert row already scheduled for insert");
38 Assert.checkArgument(!updates.containsKey(id), "Can't insert row scheduled for update");
39 Assert.checkArgument(!deletes.contains(id), "Can't insert row scheduled for delete");
41 inserts.put(id, contentValues);
45 * Stores a database update using the provided ID and content values. If this {@link
46 * CallLogMutations} object already contains an update with the specified ID, the existing content
50 * @param contentValues the specific columns to update, not including the ID.
52 * delete with the provided id
54 public void update(long id, ContentValues contentValues) {
55 Assert.checkArgument(!inserts.containsKey(id), "Can't update row scheduled for insert");
56 Assert.checkArgument(!deletes.contains(id), "Can't delete row scheduled for delete");
58 ContentValues existingContentValues = updates.get(id);
62 updates.put(id, contentValues);
68 * update, or delete with the provided id
70 public void delete(long id) {
71 Assert.checkArgument(!inserts.containsKey(id), "Can't delete row scheduled for insert");
72 Assert.checkArgument(!updates.containsKey(id), "Can't delete row scheduled for update");
73 Assert.checkArgument(!deletes.contains(id), "Can't delete row already scheduled for delete");
75 deletes.add(id);
85 * @return the pending inserts where the key is the annotated call log database ID and the values
86 * are values to be inserted (not including the ID)
95 * @return the pending updates where the key is the annotated call log database ID and the values
96 * are values to be updated (not including the ID)