1   
2   
3   
4   package sk.stuba.fiit.foo07.genex.beans;
5   
6   
7   
8   
9   
10  public class Picture {
11  
12      private String name;
13      private String description;
14      private String settings;
15      private String mimeType;
16      private byte[] content;
17      private Integer pictureID;
18  
19      public Picture() {
20      }
21  
22      public Picture(String name, String description, String settings,
23              String mimeType, byte[] content, Integer pictureID) {
24          super();
25          this.name = name;
26          this.description = description;
27          this.settings = settings;
28          this.mimeType = mimeType;
29          this.content = content;
30          this.pictureID = pictureID;
31      }
32  
33      
34  
35  
36      public String getName() {
37          return name;
38      }
39  
40      
41  
42  
43  
44      public void setName(String name) {
45          this.name = name;
46      }
47  
48      
49  
50  
51      public String getDescription() {
52          return description;
53      }
54  
55      
56  
57  
58  
59      public void setDescription(String description) {
60          this.description = description;
61      }
62  
63      
64  
65  
66      public String getSettings() {
67          return settings;
68      }
69  
70      
71  
72  
73  
74      public void setSettings(String settings) {
75          this.settings = settings;
76      }
77  
78      
79  
80  
81      public String getMimeType() {
82          return mimeType;
83      }
84  
85      
86  
87  
88  
89      public void setMimeType(String mimeType) {
90          this.mimeType = mimeType;
91      }
92  
93      
94  
95  
96      public byte[] getContent() {
97          return content;
98      }
99  
100     
101 
102 
103 
104     public void setContent(byte[] content) {
105         this.content = content;
106     }
107 
108     
109 
110 
111     public Integer getPictureID() {
112         return pictureID;
113     }
114 
115     
116 
117 
118 
119     public void setPictureID(Integer pictureID) {
120         this.pictureID = pictureID;
121     }
122 
123     
124 
125 
126     @Override
127     public String toString() {
128         return this.name;
129     }
130 
131 }