View Javadoc

1   package org.musicontroller.gui.edit;
2   
3   import java.io.Serializable;
4   
5   /**
6    * Bean used for storing editable properties of a song
7    * in the form on the Playlist edit screen. 
8    * The bean also can contain the band id of the band performing the song.
9    * A negative value indicates that the band id has not been filled.
10   * 
11   * @author Hans Drexler
12   * @version $Id: SongBean.java,v 1.1 2010/03/16 18:55:42 varienaja Exp $
13   */
14  public class  SongBean implements Serializable {
15  
16  	private static final long serialVersionUID = -6454787648553892354L;
17  	
18  	private long _songId;
19  	private int _songIndex;
20  	private String _bandname;
21  	private long _bandId;
22  	private String _songname;
23  	private int _songlength;
24  	private String _keywords;
25  	
26  	/**
27  	 * Setter for the band name.
28  	 * @param bandname The band name.
29  	 */
30  	public void setBandname(String bandname) {
31  		_bandname = bandname;
32  	}
33  	
34  	/**
35  	 * Getter for the band name.
36  	 * @return The band name.
37  	 */
38  	public String getBandname() {
39  		return _bandname;
40  	}
41  
42  	/**
43  	 * Getter for the band id.
44  	 * @return The band id.
45  	 */
46  	public long getBandId() {
47  		return _bandId;
48  	}
49  	
50  	/**
51  	 * Setter for the band id.
52  	 * @param bandId The band Id.
53  	 */
54  	public void setBandId(long bandId) {
55  		_bandId = bandId;
56  	}
57  	
58  	/**
59  	 * Setter for the song name.
60  	 * @param songname The song name.
61  	 */
62  	public void setSongname(String songname) {
63  		_songname = songname;
64  	}
65  	
66  	/**
67  	 * Getter for the song name.
68  	 * @return The song name.
69  	 */
70  	public String getSongname() {
71  		return _songname;
72  	}
73  	
74  	/**
75  	 * Setter for the song length.
76  	 * @param songlength The song length.
77  	 */
78  	public void setSonglength(int songlength) {
79  		_songlength = songlength;
80  	}
81  	
82  	/**
83  	 * Getter for the song length.
84  	 * @return The song length.
85  	 */
86  	public int getSonglength() {
87  		return _songlength;
88  	}
89  	
90  	/**
91  	 * Getter for the song keywords (Expressed as a
92  	 * comma separated list of keywords).
93  	 * @return The list of keywords.
94  	 */
95  	public String getSongKeywords() {
96  		return _keywords;
97  	}
98  	
99  	/**
100 	 * Setter for the song keywords (Expressed as a
101 	 * comma separated list of keywords). 
102 	 * @param keywords The new list of keywords.
103 	 */
104 	public void setSongKeywords(String keywords) {
105 		_keywords = keywords;
106 	}
107 	
108 	/**
109 	 * Getter for the song id.
110 	 * @return The song id.
111 	 */
112 	public long getSongId() {
113 		return _songId;
114 	}
115 	
116 	/**
117 	 * Setter for the song id.
118 	 * @param id The song id.
119 	 */
120 	public void setSongId(long id) {
121 		_songId = id;
122 	}
123 	
124 	/**
125 	 * Getter for the song index.
126 	 * @return The song index.
127 	 */
128 	public int getSongIndex() {
129 		return _songIndex;
130 	}
131 	
132 	/**
133 	 * Setter for the song index.
134 	 * @param index The song index.
135 	 */
136 	public void setSongIndex(int index) {
137 		_songIndex = index;
138 	}
139 }