-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBeanPhase13.java
More file actions
55 lines (42 loc) · 1.38 KB
/
Copy pathBeanPhase13.java
File metadata and controls
55 lines (42 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package p3;
import p3.*;
import java.io.*;
import java.util.ArrayList;
//This class is for getting the password, country, aid and the list of songs of a given country and aid to display them on the screen (JSP)
public class BeanPhase13 {
//The attributes of the bean. The arraylist with all songs of a given country and aid, the country, the aid and the password
private ArrayList<Song> listSongs;
private String country;
private String aid;
private String password;
//The constructor
public BeanPhase13(){
}
//Getters and setters of the attributes of the bean
public ArrayList<Song> getListSongs() {
//Calling the dataModel class to get the list of all songs of a given country and album (aid)
listSongs =DataModel.getQ1Songs(country, aid);
return listSongs;
}
public void setListSongs(ArrayList<Song> songs) {
listSongs=songs;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country=country;
}
public String getAid() {
return aid;
}
public void setAid(String aid) {
this.aid=aid;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password=password;
}
}