MCPcopy Create free account
hub / github.com/androrm/androrm / delete

Method delete

src/src/com/orm/androrm/DatabaseAdapter.java:117–123  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 1

deleteMethod · 0.95

Calls 3

openMethod · 0.95
closeMethod · 0.95
toStringMethod · 0.65

Tested by

no test coverage detected