Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The crewmember goes to the rewatch race page where the front-end does a call to the back-end. This activates the getAllRaces method in the RaceresourceRaceResource. The resource is only responsible for returning the response so it gets delegated to the racecontrollerRaceController. The Racecontroller RaceController delegates this to the raceDAO because getting the data from the database is not the responsibility of the controller. In the RaceDAO a database connection is established to get all the data from the database. The benefit of this structure is that you can easily swap the classes which results in low cohesion and high coupling. This structure is based of the the layer pattern.

...