EventDriven 3A
EventDriven 3A
System
Members:
Albert Ocampo
Antonio Emmanuel Serquillos
Jeia Jorolan
Joresa Pabalate
Introduction
purpose: This method fetches all reservations from the database and populates the Reservations collection. The collection is then bound to the DataGrid
in the UI to display the reservation data. This ensures the data shown to the user is up-to-date with the database.
Adding a New Reservation
purpose: This event handler is triggered when the user clicks the "Add Reservation" button. It:
purpose: This method updates the details of a selected reservation. It ensures the updated information is applied to the correct reservation by using its
unique ID.
Deleting a Reservation
purpose: This method removes a reservation from the database based on the user's selection. It ensures only the selected reservation is deleted and
updates the UI to reflect the changes.
Validating Inputs
purpose: This method ensures the inputs provided by the user are valid before performing any database operation. It prevents empty or invalid data from
being added or updated.
Database Connection Helper
purpose: This helper method provides a reusable way to create and retrieve a connection to the database. It simplifies database interactions by
centralizing the connection logic.
Output
Day 2 12/10/24 Albert Backend Set up Complete Issues with foreign Corrected foreign key
Development database API key constraints relationships and
schema, integration added database
created initial
tables (users,
orders)
Day 3 12/11/24 Jea Backend Configured Add Inconsistent data Implemented data
Development API endpoints validation format from format
for data to frontend standardization and
retrieval endpoints validation
Day 4 12/12/24 Joresa Database Optimized Set up Slow query Indexed critical
Administrator queries for backups execution times columns and
performance and optimized slow
monitoring queries for faster
data retrieval.