Package src.controller
Class InternshipOpportunityController
java.lang.Object
src.controller.InternshipOpportunityController
InternshipOpportunity Class that handles CRUD operations for
InternshipOpportunity.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateInternshipOpportunity(InternshipOpportunity opportunity) Create aInternshipOpportunityGet allInternshipOpportunitys in the database.getInternshipOpportunitiesByCompanyRepresentative(CompanyRepresentative companyRepresentative) Get allInternshipOpportunitys in the database thatcompanyRepresentativeis involved in.Get allInternshipOpportunitys in the database that has a specifiedstatus.Get allInternshipOpportunitys in the database thatstudentis eligible for.
-
Field Details
-
db
-
-
Constructor Details
-
InternshipOpportunityController
Constructs aInternshipOpportunityControllerfrom the givenDatabase.- Parameters:
db- theDatabaseinstance
-
-
Method Details
-
createInternshipOpportunity
Create aInternshipOpportunity- Parameters:
opportunity- theInternshipOpportunityto create
-
getInternshipOpportunities
Get allInternshipOpportunitys in the database.- Returns:
- An
ArrayListwith allInternshipOpportunitys in the database.
-
getInternshipOpportunitiesByStatus
Get allInternshipOpportunitys in the database that has a specifiedstatus.- Parameters:
status- The status of theInternshipOpportunitys.- Returns:
- An
ArrayListwith allInternshipOpportunitys in the database that satisfy the criteria.
-
getInternshipOpportunitiesByStudent
Get allInternshipOpportunitys in the database thatstudentis eligible for.- Parameters:
student- TheStudentto check against.- Returns:
- An
ArrayListwith allInternshipOpportunitys in the database that satisfy the criteria.
-
getInternshipOpportunitiesByCompanyRepresentative
public List<InternshipOpportunity> getInternshipOpportunitiesByCompanyRepresentative(CompanyRepresentative companyRepresentative) Get allInternshipOpportunitys in the database thatcompanyRepresentativeis involved in.- Parameters:
companyRepresentative- The selectedCompanyRepresentative.- Returns:
- An
ArrayListwith allInternshipOpportunitys in the database that satisfy the criteria.
-