PageRenderTime 40ms CodeModel.GetById 18ms app.highlight 18ms RepoModel.GetById 1ms app.codeStats 0ms

/layers-store/src/main/java/org/ala/layers/dto/Field.java

http://alageospatialportal.googlecode.com/
Java | 219 lines | 160 code | 39 blank | 20 comment | 0 complexity | 29a756bc039509a1d84105990af8e9fd MD5 | raw file
  1/**************************************************************************
  2 *  Copyright (C) 2010 Atlas of Living Australia
  3 *  All Rights Reserved.
  4 *
  5 *  The contents of this file are subject to the Mozilla Public
  6 *  License Version 1.1 (the "License"); you may not use this file
  7 *  except in compliance with the License. You may obtain a copy of
  8 *  the License at http://www.mozilla.org/MPL/
  9 *
 10 *  Software distributed under the License is distributed on an "AS
 11 *  IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 12 *  implied. See the License for the specific language governing
 13 *  rights and limitations under the License.
 14 ***************************************************************************/
 15package org.ala.layers.dto;
 16
 17import java.util.Date;
 18import java.util.List;
 19import javax.persistence.Column;
 20import javax.persistence.Entity;
 21import javax.persistence.Id;
 22import javax.persistence.Table;
 23import javax.persistence.Temporal;
 24import javax.persistence.TemporalType;
 25import org.codehaus.jackson.map.annotate.JsonSerialize;
 26
 27/**
 28 * This class serves as a model object for the "fields" table
 29 *
 30 * @author ajay
 31 */
 32@Entity
 33@Table(name = "fields")
 34//@XStreamAlias("field")
 35@JsonSerialize(include = JsonSerialize.Inclusion.NON_DEFAULT)
 36public class Field {
 37
 38    @Id
 39    @Column(name = "id", insertable = false, updatable = false)
 40    private String id;
 41    @Column(name = "name")
 42    private String name;
 43    @Column(name = "desc")
 44    private String desc;
 45    @Column(name = "type")
 46    private String type;
 47    @Column(name = "spid")
 48    private String spid;
 49    @Column(name = "sid")
 50    private String sid;
 51    @Column(name = "sname")
 52    private String sname;
 53    @Column(name = "sdesc")
 54    private String sdesc;
 55    @Column(name = "indb")
 56    private Boolean indb;
 57    @Column(name = "enabled")
 58    private Boolean enabled;
 59    @Temporal(TemporalType.TIMESTAMP)
 60    @Column(name = "last_update")
 61    private Date lastUpdated;
 62    @Column(name = "namesearch")
 63    private Boolean namesearch;
 64    @Column(name = "defaultlayer")
 65    private Boolean defaultlayer;
 66    @Column(name = "intersect")
 67    private Boolean intersect;
 68    @Column(name = "layerbranch")
 69    private Boolean layerbranch;
 70    @Column(name = "analysis")
 71    private Boolean analysis;
 72    @Column(name = "addtomap")
 73    private Boolean addtomap;
 74    private List<Objects> objects;
 75
 76    public List<Objects> getObjects() {
 77        return objects;
 78    }
 79
 80    public void setObjects(List<Objects> objects) {
 81        this.objects = objects;
 82    }
 83
 84    public String getId() {
 85        return id;
 86    }
 87
 88    public void setId(String id) {
 89        this.id = id;
 90    }
 91
 92    public Boolean isDefaultlayer() {
 93        return defaultlayer;
 94    }
 95
 96    public void setDefaultlayer(Boolean defaultLayer) {
 97        this.defaultlayer = defaultLayer;
 98    }
 99
100    public String getDesc() {
101        return desc;
102    }
103
104    public void setDesc(String desc) {
105        this.desc = desc;
106    }
107
108    public Boolean isEnabled() {
109        return enabled;
110    }
111
112    public void setEnabled(Boolean enabled) {
113        this.enabled = enabled;
114    }
115
116    public Boolean isIndb() {
117        return indb;
118    }
119
120    public void setIndb(Boolean indb) {
121        this.indb = indb;
122    }
123
124    public Date getLastUpdated() {
125        return lastUpdated;
126    }
127
128    public void setLastUpdated(Date lastUpdated) {
129        this.lastUpdated = lastUpdated;
130    }
131
132    public String getName() {
133        return name;
134    }
135
136    public void setName(String name) {
137        this.name = name;
138    }
139
140    public Boolean isNamesearch() {
141        return namesearch;
142    }
143
144    public void setNamesearch(Boolean nameSearch) {
145        this.namesearch = nameSearch;
146    }
147
148    public String getSdesc() {
149        return sdesc;
150    }
151
152    public void setSdesc(String sdesc) {
153        this.sdesc = sdesc;
154    }
155
156    public String getSid() {
157        return sid;
158    }
159
160    public void setSid(String sid) {
161        this.sid = sid;
162    }
163
164    public String getSname() {
165        return sname;
166    }
167
168    public void setSname(String sourceName) {
169        this.sname = sourceName;
170    }
171
172    public String getSpid() {
173        return spid;
174    }
175
176    public void setSpid(String spid) {
177        this.spid = spid;
178    }
179
180    public String getType() {
181        return type;
182    }
183
184    public void setType(String type) {
185        this.type = type;
186    }
187
188    public Boolean isIntersect() {
189        return intersect;
190    }
191
192    public void setIntersect(Boolean intersect) {
193        this.intersect = intersect;
194    }
195
196    public Boolean isLayerbranch() {
197        return layerbranch;
198    }
199
200    public void setLayerbranch(Boolean layerbranch) {
201        this.layerbranch = layerbranch;
202    }
203
204    public Boolean isAnalysis() {
205        return analysis;
206    }
207
208    public void setAnalysis(Boolean analysis) {
209        this.analysis = analysis;
210    }
211
212    public Boolean isAddtomap() {
213        return addtomap;
214    }
215
216    public void setAddtomap(Boolean addtomap) {
217        this.addtomap = addtomap;
218    }
219}