1
2
3
4
5
6
7
8 package com.buckosoft.PicMan.domain;
9
10 import java.util.Date;
11
12
13
14
15
16 public class Pic {
17 private int pid = -1;
18 private String name;
19 private int width;
20 private int height;
21 private int rid = -1;
22 private String location;
23 private Date date = new Date(0);
24 private boolean importPic = false;
25 private int cacheDir;
26 private long md5;
27
28
29 public Pic() {}
30
31
32
33
34
35 public Pic(boolean importPic, String name){
36 this.importPic = importPic;
37 this.name = name;
38 }
39
40
41
42
43 public void setPid(int pid) { this.pid = pid; }
44 public int getPid() { return(pid); }
45
46 public void setName(String name) { this.name = name; }
47 public String getName() { return(name); }
48 public void setWidth(int width) { this.width = width; }
49 public int getWidth() { return(width); }
50 public void setHeight(int height) { this.height = height; }
51 public int getHeight() { return(height); }
52
53
54
55
56 public void setLocation(String location) {
57 this.location = location;
58 }
59
60
61
62
63 public String getLocation() {
64 return(location);
65 }
66
67 public Date getDate() { return(date); }
68
69
70
71
72
73 public int getRid() {
74 return rid;
75 }
76
77
78
79 public void setRid(int rid) {
80 this.rid = rid;
81 }
82
83
84
85 public boolean isImportPic() {
86 return importPic;
87 }
88
89
90
91 public void setImportPic(boolean importPic) {
92 this.importPic = importPic;
93 }
94
95
96
97 public int getCacheDir() {
98 return cacheDir;
99 }
100
101
102
103 public void setCacheDir(int cacheDir) {
104 this.cacheDir = cacheDir;
105 }
106
107
108
109 public long getMd5() {
110 return md5;
111 }
112
113
114
115 public void setMd5(long md5) {
116 this.md5 = md5;
117 }
118
119 }