KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > song > SongImpl


1 package song;
2
3 // $Id: song.SongImpl.java,v 1.2 2002/07/18 09:08:03 per_nyfelt Exp $
4

5
6 import org.ozoneDB.*;
7
8 /**
9  * The implementation of the database object song.Song
10  *
11  * @version $Revision: 1.2 $ $Date: 2002/07/18 09:08:03 $
12  * @author James Stiefel
13  */

14 public class SongImpl extends OzoneObject implements Song {
15
16     /**
17      * The serialization version id used by the Java serialization.
18      */

19     final static long serialVersionUID = 1L;
20
21     String JavaDoc m_title = new String JavaDoc();
22     String JavaDoc m_author = new String JavaDoc();
23     String JavaDoc m_copyright = new String JavaDoc();
24     String JavaDoc m_publisher = new String JavaDoc();
25
26     /**
27      * Sets the value of Title
28      *
29      * @param title
30      */

31     public void setTitle (String JavaDoc title){
32         m_title = title;
33     }
34
35     /**
36      * Retrieves the value of Title
37      *
38      * @return the value of Title
39      */

40     public String JavaDoc getTitle (){
41         return m_title;
42     }
43
44     /**
45      * Sets the value of Author
46      *
47      * @param author
48      */

49     public void setAuthor (String JavaDoc author){
50         m_author = author;
51     }
52
53     /**
54      * Retrieves the value of Author
55      *
56      * @return the value of Author
57      */

58     public String JavaDoc getAuthor (){
59         return m_author;
60     }
61
62     /**
63      * Sets the value of Copyright
64      *
65      * @param copyright
66      */

67     public void setCopyright (String JavaDoc copyright){
68         m_copyright = copyright;
69     }
70
71     /**
72      * Retrieves the value of Copyright
73      *
74      * @return the value of Copyright
75      */

76     public String JavaDoc getCopyright (){
77         return m_copyright;
78     }
79
80     /**
81      * Sets the value of Publisher
82      *
83      * @param publisher
84      */

85     public void setPublisher (String JavaDoc publisher){
86         m_publisher = publisher;
87     }
88
89     /**
90      * Retrieves the value of Publisher
91      *
92      * @return the value of Publisher
93      */

94     public String JavaDoc getPublisher (){
95         return m_publisher;
96     }
97
98 }
99
Popular Tags