1 package fr.ifremer.tutti.persistence.entities.data;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 }