From d2f3e7c681e91fe3cdedd0ac5b339e8df92088b9 Mon Sep 17 00:00:00 2001 From: AdrianBalunan Date: Sun, 15 Mar 2026 17:20:20 +0100 Subject: [PATCH] Feat: JavaDoc for DonationDAO --- .../ntnu/systemutvikling/team6/DAO/DonationDAO.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/helpmehelpapplication/src/main/java/ntnu/systemutvikling/team6/DAO/DonationDAO.java b/helpmehelpapplication/src/main/java/ntnu/systemutvikling/team6/DAO/DonationDAO.java index c07e8a8..87674bf 100644 --- a/helpmehelpapplication/src/main/java/ntnu/systemutvikling/team6/DAO/DonationDAO.java +++ b/helpmehelpapplication/src/main/java/ntnu/systemutvikling/team6/DAO/DonationDAO.java @@ -7,9 +7,19 @@ import java.util.Calendar; import java.util.UUID; +/** + * This class is responsible for sending concurrent information about the donation to the Donation Database. + * Usally called from the DonationPageController, where the user confirms their donation. + */ + public class DonationDAO { private static final DatabaseConnection connection = new DatabaseConnection(); + /** + * Gets the total ammount of donations for a given charity, and sends it to the database throught MySQL. + * @param charity + * @param amount + */ public static void addDonation(Charity charity, double amount){ String sql_query = """