01: /*
02: * discRack
03: *
04: * Enhydra super-servlet specification object
05: *
06: */
07: package discRack.spec;
08:
09: import org.enhydra.dods.exceptions.AssertionDataObjectException;
10:
11: public interface Disc {
12:
13: public String getHandle() throws DiscRackException;
14:
15: public String getTitle() throws DiscRackException;
16:
17: public String getArtist() throws DiscRackException;
18:
19: public String getGenre() throws DiscRackException;
20:
21: public boolean isLiked() throws DiscRackException;
22:
23: public void setTitle(String title) throws DiscRackException;
24:
25: public void setArtist(String artist) throws DiscRackException;
26:
27: public void setGenre(String genre) throws DiscRackException;
28:
29: public void setOwner(Person owner) throws DiscRackException;
30:
31: public void setLiked(boolean isLiked) throws DiscRackException;
32:
33: public void save() throws DiscRackException,
34: AssertionDataObjectException;
35:
36: public void delete() throws DiscRackException,
37: AssertionDataObjectException;
38: }
|