You are to implement the Data Mapper Pattern with groups of 2-3 using a CSV file. (Located on Moodle as input.csv) Classes to represent your records. (Student) Getters/Setters needed for the class...


You are to implement the Data Mapper Pattern with groups of 2-3 using a CSV file. (Located on Moodle as input.csv)




  • Classes to represent your records. (Student)





    • Getters/Setters needed for the class that call the data mapper when needed.




    • Function to determine if their W# is prime. (This is just the business logic.)





  • A class to serve as a data mapper.





    • This is where file I/O takes place. On construction, it reads in the CSV file.




    • This is where the reader/writer is. You'll need to implement Find and Update operations.



    • Use this for the CSV reading:https://www.baeldung.com/java-csv-file-array





  • A driver class to test your data mapper.



  • HINTS: When you construct a "Student object", that will ask the Data Mapper to find the record. Setters ask the Data Mapper to update the record.



Mar 18, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here