CIS355A Week 6 LabDatabase OBJECTIVESAdd persistent data storage to your Week 5 Lab using the MySQL Database. PROBLEM: Stocks4U Portfolio Management SystemThe portfolio management system you developed for Stocks4U needs the ability to save and restore a users data from a MySql Database. FUNCTIONAL REQUIREMENTSThe functional requirements of the Stocks4U application have not changed, and the Graphical User Interface has not changed from Week 5. StockIO class Modify the StockIO class to read and write the stock information to and from a MySQL database. Called StocksDB This class should have two methods.getDatareads data from file, returns data in array list of stock objectssaveDatawrites data from an array list to the data base in proper formatdeleteStockdeletes the identified stock from the databaseupdateStockupdates the identified stock in the database.The database connection string will be stored as a constant in the StockIO class. GUI classNote that you will need to add an ArrayList to your GUI class to manage the data to/from the file. It will act as a parallel array to your DefaultListModel. Any time you add a stock, you must add it in BOTH places. Any time you remove a stock, you must remove it in
BOTH places. Fileopen should open the database, retrieve the existing records and display the existing records.Filesave should save all records, new and old, back to the database.Fileexit should exit the program. The total value of the portfolio should be displayed at all times and updated anytime a stock is added or removed.RUBRICStockIO classgetData method reads from databasesaveData method writes data to the databaseudpateStock method updates the identified stock to the databasedeleteStock method deletes the identified stock in the database40Code style5Lab Report10TOTAL55 CODE STYLE REQUIREMENTSInclude meaningful comments throughout your code.Use meaningful names for variables.Code must be properly indented.Include a comment header at beginning of each file, example below./**************************************************** Program Name: ProgramName.java Programmers Name: Student Name Program Description: Describe here what this program will do ***********************************************************/ DELIVERABLESSubmit as a SINGLE zip folderall Java files; andthe Lab report. Follow assignment specification regarding class/method names.Note that your Java file name must match class name (DO NOT rename).