/** Executes a DELETE query. */
 public int delete(SQLiteDatabase db) {
   return db.delete(mTable, mCondition, mArgs);
 }
  private void deleteObservationByUuid(
      SQLiteDatabase db, String observationUuid, String patientUuid) {

    db.delete(
        "observation", "uuid =? AND patientUuid=?", new String[] {observationUuid, patientUuid});
  }
Example #3
0
 @Override
 public void clear(SQLiteDatabase database) {
   database.delete(getTableName(), null, null);
 }
 public void deleteAllTimelineEventsForEntity(String caseId) {
   SQLiteDatabase database = masterRepository.getWritableDatabase();
   database.delete(TIMELINEEVENT_TABLE_NAME, CASEID_COLUMN + " = ?", new String[] {caseId});
 }