@author kreon
| 29 | * |
| 30 | */ |
| 31 | @DatabaseTable(tableName = "links") |
| 32 | public class Link { |
| 33 | @DatabaseField(columnName = "id", generatedId = true) |
| 34 | private Long id; |
| 35 | @DatabaseField(columnName = "station_name", canBeNull = false) |
| 36 | private String linkName; |
| 37 | @DatabaseField(columnName = "ftn_address", uniqueIndex = true, canBeNull = false) |
| 38 | private String linkAddress; |
| 39 | @DatabaseField(columnName = "pkt_password", defaultValue = "", canBeNull = false) |
| 40 | private String paketPassword; |
| 41 | @DatabaseField(columnName = "password", defaultValue = "-", canBeNull = false) |
| 42 | private String protocolPassword; |
| 43 | @DatabaseField(columnName = "address", defaultValue = "-", canBeNull = false) |
| 44 | private String protocolAddress; |
| 45 | |
| 46 | public Long getId() { |
| 47 | return id; |
| 48 | } |
| 49 | |
| 50 | public void setId(Long id) { |
| 51 | this.id = id; |
| 52 | } |
| 53 | |
| 54 | public String getLinkName() { |
| 55 | return linkName; |
| 56 | } |
| 57 | |
| 58 | public void setLinkName(String linkName) { |
| 59 | this.linkName = linkName; |
| 60 | } |
| 61 | |
| 62 | public String getLinkAddress() { |
| 63 | return linkAddress; |
| 64 | } |
| 65 | |
| 66 | public void setLinkAddress(String linkAddress) { |
| 67 | this.linkAddress = linkAddress; |
| 68 | } |
| 69 | |
| 70 | public String getPaketPassword() { |
| 71 | return paketPassword; |
| 72 | } |
| 73 | |
| 74 | public void setPaketPassword(String paketPassword) { |
| 75 | this.paketPassword = paketPassword; |
| 76 | } |
| 77 | |
| 78 | public String getProtocolPassword() { |
| 79 | return protocolPassword; |
| 80 | } |
| 81 | |
| 82 | public void setProtocolPassword(String protocolPassword) { |
| 83 | this.protocolPassword = protocolPassword; |
| 84 | } |
| 85 | |
| 86 | public String getProtocolHost() { |
| 87 | if (protocolAddress.equals("-")) { |
| 88 | return "-"; |
nothing calls this directly
no outgoing calls
no test coverage detected