Class FilmCategoryService

java.lang.Object
com.esprit.services.films.FilmCategoryService

public class FilmCategoryService extends Object
  • Field Details

    • LOGGER

      private static final Logger LOGGER
    • connection

      private final Connection connection
  • Constructor Details

    • FilmCategoryService

      public FilmCategoryService()
      Performs FilmCategoryService operation.
  • Method Details

    • createFilmCategoryAssociation

      public void createFilmCategoryAssociation(Film film, List<String> categoryNames)
      Performs createFilmCategoryAssociation operation.
    • getCategoriesForFilm

      public List<Category> getCategoriesForFilm(int filmId)
      Retrieves the CategoriesForFilm value.
      Returns:
      the CategoriesForFilm value
    • getFilmsForCategory

      public List<Film> getFilmsForCategory(int categoryId)
      Retrieves the FilmsForCategory value.
      Returns:
      the FilmsForCategory value
    • updateCategories

      public void updateCategories(Film film, List<String> categoryNames)
      Performs updateCategories operation.
    • getCategoryNames

      public String getCategoryNames(Long filmId)
      Retrieves the CategoryNames value.
      Returns:
      the CategoryNames value
    • deleteFilmCategoryAssociation

      public void deleteFilmCategoryAssociation(int filmId, int categoryId)
      Performs deleteFilmCategoryAssociation operation.