commit | author | age
|
5eee56
|
1 |
/* |
U |
2 |
* Radiozentrale - Webradio App |
|
3 |
* Copyright (C) 2018 Ulrich Hilger, http://uhilger.de |
|
4 |
* |
|
5 |
* This program is free software: you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation, either version 3 of the License, or |
|
8 |
* (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program. If not, see http://www.gnu.org/licenses/ |
|
17 |
*/ |
|
18 |
|
|
19 |
package de.uhilger.radiozentrale.daten; |
|
20 |
|
|
21 |
import de.uhilger.baselink.DBColumn; |
|
22 |
import de.uhilger.baselink.DBPrimaryKey; |
|
23 |
import de.uhilger.baselink.DBTable; |
|
24 |
|
|
25 |
/** |
|
26 |
* |
|
27 |
* @author Ulrich Hilger |
|
28 |
*/ |
|
29 |
@DBTable(name="app.sender") |
|
30 |
@DBPrimaryKey({"sender_id"}) |
|
31 |
public class Sender { |
|
32 |
private int id; |
|
33 |
private String name; |
|
34 |
private String url; |
|
35 |
private String logo; |
|
36 |
|
|
37 |
|
|
38 |
public void setId(int wert) { |
|
39 |
id = wert; |
|
40 |
} |
|
41 |
|
|
42 |
@DBColumn(name = "sender_id") |
|
43 |
public int getId() { |
|
44 |
return id; |
|
45 |
} |
|
46 |
|
|
47 |
public void setName(String wert) { |
|
48 |
name = wert; |
|
49 |
} |
|
50 |
|
|
51 |
@DBColumn(name = "sender_name") |
|
52 |
public String getName() { |
|
53 |
return name; |
|
54 |
} |
|
55 |
|
|
56 |
public void setUrl(String wert) { |
|
57 |
url = wert; |
|
58 |
} |
|
59 |
|
|
60 |
@DBColumn(name = "sender_url") |
|
61 |
public String getUrl() { |
|
62 |
return url; |
|
63 |
} |
|
64 |
|
|
65 |
public void setLogo(String wert) { |
|
66 |
logo = wert; |
|
67 |
} |
|
68 |
|
|
69 |
@DBColumn(name = "sender_logo") |
|
70 |
public String getLogo() { |
|
71 |
return logo; |
|
72 |
} |
|
73 |
} |