public void setReportState(int rId, ErrorCode state)
	{
		try
		{
			connect();
			String strStatement = "UPDATE report SET rErrorCode=" + state.value() + " WHERE rId=" + rId;
			_statement.executeUpdate(strStatement);
			_logger.debug("State changed for: " + rId + "to " + state.value());
		}
		catch (ClassNotFoundException e)
		{
			_logger.fatal(e.getMessage(), e);
			e.printStackTrace();
		}
		catch (SQLException e)
		{
			_logger.fatal(e.getMessage(), e);
			e.printStackTrace();
		}
		finally
		{
			disconnect();
		}
	}