release ver 0.01
[disksdb.git] / src / ua / edu / sumdu / lab3 / model / Operable.java
blob7ac28fd3cff36b7a021c1fb4f0cfee418ccfaec8
1 /**
2 * This interface describes all posible operation with discs.
3 * @author Andrey Parhomenko
4 * @version 0.1
5 * @date 05.04.2010
6 */
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;