]> SALOME platform Git repositories - modules/gde.git/blob - projects/GDE_App/GDE-ejb/src/java/com/edf/gde/transferables/ChunkTO.java
Salome HOME
Created "Group" entity and TO
[modules/gde.git] / projects / GDE_App / GDE-ejb / src / java / com / edf / gde / transferables / ChunkTO.java
1 /*
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.
5  */
6 package com.edf.gde.transferables;
7
8 import java.io.Serializable;
9
10 /**
11  *
12  * @author F62173
13  */
14 public class ChunkTO implements Serializable {
15     
16     private static final long serialVersionUID = 1L;
17     private long id;
18     private long fileId;
19     private long rank;
20     private String checksum;
21     private long size;
22     private byte data[];
23
24     public ChunkTO() {
25     }
26
27     public ChunkTO(long id, long fileId, long rank, String checksum, long size, byte[] data) {
28         this.id = id;
29         this.fileId = fileId;
30         this.rank = rank;
31         this.checksum = checksum;
32         this.size = size;
33         this.data = data;
34     }
35
36     public long getId() {
37         return id;
38     }
39
40     public void setId(long id) {
41         this.id = id;
42     }
43
44     public long getFileId() {
45         return fileId;
46     }
47
48     public void setFileId(long fileId) {
49         this.fileId = fileId;
50     }
51
52     public long getRank() {
53         return rank;
54     }
55
56     public void setRank(long rank) {
57         this.rank = rank;
58     }
59
60     public String getChecksum() {
61         return checksum;
62     }
63
64     public void setChecksum(String checksum) {
65         this.checksum = checksum;
66     }
67
68     public long getSize() {
69         return size;
70     }
71
72     public void setSize(long size) {
73         this.size = size;
74     }
75
76     public byte[] getData() {
77         return data;
78     }
79
80     public void setData(byte[] data) {
81         this.data = data;
82     }
83     
84 }