Package com.esprit.services.films
Class ActorFilmService
java.lang.Object
com.esprit.services.films.ActorFilmService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
createFilmActorAssociation
(Film film, List<String> actorNames) Performs createFilmActorAssociation operation.void
deleteFilmActorAssociation
(int filmId, int actorId) Performs deleteFilmActorAssociation operation.getActorsForFilm
(int filmId) Retrieves the ActorsForFilm value.getActorsNames
(Long filmId) Retrieves the ActorsNames value.getFilmsForActor
(int actorId) Retrieves the FilmsForActor value.void
updateActors
(Film film, List<String> actorNames) Performs updateActors operation.
-
Field Details
-
LOGGER
-
connection
-
-
Constructor Details
-
ActorFilmService
public ActorFilmService()Performs ActorFilmService operation.
-
-
Method Details
-
createFilmActorAssociation
Performs createFilmActorAssociation operation. -
getActorsForFilm
Retrieves the ActorsForFilm value.- Returns:
- the ActorsForFilm value
-
getFilmsForActor
Retrieves the FilmsForActor value.- Returns:
- the FilmsForActor value
-
updateActors
Performs updateActors operation. -
getActorsNames
Retrieves the ActorsNames value.- Returns:
- the ActorsNames value
-
deleteFilmActorAssociation
public void deleteFilmActorAssociation(int filmId, int actorId) Performs deleteFilmActorAssociation operation.
-