01: package com.technoetic.xplanner.file;
02:
03: import java.sql.Blob;
04:
05: import com.technoetic.xplanner.domain.Identifiable;
06:
07: public class File implements Identifiable {
08: private int id;
09: private String name;
10: private String contentType;
11: private Blob data;
12: private long fileSize;
13: private Directory directory;
14:
15: public String getContentType() {
16: return contentType;
17: }
18:
19: public void setContentType(String contentType) {
20: this .contentType = contentType;
21: }
22:
23: public Blob getData() {
24: return data;
25: }
26:
27: public void setData(Blob data) {
28: this .data = data;
29: }
30:
31: public long getFileSize() {
32: return fileSize;
33: }
34:
35: public void setFileSize(long fileSize) {
36: this .fileSize = fileSize;
37: }
38:
39: public int getId() {
40: return id;
41: }
42:
43: public void setId(int id) {
44: this .id = id;
45: }
46:
47: public String getName() {
48: return name;
49: }
50:
51: public void setName(String name) {
52: this .name = name;
53: }
54:
55: public Directory getDirectory() {
56: return directory;
57: }
58:
59: protected void setDirectory(Directory directory) {
60: this .directory = directory;
61: }
62:
63: public String toString() {
64: return "File{" + "id=" + id + ", name='" + name + '\''
65: + ", directory=" + directory + ", contentType='"
66: + contentType + '\'' + ", fileSize=" + fileSize + '}';
67: }
68: }
|