public void updateNotification(int notificationId){
  try {
    notificationDAO.open();
    notificationDAO.updateNotification(notificationId,Notification.Status.DISMISSED);
  }
  finally {
    notificationDAO.close();
  }
}

public void updateNotification ( int notificationId ) { try { notificationDAO . open ( ) ; notificationDAO . updateNotification ( notificationId , Notification . Status . DISMISSED ) ; } finally { notificationDAO . close ( ) ; } }
this method is used to update the notification which is stored in the embedded db .
