2 * To change this license header, choose License Headers in Project Properties.
3 * To change this template file, choose Tools | Templates
4 * and open the template in the editor.
6 package com.edf.gde.transferables;
8 import java.io.Serializable;
9 import java.util.Collection;
10 import java.util.Date;
16 public class FileTO implements Serializable {
18 private static final long serialVersionUID = 1L;
22 private String checksum;
23 private Date creationDate;
24 private Date updateDate;
25 private Boolean valid;
26 private Boolean deleted;
27 private Date deletionDate;
28 private long attributeGroupId;
29 private Collection<ChunkTO> chunkCollection;
30 private long dataProfileId;
35 public FileTO(long id, String name, long length, String checksum, Date creationDate, Date updateDate, Boolean valid, Boolean deleted, Date deletionDate, long attributeGroupId, Collection<ChunkTO> chunkCollection, long dataProfileId) {
39 this.checksum = checksum;
40 this.creationDate = creationDate;
41 this.updateDate = updateDate;
43 this.deleted = deleted;
44 this.deletionDate = deletionDate;
45 this.attributeGroupId = attributeGroupId;
46 this.chunkCollection = chunkCollection;
47 this.dataProfileId = dataProfileId;
54 public void setId(long id) {
58 public String getName() {
62 public void setName(String name) {
66 public long getLength() {
70 public void setLength(long length) {
74 public String getChecksum() {
78 public void setChecksum(String checksum) {
79 this.checksum = checksum;
82 public Date getCreationDate() {
86 public void setCreationDate(Date creationDate) {
87 this.creationDate = creationDate;
90 public Date getUpdateDate() {
94 public void setUpdateDate(Date updateDate) {
95 this.updateDate = updateDate;
98 public Boolean getValid() {
102 public void setValid(Boolean valid) {
106 public Boolean getDeleted() {
110 public void setDeleted(Boolean deleted) {
111 this.deleted = deleted;
114 public Date getDeletionDate() {
118 public void setDeletionDate(Date deletionDate) {
119 this.deletionDate = deletionDate;
122 public long getAttributeGroupId() {
123 return attributeGroupId;
126 public void setAttributeGroupId(long attributeGroupId) {
127 this.attributeGroupId = attributeGroupId;
130 public Collection<ChunkTO> getChunkCollection() {
131 return chunkCollection;
134 public void setChunkCollection(Collection<ChunkTO> chunkCollection) {
135 this.chunkCollection = chunkCollection;
138 public long getDataProfileId() {
139 return dataProfileId;
142 public void setDataProfileId(long dataProfileId) {
143 this.dataProfileId = dataProfileId;