Below is the code that I use to clear all data in my database

```
public Cursor readEntry() {

        SQLiteDatabase db = helper.getWritableDatabase();

        String[] allColumns = new String[] { data.NAME,
                data._STATUS, data.WEIGHT, data.DATE};

        Cursor c = db.query(data.TABLE_NAME, allColumns, null, null, null,
                null, null);

        if (c != null) {
            c.moveToFirst();
        }
        return c;

    }

    public boolean deleteRow(long id) {

        SQLiteDatabase db = helper.getWritableDatabase();
        String where = data.UID + "=" + id;
        return db.delete(data.TABLE_NAME, where, null) != 0;
    }

    public void DeleteAll(){

        Cursor c = readEntry();
        long id = c.getColumnIndexOrThrow(data.UID);
        if (c.moveToFirst()) {
            do {
                deleteRow(c.getLong((int) id));
            } while (c.moveToNext());
        }
        c.close();

    }

```

My question is, how can I use NAME instead of using ID, and how do I call the method String? The code above can just call the method data.DeleteAll(); but in a String case, how do I call it?