View Javadoc
1   package fr.ifremer.quadrige3.ui.core.dto.referential;
2   
3   /*-
4    * #%L
5    * Quadrige3 Core :: UI Core Common
6    * %%
7    * Copyright (C) 2017 - 2024 Ifremer
8    * %%
9    * This program is free software: you can redistribute it and/or modify
10   * it under the terms of the GNU Affero General Public License as published by
11   * the Free Software Foundation, either version 3 of the License, or
12   * (at your option) any later version.
13   * 
14   * This program is distributed in the hope that it will be useful,
15   * but WITHOUT ANY WARRANTY; without even the implied warranty of
16   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17   * GNU General Public License for more details.
18   * 
19   * You should have received a copy of the GNU Affero General Public License
20   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
21   * #L%
22   */
23  import fr.ifremer.quadrige3.ui.core.dto.QuadrigeAbstractBean;
24  import java.util.Date;
25  import javax.annotation.Generated;
26  
27  @Generated(value = "org.nuiton.eugene.java.SimpleJavaBeanTransformer", date = "Mon Jul 22 16:58:51 CEST 2024")
28  public abstract class AbstractBaseReferentialDTOBean extends QuadrigeAbstractBean implements BaseReferentialDTO {
29  
30      private static final long serialVersionUID = 3631644263444526134L;
31  
32      protected String name;
33  
34      protected boolean dirty;
35  
36      protected boolean readOnly;
37  
38      protected Date creationDate;
39  
40      protected Date updateDate;
41  
42      protected StatusDTO status;
43  
44      @Override
45      public String getName() {
46          return name;
47      }
48  
49      @Override
50      public void setName(String name) {
51          String oldValue = getName();
52          this.name = name;
53          firePropertyChange(PROPERTY_NAME, oldValue, name);
54      }
55  
56      @Override
57      public boolean isDirty() {
58          return dirty;
59      }
60  
61      @Override
62      public void setDirty(boolean dirty) {
63          boolean oldValue = isDirty();
64          this.dirty = dirty;
65          firePropertyChange(PROPERTY_DIRTY, oldValue, dirty);
66      }
67  
68      @Override
69      public boolean isReadOnly() {
70          return readOnly;
71      }
72  
73      @Override
74      public void setReadOnly(boolean readOnly) {
75          boolean oldValue = isReadOnly();
76          this.readOnly = readOnly;
77          firePropertyChange(PROPERTY_READ_ONLY, oldValue, readOnly);
78      }
79  
80      @Override
81      public Date getCreationDate() {
82          return creationDate;
83      }
84  
85      @Override
86      public void setCreationDate(Date creationDate) {
87          Date oldValue = getCreationDate();
88          this.creationDate = creationDate;
89          firePropertyChange(PROPERTY_CREATION_DATE, oldValue, creationDate);
90      }
91  
92      @Override
93      public Date getUpdateDate() {
94          return updateDate;
95      }
96  
97      @Override
98      public void setUpdateDate(Date updateDate) {
99          Date oldValue = getUpdateDate();
100         this.updateDate = updateDate;
101         firePropertyChange(PROPERTY_UPDATE_DATE, oldValue, updateDate);
102     }
103 
104     @Override
105     public StatusDTO getStatus() {
106         return status;
107     }
108 
109     @Override
110     public void setStatus(StatusDTO status) {
111         StatusDTO oldValue = getStatus();
112         this.status = status;
113         firePropertyChange(PROPERTY_STATUS, oldValue, status);
114     }
115 
116 } //AbstractBaseReferentialDTOBean