Guest User

Untitled

a guest
Feb 25th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public int delete(String table, String whereClause, String[] whereArgs) {
  2. acquireReference();
  3. try {
  4. SQLiteStatement statement = new SQLiteStatement(this, "DELETE FROM " + table +
  5. (!TextUtils.isEmpty(whereClause) ? " WHERE " + whereClause : ""), whereArgs);
  6. try {
  7. return statement.executeUpdateDelete();
  8. } finally {
  9. statement.close();
  10. }
  11. } finally {
  12. releaseReference();
  13. }
  14. }
Add Comment
Please, Sign In to add comment