annotate src/main/java/de/intevation/lada/model/land/Ortszuordnung.java @ 1033:812e0cace5ba schema-update

Added additional attributes to complete the model.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 31 Aug 2016 15:49:40 +0200
parents 1c41c7b8f7c2
children
rev   line source
1028
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
1 package de.intevation.lada.model.land;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
2
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
3 import java.io.Serializable;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
4 import java.sql.Timestamp;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
5
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
6 import javax.persistence.Column;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
7 import javax.persistence.Entity;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
8 import javax.persistence.GeneratedValue;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
9 import javax.persistence.GenerationType;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
10 import javax.persistence.Id;
1033
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
11 import javax.persistence.JoinColumn;
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
12 import javax.persistence.OneToOne;
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
13 import javax.persistence.Transient;
1028
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
14
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
15
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
16 /**
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
17 * The persistent class for the ortszuordnung database table.
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
18 *
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
19 */
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
20 @Entity
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
21 public class Ortszuordnung implements Serializable {
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
22 private static final long serialVersionUID = 1L;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
23
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
24 @Id
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
25 @GeneratedValue(strategy=GenerationType.IDENTITY)
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
26 private Integer id;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
27
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
28 @Column(name="letzte_aenderung")
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
29 private Timestamp letzteAenderung;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
30
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
31 @Column(name="ort_id")
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
32 private Long ortId;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
33
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
34 @Column(name="ortszuordnung_typ")
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
35 private String ortszuordnungTyp;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
36
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
37 private String ortszusatztext;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
38
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
39 @Column(name="probe_id")
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
40 private Integer probeId;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
41
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
42 @Column(name="tree_modified")
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
43 private Timestamp treeModified;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
44
1033
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
45 @OneToOne
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
46 @JoinColumn(name="probe_id", insertable=false, updatable=false)
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
47 private Probe probe;
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
48
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
49 @Transient
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
50 private boolean owner;
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
51
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
52 @Transient
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
53 private boolean readonly;
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
54
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
55 @Transient
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
56 private Timestamp parentModified;
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
57
1028
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
58 public Ortszuordnung() {
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
59 }
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
60
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
61 public Integer getId() {
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
62 return this.id;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
63 }
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
64
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
65 public void setId(Integer id) {
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
66 this.id = id;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
67 }
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
68
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
69 public Timestamp getLetzteAenderung() {
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
70 return this.letzteAenderung;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
71 }
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
72
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
73 public void setLetzteAenderung(Timestamp letzteAenderung) {
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
74 this.letzteAenderung = letzteAenderung;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
75 }
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
76
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
77 public Long getOrtId() {
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
78 return this.ortId;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
79 }
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
80
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
81 public void setOrtId(Long ortId) {
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
82 this.ortId = ortId;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
83 }
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
84
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
85 public String getOrtszuordnungTyp() {
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
86 return this.ortszuordnungTyp;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
87 }
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
88
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
89 public void setOrtszuordnungTyp(String ortszuordnungTyp) {
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
90 this.ortszuordnungTyp = ortszuordnungTyp;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
91 }
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
92
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
93 public String getOrtszusatztext() {
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
94 return this.ortszusatztext;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
95 }
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
96
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
97 public void setOrtszusatztext(String ortszusatztext) {
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
98 this.ortszusatztext = ortszusatztext;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
99 }
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
100
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
101 public Integer getProbeId() {
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
102 return this.probeId;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
103 }
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
104
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
105 public void setProbeId(Integer probeId) {
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
106 this.probeId = probeId;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
107 }
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
108
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
109 public Timestamp getTreeModified() {
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
110 return this.treeModified;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
111 }
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
112
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
113 public void setTreeModified(Timestamp treeModified) {
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
114 this.treeModified = treeModified;
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
115 }
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
116
1033
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
117 /**
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
118 * @return the owner
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
119 */
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
120 public boolean isOwner() {
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
121 return owner;
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
122 }
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
123
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
124 /**
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
125 * @param owner the owner to set
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
126 */
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
127 public void setOwner(boolean owner) {
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
128 this.owner = owner;
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
129 }
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
130
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
131 /**
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
132 * @return the readonly
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
133 */
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
134 public boolean isReadonly() {
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
135 return readonly;
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
136 }
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
137
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
138 /**
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
139 * @param readonly the readonly to set
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
140 */
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
141 public void setReadonly(boolean readonly) {
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
142 this.readonly = readonly;
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
143 }
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
144
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
145 public Timestamp getParentModified() {
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
146 if (this.parentModified == null && this.probe != null) {
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
147 return this.probe.getTreeModified();
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
148 }
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
149 return this.parentModified;
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
150 }
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
151
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
152 public void setParentModified(Timestamp parentModified) {
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
153 this.parentModified = parentModified;
812e0cace5ba Added additional attributes to complete the model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1028
diff changeset
154 }
1028
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
155 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)