View Javadoc
1   package fr.ifremer.tutti.persistence.entities.data;
2   
3   /*
4    * #%L
5    * Tutti :: Persistence
6    * $Id:$
7    * $HeadURL:$
8    * %%
9    * Copyright (C) 2012 - 2017 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.referential.Species;
28  import java.io.Serializable;
29  import java.util.Collection;
30  import java.util.LinkedList;
31  import java.util.List;
32  import javax.annotation.Generated;
33  
34  @Generated(value = "org.nuiton.eugene.java.SimpleJavaBeanTransformer", date = "Fri Jan 06 18:31:47 CET 2017")
35  public abstract class AbstractSpeciesBatchBean extends TuttiBatchEntityBean implements SpeciesBatch {
36  
37      private static final long serialVersionUID = 4063146480090833508L;
38  
39      protected Integer sampleCategoryId;
40  
41      protected Serializable sampleCategoryValue;
42  
43      protected Float sampleCategoryWeight;
44  
45      protected Integer number;
46  
47      protected boolean speciesToConfirm;
48  
49      protected Float sampleCategoryComputedWeight;
50  
51      protected Integer computedNumber;
52  
53      protected Float computedWeight;
54  
55      protected boolean benthosBatch;
56  
57      protected List<SpeciesBatch> childBatchs;
58  
59      protected SpeciesBatch parentBatch;
60  
61      protected Species species;
62  
63      @Override
64      public Integer getSampleCategoryId() {
65          return sampleCategoryId;
66      }
67  
68      @Override
69      public void setSampleCategoryId(Integer sampleCategoryId) {
70          this.sampleCategoryId = sampleCategoryId;
71      }
72  
73      @Override
74      public Serializable getSampleCategoryValue() {
75          return sampleCategoryValue;
76      }
77  
78      @Override
79      public void setSampleCategoryValue(Serializable sampleCategoryValue) {
80          this.sampleCategoryValue = sampleCategoryValue;
81      }
82  
83      @Override
84      public Float getSampleCategoryWeight() {
85          return sampleCategoryWeight;
86      }
87  
88      @Override
89      public void setSampleCategoryWeight(Float sampleCategoryWeight) {
90          this.sampleCategoryWeight = sampleCategoryWeight;
91      }
92  
93      @Override
94      public Integer getNumber() {
95          return number;
96      }
97  
98      @Override
99      public void setNumber(Integer number) {
100         this.number = number;
101     }
102 
103     @Override
104     public boolean isSpeciesToConfirm() {
105         return speciesToConfirm;
106     }
107 
108     @Override
109     public void setSpeciesToConfirm(boolean speciesToConfirm) {
110         this.speciesToConfirm = speciesToConfirm;
111     }
112 
113     @Override
114     public Float getSampleCategoryComputedWeight() {
115         return sampleCategoryComputedWeight;
116     }
117 
118     @Override
119     public void setSampleCategoryComputedWeight(Float sampleCategoryComputedWeight) {
120         this.sampleCategoryComputedWeight = sampleCategoryComputedWeight;
121     }
122 
123     @Override
124     public Integer getComputedNumber() {
125         return computedNumber;
126     }
127 
128     @Override
129     public void setComputedNumber(Integer computedNumber) {
130         this.computedNumber = computedNumber;
131     }
132 
133     @Override
134     public Float getComputedWeight() {
135         return computedWeight;
136     }
137 
138     @Override
139     public void setComputedWeight(Float computedWeight) {
140         this.computedWeight = computedWeight;
141     }
142 
143     @Override
144     public boolean isBenthosBatch() {
145         return benthosBatch;
146     }
147 
148     @Override
149     public void setBenthosBatch(boolean benthosBatch) {
150         this.benthosBatch = benthosBatch;
151     }
152 
153     @Override
154     public SpeciesBatch getChildBatchs(int index) {
155         SpeciesBatch o = getChild(childBatchs, index);
156         return o;
157     }
158 
159     @Override
160     public boolean isChildBatchsEmpty() {
161         return childBatchs == null || childBatchs.isEmpty();
162     }
163 
164     @Override
165     public int sizeChildBatchs() {
166         return childBatchs == null ? 0 : childBatchs.size();
167     }
168 
169     @Override
170     public void addChildBatchs(SpeciesBatch childBatchs) {
171         getChildBatchs().add(childBatchs);
172     }
173 
174     @Override
175     public void addAllChildBatchs(Collection<SpeciesBatch> childBatchs) {
176         getChildBatchs().addAll(childBatchs);
177     }
178 
179     @Override
180     public boolean removeChildBatchs(SpeciesBatch childBatchs) {
181         boolean removed = getChildBatchs().remove(childBatchs);
182         return removed;
183     }
184 
185     @Override
186     public boolean removeAllChildBatchs(Collection<SpeciesBatch> childBatchs) {
187         boolean  removed = getChildBatchs().removeAll(childBatchs);
188         return removed;
189     }
190 
191     @Override
192     public boolean containsChildBatchs(SpeciesBatch childBatchs) {
193         boolean contains = getChildBatchs().contains(childBatchs);
194         return contains;
195     }
196 
197     @Override
198     public boolean containsAllChildBatchs(Collection<SpeciesBatch> childBatchs) {
199         boolean  contains = getChildBatchs().containsAll(childBatchs);
200         return contains;
201     }
202 
203     @Override
204     public List<SpeciesBatch> getChildBatchs() {
205     if (childBatchs == null) {
206         childBatchs = new LinkedList<SpeciesBatch>();
207     }
208     return childBatchs;
209 }
210 
211     @Override
212     public void setChildBatchs(List<SpeciesBatch> childBatchs) {
213         this.childBatchs = childBatchs;
214     }
215 
216     @Override
217     public SpeciesBatch getParentBatch() {
218         return parentBatch;
219     }
220 
221     @Override
222     public void setParentBatch(SpeciesBatch parentBatch) {
223         this.parentBatch = parentBatch;
224     }
225 
226     @Override
227     public Species getSpecies() {
228         return species;
229     }
230 
231     @Override
232     public void setSpecies(Species species) {
233         this.species = species;
234     }
235 
236 } //AbstractSpeciesBatchBean