1 package fr.ifremer.reefdb.dto.referential;
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 import fr.ifremer.quadrige3.ui.core.dto.referential.BaseReferentialDTOBean;
27 import javax.annotation.Generated;
28
29 @Generated(value = "org.nuiton.eugene.java.SimpleJavaBeanTransformer", date = "Mon May 09 09:01:00 CEST 2022")
30 public abstract class AbstractHarbourDTOBean extends BaseReferentialDTOBean implements HarbourDTO {
31
32 private static final long serialVersionUID = 3472664962440376370L;
33
34 protected String code;
35
36 protected boolean newCode;
37
38 @Override
39 public String getCode() {
40 return code;
41 }
42
43 @Override
44 public void setCode(String code) {
45 String oldValue = getCode();
46 this.code = code;
47 firePropertyChange(PROPERTY_CODE, oldValue, code);
48 }
49
50 @Override
51 public boolean isNewCode() {
52 return newCode;
53 }
54
55 @Override
56 public void setNewCode(boolean newCode) {
57 boolean oldValue = isNewCode();
58 this.newCode = newCode;
59 firePropertyChange(PROPERTY_NEW_CODE, oldValue, newCode);
60 }
61
62 }