source: source/MovieZilla-master/src/main/java/com/example/demo/service/MovieService.java

Last change on this file was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 2 years ago

all files

  • Property mode set to 100644
File size: 1001 bytes
Line 
1package com.example.demo.service;
2
3import com.example.demo.model.Movie;
4import com.example.demo.model.dto.MovieDto;
5
6
7import java.util.List;
8import java.util.Optional;
9
10public interface MovieService {
11 List<Movie> findAll();
12 List<Movie> listMovies();
13 Optional<Movie> findAllByID(Integer id);
14 Optional<Movie> findById(Integer id);
15 void deleteById(Integer movie_id);
16 Optional<Movie> save(Integer movie_id, String movie_name,String movie_age_category,String movie_cast,String movie_production,String film_director,String movie_time_duration);
17 //Optional<Movie> edit(Integer movie_id, String movie_name,String movie_age_category,String movie_cast,String movie_production,String film_director,String movie_time_duration);
18 //Optional<Movie> edit(Integer movie_id, MovieDto movieDto);
19 Optional<Movie> save(MovieDto movieDto);
20
21 Optional<Movie> findByName(String movie_name);
22
23 void deleteByName(String movie_name);
24
25 Optional<Movie> findAllByName(String s);
26}
Note: See TracBrowser for help on using the repository browser.