1 package org.sourceforge.vlibrary.user.valuebeans;
2 import java.sql.Timestamp;
3
4
5
6
7
8
9 public class LibraryTransaction {
10
11 private long reader = 0;
12
13
14 private long book = 0;
15
16
17 private long action = 0;
18
19
20 private long id = 0;
21
22
23 private Timestamp transTime;
24
25
26 private String readerName;
27
28
29 private String bookTitle;
30
31
32 private String actionString;
33
34
35 private String readerPhone;
36
37
38 private String timeString;
39
40
41 private long location;
42
43
44 private String locationDescription;
45
46 public LibraryTransaction() {
47 }
48
49 @Override
50 public String toString() {
51 return "<Transaction " +
52 "id=\"" + id +
53 "\" reader=\"" + reader +
54 "\" book=\"" + book +
55 "\" action=\"" + action +
56 "\" transTime=\"" + transTime +
57 "\" readerName=\"" + readerName +
58 "\" actionString=\"" + actionString +
59 "\" readerPhone=\"" + readerPhone +
60 "\" timeString=\"" + timeString +
61 "\" bookTitle=\"" + bookTitle +
62 "\" location=\"" + location +
63 "\" locationDescription=\"" + locationDescription +
64 "\" />";
65 }
66
67
68
69
70 public long getAction() {
71 return action;
72 }
73
74
75
76
77 public void setAction(long action) {
78 this.action = action;
79 }
80
81
82
83
84 public long getBook() {
85 return book;
86 }
87
88
89
90
91 public void setBook(long book) {
92 this.book = book;
93 }
94
95
96
97
98 public long getId() {
99 return id;
100 }
101
102
103
104
105 public void setId(long id) {
106 this.id = id;
107 }
108
109
110
111
112 public long getReader() {
113 return reader;
114 }
115
116
117
118
119 public void setReader(long reader) {
120 this.reader = reader;
121 }
122
123
124
125
126 public Timestamp getTransTime() {
127 return transTime;
128 }
129
130
131
132
133 public void setTransTime(Timestamp transTime) {
134 this.transTime = transTime;
135 }
136
137
138
139
140 public String getReaderName() {
141 return readerName;
142 }
143
144
145
146
147 public void setReaderName(String readerName) {
148 this.readerName = readerName;
149 }
150
151
152
153
154 public String getBookTitle() {
155 return bookTitle;
156 }
157
158
159
160
161 public void setBookTitle(java.lang.String bookTitle) {
162 this.bookTitle = bookTitle;
163 }
164
165
166
167
168 public String getReaderPhone() {
169 return readerPhone;
170 }
171
172
173
174
175 public void setReaderPhone(String readerPhone) {
176 this.readerPhone = readerPhone;
177 }
178
179
180
181
182 public String getActionString() {
183 return actionString;
184 }
185
186
187
188
189 public void setActionString(String actionString) {
190 this.actionString = actionString;
191 }
192
193
194
195
196 public String getTimeString() {
197 return timeString;
198 }
199
200
201
202
203 public void setTimeString(String timeString) {
204 this.timeString = timeString;
205 }
206
207
208
209
210 public long getLocation() {
211 return location;
212 }
213
214
215
216
217 public void setLocation(long location) {
218 this.location = location;
219 }
220
221
222
223
224 public String getLocationDescription() {
225 return locationDescription;
226 }
227
228
229
230
231 public void setLocationDescription(String locationDescription) {
232 this.locationDescription = locationDescription;
233 }
234
235 }