该用户从未签到
|
板凳
发表于 2014-04-07 17:42:33
|只看该作者
- package s2.jsp.zhangxiao.entity;7 w5 |' Z8 a" A# v2 d7 H
- /**
5 v; ^5 O9 F8 l" d8 C2 P - * 照片信息的实体类' {, y( a5 x3 B5 n! @9 j
- * @author Administrator
1 ^! Y8 R; o5 e+ _# q - *
2 j: I; q- m2 X, B! q- | - */
4 g# u5 T0 P" y7 b( t. \# v+ j - public class Photo {
r' E8 q. G' E5 J - // id, name, count, type, email, tel- {' S* i8 t% |9 P: Z0 U
- private int id;) K' A3 w* o0 ~5 E
- private String name;# j* {+ N9 ]7 R& M" W- F
- private int count;" L1 |. @7 m( `+ G, x" j& W$ O
- private String type;" q, a5 P% z' i$ g w
- private String email;, ]( G! q2 P: J. a$ s6 s
- private String tel;) O; {# L! x8 k9 J9 q) f
- /**, i# k9 a8 n5 @" G- e6 I7 I
- * 有参构造函数
/ P# n/ J* Z9 W6 O - * @param count# E3 X2 z6 }8 o" R8 j& O2 u. G6 _, l
- * @param email! b" `7 o$ ~1 e! j" H0 B
- * @param id
. Z0 O0 o* `1 b. S7 G. p - * @param name6 k. z8 D8 ^" I' N1 `5 j' {
- * @param tel
: K5 G9 x- n4 C, K% @3 ]7 w: M - * @param type3 y6 N. N' g3 r2 B" n" I" D
- */
1 B) Q, Y/ O0 O. r7 a - public Photo(int id, String name,int count,String type, String email, String tel0 d5 O& K: F8 }" M/ w( \9 E; W
- ) {! d$ ^9 H) W* \: h1 t6 E( a
- super();
. X8 G7 }0 U/ w/ b- V - this.count = count;
5 E0 a# S* U7 E: L4 I% J - this.email = email;2 P- g' s7 s1 z# ?' G: P6 o. |
- this.id = id;
: u$ ]8 v: R% R& g# W - this.name = name;5 @; Y7 V$ A4 n8 l8 F" y0 G8 L: H' x
- this.tel = tel;
9 ~5 t, m7 W6 J$ y - this.type = type;
( ?' s. D' Q; d }3 o! K - }" @1 L( T1 w |# @* f6 Y$ z8 M3 Y2 J
- /**
" D4 n* J/ i7 P# T! q - * 无参构造函数5 {1 p1 q& c( q i
- */
; _& y( b5 G; \* x% \$ ^ - public Photo() {
( [2 ~8 J+ Q8 R8 K7 _3 F% P3 q - super();" P3 I) D3 Z }$ s
- }* M% S, l- R5 J/ t8 E
- /**& S F$ T/ f" X0 R7 C
- *编号
7 { v: u* o5 p, Q, `. H& O - * @return; E6 i! j2 |8 L+ N& O5 Q3 `( B& o8 ?
- */$ D: @- Z* J* f! H! r
- public int getId() {
6 r/ I+ V: k3 F0 I- A% z6 } - return id;( v# v& d1 d$ t; q0 @! M$ R
- }1 Q5 M3 g6 A* D* ?$ T$ M2 {
- /**6 x" H4 i: K5 g3 Z& |9 m V
- *编号
8 G* H/ d9 C, i7 J) O - * @return g6 Q% w7 |1 B& Q& ~
- */, v9 T* w( ^) O3 X P
- public void setId(int id) {0 _! L5 a+ m3 a; `+ F; v$ o
- this.id = id;
, J0 n5 Q+ O r8 N9 z0 ~3 a- s6 C - }
* ~0 R! L7 t: h1 A2 t - /**
- O$ V& G# [" y* d: t - * 用户名称/ c3 `/ h2 r B) \3 S/ z
- * @return
; N% K P9 P9 S# z/ S$ H - */) @/ u% C6 S/ l7 O6 u
- public String getName() {
6 u5 s& A/ Y0 I9 r( L% M - return name;( _; o9 @8 j9 z t" p" T5 L" M3 d* D
- }2 i1 Z- @* P C! p9 j
- /**
$ b n& g& x: h; a - *用户名称
, ? X- D2 W1 ]1 R; y: j - * @return
' x3 ?* |0 X1 b& Y* o8 H! L2 D& Y/ ] - */
) A+ l k7 Z1 O6 D - public void setName(String name) {4 P, \, R5 V% Z, I3 ]9 f* b
- this.name = name;' [9 Y" l1 i6 A6 E b" f
- }
0 G2 `3 ?9 d4 o. m9 \' e" V - /**; Q7 n* U' {! X& ]
- * 照片数量- W5 Z1 ~- |3 J0 U; m4 L7 l: }
- * @return, z7 k2 [' Z+ j3 T* o: W2 W- V
- */2 E* i' |2 O, y# y2 R7 Q
- public int getCount() {$ ?( E$ z1 S$ E+ H4 U' L
- return count;
3 F' \& _1 G7 R( }& A - }
! [. ^* A, S u8 t! S - /**/ I' r2 l% s- X$ d/ T
- * 照片数量; Z. I% W( @0 T( X% B: _2 b
- * @return
$ M9 x* N m6 y; d) u5 Z& @$ | - */
! W/ O {: c1 [# u - public void setCount(int count) {
8 s; n. s1 S& X2 e - this.count = count;
& M3 H& Z# @, u! W! i6 w - }
3 X, L5 U6 J; F9 }$ R( v - /**
$ k! G2 n8 j9 U7 o, F' Z - * 照片类型' Y/ D& g. y; t
- * @return
' A5 n- I8 _- a: b1 N - */' s% f! y3 P7 `* f/ j/ [7 @) |# _+ N
- public String getType() {
3 q( j! K b! K2 [ - return type;
* V; Y J. k# _3 {( d" O - }/ e! c0 I0 Y0 I9 m. c) M
- /**; h2 y- M2 w* B. {( Q' t* p- L, E
- * 照片类型
6 ~" R0 g) C) p5 K5 I+ N/ | - * @return! e! \6 V4 @4 t$ W' b
- */9 X# ~& b, w1 R8 V
- public void setType(String type) {
% H { i; y* S - this.type = type;
0 k& P- M- f a - }/ u% F3 v( ?3 \, ~* { {
- /**
" f& k6 |1 F# g, r3 g, Q3 X" i - * Email 地址
$ M8 R% A; m2 L% s7 \2 F - * @return& @& c) ^, Y! J
- */+ A' r A5 A3 X* U
- public String getEmail() {
) o: T U6 f$ {& @: k6 c - return email;. h& ]" `/ u" m# S5 |2 h' s
- }: Q2 h: \3 m* t3 U" _2 W, T
- /**
( o3 I) F' A% h: j/ |3 R4 q/ F2 T - * Email 地址# A. y1 |6 t, ^# V' P( ?
- * @return
: t- Y0 y. D0 _, _) T6 _ - */# j$ x/ |( d! d# o- t: `; F
- public void setEmail(String email) {
, f, h0 l- t+ d) F: M8 [ - this.email = email;
* Y: C) v% f, e7 ~6 A& C6 ` - }. E! A( Y$ m1 i1 s. Z: w6 M
- /**+ g' q" O. b4 V, E" E( p) r$ [2 r
- * 联系电话( f) j8 K2 [. E
- * @return
- H& ~) t7 Q3 _' [$ R$ I0 o# N& r% O - */
3 B$ h* \ g5 W1 _ - public String getTel() {: U( [6 n& V- \+ o A
- return tel;8 P$ h! U- ?0 G2 v' C9 ~, E
- }0 a) ^+ ^8 e8 ?# _& B- y' t
- /**
0 n) q3 x8 ~5 ]# J; o- |8 r" y' ~ - * 联系电话1 r9 |" D( n. X# ?) W+ U
- * @return
7 p" ] F2 m5 T$ G6 T - */' u2 l( {) R* Q/ R, s
- public void setTel(String tel) {8 p- ^- f7 a0 D9 I2 X% c" k+ j; ]
- this.tel = tel;' b& _: h3 G( w. _# W
- }7 I# L" n4 J5 V7 ?! S" v" B) b
- 0 Z9 y2 U+ p2 d: J1 G
- * O9 Q; N" I* H1 Z- u2 K4 z
- }
- U4 b3 @, J: q: x/ l. c( ^& L
复制代码 " [$ F3 W2 B% q: U! A
0 j6 P" J2 c; N3 l, C; y# u3 K |
|