Added methods to the QuestionareHelper.java file to query the database for relevant user report files
License and Copyright Notice
By submitting this issue or commenting on this issue, or contributing any content to this issue, you certify under the Developer Certificate of Origin that the content you post may be licensed under GPLv3 (for code) or CC-BY-SA 4.0 International (for non-code content).
Branch Name
isse_333_questionare_database_files
Related Issues
Created the database methods necessary for the feature from issue #329 (closed)
Description
The public database methods necessary for issue #329 (closed) have been created, and can be called from any class.
Steps to Test
(List the steps needed to test this merge request here using bullets, for ex:)
- Use a QuestionareHelper object in your code somewhere.
- Call one of the 4 new methods to get an integer result of the desired value
- Use that result as needed in your code.
Relevant Screenshots
(Post any relevant screenshots here.)
Relevant Logs
(Paste any relevant logs here.)
Developer Notes
Added 4 methods to the QuestionareHelper.java class for pulling the neccessary information from the QuestionaireSubmissions database.
- getTotalVisitors counts the number of guests visits to the NEST in a given month
- getTotalServed counts the number of people served by those guest visits based on each guest's family size in a given month
- getTotalServedByAge filters the results of getTotalServed into specific age groups
-
- getTotalPersonVisits counts the number of times a specific guest has visited the NEST in a given month