private boolean updateActivity(Activity oldActivity, Activity newActivity) {
		boolean saved = false;
		
		try {
			Connection conn = Dao.getConnection();
			if (!"".equals(newActivity.getName())) {
				if (oldActivity.getName().equals(newActivity.getName()) ||
						!activityDao.nameExists(conn, newActivity.getName())) {
					int updateActivity = activityDao.updateActivity(conn, oldActivity, newActivity);
					if (updateActivity > 0) saved = true;
				} else {
					AlertMessages.activityNameExists(activityDialog, newActivity.getName());
				}
			} else {
				AlertMessages.emptyActivityFields(activityDialog);
			}
		} catch (SQLException ex) {
			ErrorMessages.sqlExceptionError("updateActivity()", ex);
		} catch (ClassNotFoundException ex) {
			ErrorMessages.classNotFoundError("updateActivity()", ex);
		}
		return saved;
	}