Skip to content

Commit

Permalink
Feat: JavaDoc for DonationDAO
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianBalunan committed Mar 15, 2026
1 parent f194033 commit d2f3e7c
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
"""
Expand Down

0 comments on commit d2f3e7c

Please sign in to comment.