Delete one object or a set of objects from a specific table. @param table Query table. @param where Where clause to find the object. @return Number of affected rows.
(String table, Where where)
| 115 | * @return Number of affected rows. |
| 116 | */ |
| 117 | public int delete(String table, Where where) { |
| 118 | open(); |
| 119 | int affectedRows = mDb.delete(table, where.toString().replace(" WHERE ", ""), null); |
| 120 | close(); |
| 121 | |
| 122 | return affectedRows; |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * Inserts values into a table that has an unique id as identifier. |