2 * This interface describes all posible operation with discs.
3 * @author Andrey Parhomenko
8 package ua
.edu
.sumdu
.lab3
.model
;
10 import ua
.edu
.sumdu
.lab3
.model
.exceptions
.*;
11 import java
.util
.Date
;
12 import java
.util
.List
;
14 public interface Operable
{
16 public void addDisc(Disc disc
) throws AddDataException
;
18 public void addGenre(String genre
) throws AddDataException
;
20 public void addCountry(String country
) throws AddDataException
;
22 public void addLabel(String label
) throws AddDataException
;
24 public Disc
getDiscById(int id
) throws GetDataException
;
26 public List
getDiscsByGenre(String genre
) throws GetDataException
;
28 public List
getDiscsByAuthor(String author
) throws GetDataException
;
30 public List
getDiscsByLabel(String label
) throws GetDataException
;
32 public List
getDiscsByDate(Date date
) throws GetDataException
;
34 public List
getDiscsByTitle(String title
) throws GetDataException
;
36 public List
getTitles() throws GetDataException
;
38 public List
getAuthors() throws GetDataException
;
40 public List
getGenres() throws GetDataException
;
42 public List
getLabels() throws GetDataException
;
44 public List
getDates() throws GetDataException
;
46 public void editDisc(int id
) throws EditDataException
;