View Javadoc
1   package fr.ifremer.tutti.persistence.entities.protocol.v1;
2   
3   /*
4    * #%L
5    * Tutti :: Persistence
6    * %%
7    * Copyright (C) 2012 - 2014 Ifremer
8    * %%
9    * This program is free software: you can redistribute it and/or modify
10   * it under the terms of the GNU General Public License as
11   * published by the Free Software Foundation, either version 3 of the 
12   * License, or (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 General Public 
20   * License along with this program.  If not, see
21   * <http://www.gnu.org/licenses/gpl-3.0.html>.
22   * #L%
23   */
24  
25  import fr.ifremer.tutti.persistence.entities.TuttiEntityBean;
26  
27  /**
28   * To migrate old species protocol to last version.
29   *
30   * @author Tony Chemit - chemit@codelutin.com
31   * @since 2.4
32   */
33  public class SpeciesProtocolBean1 extends TuttiEntityBean implements SpeciesProtocol1 {
34  
35      private static final long serialVersionUID = 3486411950096802662L;
36  
37      protected Integer speciesReferenceTaxonId;
38  
39      protected String speciesSurveyCode;
40  
41      protected boolean sizeEnabled;
42  
43      protected boolean sexEnabled;
44  
45      protected boolean maturityEnabled;
46  
47      protected boolean ageEnabled;
48  
49      protected String lengthStepPmfmId;
50  
51      protected boolean weightEnabled;
52  
53      protected boolean countIfNoFrequencyEnabled;
54  
55      protected boolean calcifySampleEnabled;
56  
57      protected Float lengthStep;
58  
59      protected boolean madeFromAReferentTaxon;
60  
61      @Override
62      public Integer getSpeciesReferenceTaxonId() {
63          return speciesReferenceTaxonId;
64      }
65  
66      @Override
67      public void setSpeciesReferenceTaxonId(Integer speciesReferenceTaxonId) {
68          this.speciesReferenceTaxonId = speciesReferenceTaxonId;
69      }
70  
71      @Override
72      public String getSpeciesSurveyCode() {
73          return speciesSurveyCode;
74      }
75  
76      @Override
77      public void setSpeciesSurveyCode(String speciesSurveyCode) {
78          this.speciesSurveyCode = speciesSurveyCode;
79      }
80  
81      @Override
82      public boolean isSizeEnabled() {
83          return sizeEnabled;
84      }
85  
86      @Override
87      public void setSizeEnabled(boolean sizeEnabled) {
88          this.sizeEnabled = sizeEnabled;
89      }
90  
91      @Override
92      public boolean isSexEnabled() {
93          return sexEnabled;
94      }
95  
96      @Override
97      public void setSexEnabled(boolean sexEnabled) {
98          this.sexEnabled = sexEnabled;
99      }
100 
101     @Override
102     public boolean isMaturityEnabled() {
103         return maturityEnabled;
104     }
105 
106     @Override
107     public void setMaturityEnabled(boolean maturityEnabled) {
108         this.maturityEnabled = maturityEnabled;
109     }
110 
111     @Override
112     public boolean isAgeEnabled() {
113         return ageEnabled;
114     }
115 
116     @Override
117     public void setAgeEnabled(boolean ageEnabled) {
118         this.ageEnabled = ageEnabled;
119     }
120 
121     @Override
122     public String getLengthStepPmfmId() {
123         return lengthStepPmfmId;
124     }
125 
126     @Override
127     public void setLengthStepPmfmId(String lengthStepPmfmId) {
128         this.lengthStepPmfmId = lengthStepPmfmId;
129     }
130 
131     @Override
132     public boolean isWeightEnabled() {
133         return weightEnabled;
134     }
135 
136     @Override
137     public void setWeightEnabled(boolean weightEnabled) {
138         this.weightEnabled = weightEnabled;
139     }
140 
141     @Override
142     public boolean isCountIfNoFrequencyEnabled() {
143         return countIfNoFrequencyEnabled;
144     }
145 
146     @Override
147     public void setCountIfNoFrequencyEnabled(boolean countIfNoFrequencyEnabled) {
148         this.countIfNoFrequencyEnabled = countIfNoFrequencyEnabled;
149     }
150 
151     @Override
152     public boolean isCalcifySampleEnabled() {
153         return calcifySampleEnabled;
154     }
155 
156     @Override
157     public void setCalcifySampleEnabled(boolean calcifySampleEnabled) {
158         this.calcifySampleEnabled = calcifySampleEnabled;
159     }
160 
161     @Override
162     public Float getLengthStep() {
163         return lengthStep;
164     }
165 
166     @Override
167     public void setLengthStep(Float lengthStep) {
168         this.lengthStep = lengthStep;
169     }
170 
171     @Override
172     public boolean isMadeFromAReferentTaxon() {
173         return madeFromAReferentTaxon;
174     }
175 
176     @Override
177     public void setMadeFromAReferentTaxon(boolean madeFromAReferentTaxon) {
178         this.madeFromAReferentTaxon = madeFromAReferentTaxon;
179     }
180 
181 }