Package com.esprit.services.films
Class FilmCategoryService
java.lang.Object
com.esprit.services.films.FilmCategoryService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
createFilmCategoryAssociation
(Film film, List<String> categoryNames) Performs createFilmCategoryAssociation operation.void
deleteFilmCategoryAssociation
(int filmId, int categoryId) Performs deleteFilmCategoryAssociation operation.getCategoriesForFilm
(int filmId) Retrieves the CategoriesForFilm value.getCategoryNames
(Long filmId) Retrieves the CategoryNames value.getFilmsForCategory
(int categoryId) Retrieves the FilmsForCategory value.void
updateCategories
(Film film, List<String> categoryNames) Performs updateCategories operation.
-
Field Details
-
LOGGER
-
connection
-
-
Constructor Details
-
FilmCategoryService
public FilmCategoryService()Performs FilmCategoryService operation.
-
-
Method Details
-
createFilmCategoryAssociation
Performs createFilmCategoryAssociation operation. -
getCategoriesForFilm
Retrieves the CategoriesForFilm value.- Returns:
- the CategoriesForFilm value
-
getFilmsForCategory
Retrieves the FilmsForCategory value.- Returns:
- the FilmsForCategory value
-
updateCategories
Performs updateCategories operation. -
getCategoryNames
Retrieves the CategoryNames value.- Returns:
- the CategoryNames value
-
deleteFilmCategoryAssociation
public void deleteFilmCategoryAssociation(int filmId, int categoryId) Performs deleteFilmCategoryAssociation operation.
-