blob: da20fbcc1deeef88c69cf39ac47de786b421673f (
plain) (
blame)
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
|
package org.openslx.imagemaster.db;
public class DbSatellite {
/*
* Get row from mysql db and
*/
private String organization, address, name;
// needs to be public in order to be found by MySQL
public DbSatellite(String organization, String address, String name) {
this.organization = organization;
this.address = address;
this.name = name;
}
public static DbSatellite createDbSatellite(String organization) {
return MySQL
.findUniqueOrNull(
DbSatellite.class,
"SELECT satellite.organization, satellite.address, satellite.name FROM satellite WHERE satellite.organization = ? LIMIT 1",
organization);
}
public String getAddress() {
return address;
}
public String getName() {
return name;
}
public String getOrganization() {
return organization;
}
}
|