View Javadoc
1   package fr.ifremer.tutti.service.genericformat.csv;
2   
3   /*
4    * #%L
5    * Tutti :: Service
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.referential.Caracteristic;
26  import fr.ifremer.tutti.persistence.entities.referential.Species;
27  
28  import java.io.Serializable;
29  
30  /**
31   * A row in a individual observation export.
32   *
33   * @author Tony Chemit - chemit@codelutin.com
34   * @since 2.0.1
35   */
36  public class IndividualObservationRow extends RowWithOperationContextSupport {
37  
38      private static final long serialVersionUID = 1L;
39  
40      public static final String PROPERTY_CARACTERISTIC = "caracteristic";
41  
42      public static final String PROPERTY_CARACTERISTIC_VALUE = "caracteristicValue";
43  
44      private Integer id;
45  
46      private Integer batchId;
47  
48      protected Species species;
49  
50      protected String comment;
51  
52      protected Caracteristic caracteristic;
53  
54      protected Serializable caracteristicValue;
55      private Integer rankOrder;
56  
57      public static IndividualObservationRow newEmptyInstance() {
58          IndividualObservationRow row = new IndividualObservationRow();
59          row.forImport();
60          return row;
61      }
62  
63      public void setId(Integer id) {
64          this.id = id;
65      }
66  
67      public void setBatchId(Integer batchId) {
68          this.batchId = batchId;
69      }
70  
71      public void setCaracteristic(Caracteristic caracteristic) {
72          this.caracteristic = caracteristic;
73      }
74  
75      public void setCaracteristicValue(Serializable caracteristicValue) {
76          this.caracteristicValue = caracteristicValue;
77      }
78  
79      public void setSpecies(Species species) {
80          this.species = species;
81      }
82  
83      public void setComment(String comment) {
84          this.comment = comment;
85      }
86  
87      public Integer getId() {
88          return id;
89      }
90  
91      public Integer getBatchId() {
92          return batchId;
93      }
94  
95      public Caracteristic getCaracteristic() {
96          return caracteristic;
97      }
98  
99      public Serializable getCaracteristicValue() {
100         return caracteristicValue;
101     }
102 
103     public String getComment() {
104         return comment;
105     }
106 
107     public Species getSpecies() {
108         return species;
109     }
110 
111     public void setRankOrder(Integer rankOrder) {
112         this.rankOrder = rankOrder;
113     }
114 
115     public Integer getRankOrder() {
116         return rankOrder;
117     }
118 }