forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPhoto.java
More file actions
111 lines (90 loc) · 2.94 KB
/
Photo.java
File metadata and controls
111 lines (90 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
package com.wy.form;
public class Photo {
private Integer id = -1; // 设置数据库自动编号的对象
private String photoName = ""; // 设置相片名称的对象
private String photoSize = ""; // 设置相片大小的对象
private String photoTime = ""; // 设置相片上传时间的对象
private String photoAddress = ""; // 设置相片保存在服务器端地址的对象
private String username = ""; // 设置相片上传用户的对象
private String photoType = ""; // 设置相片所在相册名称的对象
private String printAddress="";
private String smallPhoto="";
private Integer number=null;
public Integer getNumber() {
return number;
}
public void setNumber(Integer number) {
this.number = number;
}
public String getPrintAddress() {
return printAddress;
}
public void setPrintAddress(String printAddress) {
this.printAddress = printAddress;
}
//设置相册信息的构造方法
public Photo() {
}
/******************设置相片所在相册名称对象的getXXX()和setXXX()方法*************/
public String getPhotoType() {
return photoType;
}
public void setPhotoType(String photoType) {
this.photoType = photoType;
}
/***************************************************/
/******************设置数据库自动编号对象的getXXX()和setXXX()方法*************/
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
/***************************************************/
/******************设置相片存放服务器端地址对象的getXXX()和setXXX()方法*************/
public String getPhotoAddress() {
return photoAddress;
}
public void setPhotoAddress(String photoAddress) {
this.photoAddress = photoAddress;
}
/***************************************************/
/******************设置相片名称对象的getXXX()和setXXX()方法*************/
public String getPhotoName() {
return photoName;
}
public void setPhotoName(String photoName) {
this.photoName = photoName;
}
/***************************************************/
/******************设置相片大小对象的getXXX()和setXXX()方法*************/
public String getPhotoSize() {
return photoSize;
}
public void setPhotoSize(String photoSize) {
this.photoSize = photoSize;
}
/***************************************************/
/******************设置相片上传时间对象的getXXX()和setXXX()方法*************/
public String getPhotoTime() {
return photoTime;
}
public void setPhotoTime(String photoTime) {
this.photoTime = photoTime;
}
/***************************************************/
/******************设置相片上传用户名对象的getXXX()和setXXX()方法*************/
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
/***************************************************/
public String getSmallPhoto() {
return smallPhoto;
}
public void setSmallPhoto(String smallPhoto) {
this.smallPhoto = smallPhoto;
}
}