Package src.controller
Class ApplicationController
java.lang.Object
src.controller.ApplicationController
UserController Class that handles CRUD operations for
InternshipApplication.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateApplication(InternshipApplication application) Create aInternshipApplication.voiddeleteApplication(InternshipApplication application) Deletes an internship application.Get allInternshipApplications.
-
Field Details
-
db
-
-
Constructor Details
-
ApplicationController
Constructs aApplicationControllerfrom the givenDatabase.- Parameters:
db- theDatabaseinstance
-
-
Method Details
-
createApplication
Create aInternshipApplication.- Parameters:
application- theInternshipApplicationto create.
-
getInternshipApplications
Get allInternshipApplications.- Returns:
- An
ArrayListof allInternshipApplications in the database.
-
deleteApplication
Deletes an internship application.- Parameters:
application- TheInternshipApplicationto delete.
-