View Javadoc
1   package fr.ifremer.reefdb.dto.referential.pmfm;
2   
3   /*-
4    * #%L
5    * Reef DB :: Core
6    * $Id:$
7    * $HeadURL:$
8    * %%
9    * Copyright (C) 2014 - 2022 Ifremer
10   * %%
11   * This program is free software: you can redistribute it and/or modify
12   * it under the terms of the GNU Affero General Public License as published by
13   * the Free Software Foundation, either version 3 of the License, or
14   * (at your option) any later version.
15   * 
16   * This program is distributed in the hope that it will be useful,
17   * but WITHOUT ANY WARRANTY; without even the implied warranty of
18   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19   * GNU General Public License for more details.
20   * 
21   * You should have received a copy of the GNU Affero General Public License
22   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
23   * #L%
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 AbstractMethodDTOBean extends BaseReferentialDTOBean implements MethodDTO {
31  
32      private static final long serialVersionUID = 3978985479922398052L;
33  
34      protected String description;
35  
36      protected String reference;
37  
38      protected String number;
39  
40      protected String descriptionPackaging;
41  
42      protected String descriptionPreparation;
43  
44      protected String descriptionPreservation;
45  
46      protected String comment;
47  
48      @Override
49      public String getDescription() {
50          return description;
51      }
52  
53      @Override
54      public void setDescription(String description) {
55          String oldValue = getDescription();
56          this.description = description;
57          firePropertyChange(PROPERTY_DESCRIPTION, oldValue, description);
58      }
59  
60      @Override
61      public String getReference() {
62          return reference;
63      }
64  
65      @Override
66      public void setReference(String reference) {
67          String oldValue = getReference();
68          this.reference = reference;
69          firePropertyChange(PROPERTY_REFERENCE, oldValue, reference);
70      }
71  
72      @Override
73      public String getNumber() {
74          return number;
75      }
76  
77      @Override
78      public void setNumber(String number) {
79          String oldValue = getNumber();
80          this.number = number;
81          firePropertyChange(PROPERTY_NUMBER, oldValue, number);
82      }
83  
84      @Override
85      public String getDescriptionPackaging() {
86          return descriptionPackaging;
87      }
88  
89      @Override
90      public void setDescriptionPackaging(String descriptionPackaging) {
91          String oldValue = getDescriptionPackaging();
92          this.descriptionPackaging = descriptionPackaging;
93          firePropertyChange(PROPERTY_DESCRIPTION_PACKAGING, oldValue, descriptionPackaging);
94      }
95  
96      @Override
97      public String getDescriptionPreparation() {
98          return descriptionPreparation;
99      }
100 
101     @Override
102     public void setDescriptionPreparation(String descriptionPreparation) {
103         String oldValue = getDescriptionPreparation();
104         this.descriptionPreparation = descriptionPreparation;
105         firePropertyChange(PROPERTY_DESCRIPTION_PREPARATION, oldValue, descriptionPreparation);
106     }
107 
108     @Override
109     public String getDescriptionPreservation() {
110         return descriptionPreservation;
111     }
112 
113     @Override
114     public void setDescriptionPreservation(String descriptionPreservation) {
115         String oldValue = getDescriptionPreservation();
116         this.descriptionPreservation = descriptionPreservation;
117         firePropertyChange(PROPERTY_DESCRIPTION_PRESERVATION, oldValue, descriptionPreservation);
118     }
119 
120     @Override
121     public String getComment() {
122         return comment;
123     }
124 
125     @Override
126     public void setComment(String comment) {
127         String oldValue = getComment();
128         this.comment = comment;
129         firePropertyChange(PROPERTY_COMMENT, oldValue, comment);
130     }
131 
132 } //AbstractMethodDTOBean