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.TuttiEntity;
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 interface SpeciesProtocol1 extends TuttiEntity {
34  
35      String PROPERTY_SPECIES_REFERENCE_TAXON_ID = "speciesReferenceTaxonId";
36  
37      String PROPERTY_SPECIES_SURVEY_CODE = "speciesSurveyCode";
38  
39      String PROPERTY_SIZE_ENABLED = "sizeEnabled";
40  
41      String PROPERTY_SEX_ENABLED = "sexEnabled";
42  
43      String PROPERTY_MATURITY_ENABLED = "maturityEnabled";
44  
45      String PROPERTY_AGE_ENABLED = "ageEnabled";
46  
47      String PROPERTY_LENGTH_STEP_PMFM_ID = "lengthStepPmfmId";
48  
49      String PROPERTY_WEIGHT_ENABLED = "weightEnabled";
50  
51      String PROPERTY_COUNT_IF_NO_FREQUENCY_ENABLED = "countIfNoFrequencyEnabled";
52  
53      String PROPERTY_CALCIFY_SAMPLE_ENABLED = "calcifySampleEnabled";
54  
55      String PROPERTY_LENGTH_STEP = "lengthStep";
56  
57      String PROPERTY_MADE_FROM_AREFERENT_TAXON = "madeFromAReferentTaxon";
58  
59      Integer getSpeciesReferenceTaxonId();
60  
61      void setSpeciesReferenceTaxonId(Integer speciesReferenceTaxonId);
62  
63      String getSpeciesSurveyCode();
64  
65      void setSpeciesSurveyCode(String speciesSurveyCode);
66  
67      boolean isSizeEnabled();
68  
69      void setSizeEnabled(boolean sizeEnabled);
70  
71      boolean isSexEnabled();
72  
73      void setSexEnabled(boolean sexEnabled);
74  
75      boolean isMaturityEnabled();
76  
77      void setMaturityEnabled(boolean maturityEnabled);
78  
79      boolean isAgeEnabled();
80  
81      void setAgeEnabled(boolean ageEnabled);
82  
83      String getLengthStepPmfmId();
84  
85      void setLengthStepPmfmId(String lengthStepPmfmId);
86  
87      boolean isWeightEnabled();
88  
89      void setWeightEnabled(boolean weightEnabled);
90  
91      boolean isCountIfNoFrequencyEnabled();
92  
93      void setCountIfNoFrequencyEnabled(boolean countIfNoFrequencyEnabled);
94  
95      boolean isCalcifySampleEnabled();
96  
97      void setCalcifySampleEnabled(boolean calcifySampleEnabled);
98  
99      Float getLengthStep();
100 
101     void setLengthStep(Float lengthStep);
102 
103     boolean isMadeFromAReferentTaxon();
104 
105     void setMadeFromAReferentTaxon(boolean madeFromAReferentTaxon);
106 
107 }