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;
34 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) {
38 this.checksum = checksum;
39 this.creationDate = creationDate;
40 this.updateDate = updateDate;
42 this.deleted = deleted;
43 this.deletionDate = deletionDate;
44 this.attributeGroupId = attributeGroupId;
45 this.chunkCollection = chunkCollection;
52 public void setId(long id) {
56 public String getName() {
60 public void setName(String name) {
64 public long getLength() {
68 public void setLength(long length) {
72 public String getChecksum() {
76 public void setChecksum(String checksum) {
77 this.checksum = checksum;
80 public Date getCreationDate() {
84 public void setCreationDate(Date creationDate) {
85 this.creationDate = creationDate;
88 public Date getUpdateDate() {
92 public void setUpdateDate(Date updateDate) {
93 this.updateDate = updateDate;
96 public Boolean getValid() {
100 public void setValid(Boolean valid) {
104 public Boolean getDeleted() {
108 public void setDeleted(Boolean deleted) {
109 this.deleted = deleted;
112 public Date getDeletionDate() {
116 public void setDeletionDate(Date deletionDate) {
117 this.deletionDate = deletionDate;
120 public long getAttributeGroupId() {
121 return attributeGroupId;
124 public void setAttributeGroupId(long attributeGroupId) {
125 this.attributeGroupId = attributeGroupId;
128 public Collection<ChunkTO> getChunkCollection() {
129 return chunkCollection;
132 public void setChunkCollection(Collection<ChunkTO> chunkCollection) {
133 this.chunkCollection = chunkCollection;