View Javadoc
1   package fr.ifremer.tutti.service.protocol;
2   
3   /*
4    * #%L
5    * Tutti :: Service
6    * $Id:$
7    * $HeadURL:$
8    * %%
9    * Copyright (C) 2012 - 2016 Ifremer
10   * %%
11   * This program is free software: you can redistribute it and/or modify
12   * it under the terms of the GNU General Public License as
13   * published by the Free Software Foundation, either version 3 of the
14   * License, or (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 General Public
22   * License along with this program.  If not, see
23   * <http://www.gnu.org/licenses/gpl-3.0.html>.
24   * #L%
25   */
26  
27  import fr.ifremer.tutti.persistence.entities.protocol.CalcifiedPiecesSamplingDefinition;
28  import fr.ifremer.tutti.persistence.entities.protocol.CalcifiedPiecesSamplingDefinitions;
29  import fr.ifremer.tutti.persistence.entities.referential.Species;
30  
31  import java.io.Serializable;
32  
33  /**
34   * @author Kevin Morin (Code Lutin)
35   * @since 4.5
36   */
37  public class CalcifiedPiecesSamplingRow implements Serializable {
38  
39      public static final String PROPERTY_SPECIES = "species";
40  
41      public static final String PROPERTY_REFTAX = "reftax";
42  
43      public static final String PROPERTY_SURVEY_CODE = "surveyCode";
44  
45      public static final String PROPERTY_SCIENTIFIC_NAME = "scientificName";
46  
47      public static final String PROPERTY_MIN_SIZE = "minSize";
48  
49      public static final String PROPERTY_MAX_SIZE = "maxSize";
50  
51      public static final String PROPERTY_MATURITY = "maturity";
52  
53      public static final String PROPERTY_SEX = "sex";
54  
55      public static final String PROPERTY_MAX_BY_LENGHT_STEP = "maxByLenghtStep";
56  
57      public static final String PROPERTY_SAMPLING_INTERVAL = "samplingInterval";
58  
59      public static final String PROPERTY_OPERATION_LIMITATION = "operationLimitation";
60  
61      public static final String PROPERTY_ZONE_LIMITATION = "zoneLimitation";
62  
63      protected Species species;
64  
65      protected CalcifiedPiecesSamplingDefinition delegate;
66  
67      public CalcifiedPiecesSamplingRow() {
68          delegate = CalcifiedPiecesSamplingDefinitions.newCalcifiedPiecesSamplingDefinition();
69      }
70  
71      public Species getSpecies() {
72          return species;
73      }
74  
75      public void setSpecies(Species species) {
76          this.species = species;
77      }
78  
79      public Boolean getMaturity() {
80          return delegate.getMaturity();
81      }
82  
83      public Integer getMaxByLenghtStep() {
84          return delegate.getMaxByLenghtStep();
85      }
86  
87      public Integer getMaxSize() {
88          return delegate.getMaxSize();
89      }
90  
91      public int getMinSize() {
92          return delegate.getMinSize();
93      }
94  
95      public int getSamplingInterval() {
96          return delegate.getSamplingInterval();
97      }
98  
99      public Integer getOperationLimitation() {
100         return delegate.getOperationLimitation();
101     }
102 
103     public Integer getZoneLimitation() {
104         return delegate.getZoneLimitation();
105     }
106 
107     public boolean isSex() {
108         return delegate.isSex();
109     }
110 
111     public void setMaturity(Boolean maturity) {
112         delegate.setMaturity(maturity);
113     }
114 
115     public void setMaxByLenghtStep(Integer maxByLenghtStep) {
116         delegate.setMaxByLenghtStep(maxByLenghtStep);
117     }
118 
119     public void setMaxSize(Integer maxSize) {
120         delegate.setMaxSize(maxSize);
121     }
122 
123     public void setMinSize(int minSize) {
124         delegate.setMinSize(minSize);
125     }
126 
127     public void setOperationLimitation(Integer operationLimitation) {
128         delegate.setOperationLimitation(operationLimitation);
129     }
130 
131     public void setSamplingInterval(int samplingInterval) {
132         delegate.setSamplingInterval(samplingInterval);
133     }
134 
135     public void setSex(boolean sex) {
136         delegate.setSex(sex);
137     }
138 
139     public void setZoneLimitation(Integer zoneLimitation) {
140         delegate.setZoneLimitation(zoneLimitation);
141     }
142 }