private NotificationEntry cursorToNotificationEntry(Cursor cursor) { NotificationEntry notificationEntry = new NotificationEntry(); notificationEntry.setId(cursor.getLong(0)); notificationEntry.setNotificationEntry(cursor.getString(1)); return notificationEntry; }
public void deleteNotificationEntry(NotificationEntry notificationEntry) { long id = notificationEntry.getId(); System.out.println("NotificationEntry deleted with id: " + id); database.delete( MySQLiteHelper.TABLE_NOTIFICATIONENTRIES, MySQLiteHelper.COLUMN_ID + " = " + id, null); }