1 | |
|
2 | |
|
3 | |
package org.paneris.bibliomania.generated; |
4 | |
|
5 | |
|
6 | |
import java.sql.Timestamp; |
7 | |
import org.melati.poem.AccessPoemException; |
8 | |
import org.melati.poem.BooleanPoemType; |
9 | |
import org.melati.poem.Column; |
10 | |
import org.melati.poem.Database; |
11 | |
import org.melati.poem.DefinitionSource; |
12 | |
import org.melati.poem.DisplayLevel; |
13 | |
import org.melati.poem.Field; |
14 | |
import org.melati.poem.IntegerPoemType; |
15 | |
import org.melati.poem.JdbcPersistent; |
16 | |
import org.melati.poem.Persistent; |
17 | |
import org.melati.poem.PoemException; |
18 | |
import org.melati.poem.ReferencePoemType; |
19 | |
import org.melati.poem.StringPoemType; |
20 | |
import org.melati.poem.TimestampPoemType; |
21 | |
import org.melati.poem.ValidationPoemException; |
22 | |
import org.paneris.bibliomania.BibliomaniaDatabaseTables; |
23 | |
import org.paneris.bibliomania.Country; |
24 | |
import org.paneris.bibliomania.Currency; |
25 | |
import org.paneris.bibliomania.Sex; |
26 | |
|
27 | |
import org.paneris.bibliomania.User; |
28 | |
|
29 | |
import org.paneris.melati.boards.model.UserTable; |
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
public class UserTableBase<T extends User> extends UserTable<T> { |
39 | |
|
40 | 2 | private Column<Integer> col_age = null; |
41 | 2 | private Column<Integer> col_sex = null; |
42 | 2 | private Column<Integer> col_country = null; |
43 | 2 | private Column<String> col_region = null; |
44 | 2 | private Column<Boolean> col_fulltimeeducation = null; |
45 | 2 | private Column<Boolean> col_wantemailalerts = null; |
46 | 2 | private Column<Boolean> col_wantspam = null; |
47 | 2 | private Column<Boolean> col_dodgeyemail = null; |
48 | 2 | private Column<String> col_address = null; |
49 | 2 | private Column<String> col_town = null; |
50 | 2 | private Column<String> col_county = null; |
51 | 2 | private Column<String> col_tel = null; |
52 | 2 | private Column<Integer> col_currency = null; |
53 | 2 | private Column<String> col_bookmark = null; |
54 | 2 | private Column<Timestamp> col_lastemailed = null; |
55 | |
|
56 | |
|
57 | |
|
58 | |
|
59 | |
|
60 | |
|
61 | |
|
62 | |
|
63 | |
|
64 | |
|
65 | |
|
66 | |
public UserTableBase( |
67 | |
Database database, String name, |
68 | |
DefinitionSource definitionSource) throws PoemException { |
69 | 2 | super(database, name, definitionSource); |
70 | 2 | } |
71 | |
|
72 | |
|
73 | |
|
74 | |
|
75 | |
|
76 | |
|
77 | |
|
78 | |
|
79 | |
public BibliomaniaDatabaseTables getBibliomaniaDatabaseTables() { |
80 | 6 | return (BibliomaniaDatabaseTables)getDatabase(); |
81 | |
} |
82 | |
|
83 | |
|
84 | |
|
85 | |
|
86 | |
|
87 | |
|
88 | |
|
89 | |
public void init() throws PoemException { |
90 | 2 | super.init(); |
91 | 2 | defineColumn(col_age = |
92 | |
new Column<Integer>(this, "age", |
93 | |
new IntegerPoemType(true), |
94 | 2 | DefinitionSource.dsd) { |
95 | |
public Object getCooked(Persistent g) |
96 | |
throws AccessPoemException, PoemException { |
97 | 0 | return ((org.paneris.bibliomania.User)g).getAge(); |
98 | |
} |
99 | |
|
100 | |
public void setCooked(Persistent g, Object cooked) |
101 | |
throws AccessPoemException, ValidationPoemException { |
102 | 0 | ((org.paneris.bibliomania.User)g).setAge((Integer)cooked); |
103 | 0 | } |
104 | |
|
105 | |
public Field<Integer> asField(Persistent g) { |
106 | 0 | return ((org.paneris.bibliomania.User)g).getAgeField(); |
107 | |
} |
108 | |
|
109 | |
public DisplayLevel defaultDisplayLevel() { |
110 | 0 | return DisplayLevel.record; |
111 | |
} |
112 | |
|
113 | |
public int defaultDisplayOrder() { |
114 | 0 | return 0; |
115 | |
} |
116 | |
|
117 | |
public String defaultDescription() { |
118 | 0 | return "Your age"; |
119 | |
} |
120 | |
|
121 | |
public Object getRaw_unsafe(Persistent g) |
122 | |
throws AccessPoemException { |
123 | 0 | return ((org.paneris.bibliomania.User)g).getAge_unsafe(); |
124 | |
} |
125 | |
|
126 | |
public void setRaw_unsafe(Persistent g, Object raw) |
127 | |
throws AccessPoemException { |
128 | 8 | ((org.paneris.bibliomania.User)g).setAge_unsafe((Integer)raw); |
129 | 8 | } |
130 | |
|
131 | |
public Object getRaw(Persistent g) |
132 | |
throws AccessPoemException { |
133 | 0 | return ((org.paneris.bibliomania.User)g).getAge(); |
134 | |
} |
135 | |
|
136 | |
public void setRaw(Persistent g, Object raw) |
137 | |
throws AccessPoemException { |
138 | 0 | ((org.paneris.bibliomania.User)g).setAge((Integer)raw); |
139 | 0 | } |
140 | |
}); |
141 | |
|
142 | 2 | defineColumn(col_sex = |
143 | |
new Column<Integer>(this, "sex", |
144 | |
new ReferencePoemType(getBibliomaniaDatabaseTables(). |
145 | |
getSexTable(), true), |
146 | 2 | DefinitionSource.dsd) { |
147 | |
public Object getCooked(Persistent g) |
148 | |
throws AccessPoemException, PoemException { |
149 | 0 | return ((org.paneris.bibliomania.User)g).getSex(); |
150 | |
} |
151 | |
|
152 | |
public void setCooked(Persistent g, Object cooked) |
153 | |
throws AccessPoemException, ValidationPoemException { |
154 | 0 | ((org.paneris.bibliomania.User)g).setSex((Sex)cooked); |
155 | 0 | } |
156 | |
|
157 | |
public Field<Integer> asField(Persistent g) { |
158 | 0 | return ((org.paneris.bibliomania.User)g).getSexField(); |
159 | |
} |
160 | |
|
161 | |
public DisplayLevel defaultDisplayLevel() { |
162 | 0 | return DisplayLevel.record; |
163 | |
} |
164 | |
|
165 | |
public int defaultDisplayOrder() { |
166 | 0 | return 1; |
167 | |
} |
168 | |
|
169 | |
public String defaultDescription() { |
170 | 0 | return "Your sex"; |
171 | |
} |
172 | |
|
173 | |
public Object getRaw_unsafe(Persistent g) |
174 | |
throws AccessPoemException { |
175 | 0 | return ((org.paneris.bibliomania.User)g).getSex_unsafe(); |
176 | |
} |
177 | |
|
178 | |
public void setRaw_unsafe(Persistent g, Object raw) |
179 | |
throws AccessPoemException { |
180 | 8 | ((org.paneris.bibliomania.User)g).setSex_unsafe((Integer)raw); |
181 | 8 | } |
182 | |
|
183 | |
public Object getRaw(Persistent g) |
184 | |
throws AccessPoemException { |
185 | 0 | return ((org.paneris.bibliomania.User)g).getSexTroid(); |
186 | |
} |
187 | |
|
188 | |
public void setRaw(Persistent g, Object raw) |
189 | |
throws AccessPoemException { |
190 | 0 | ((org.paneris.bibliomania.User)g).setSexTroid((Integer)raw); |
191 | 0 | } |
192 | |
}); |
193 | |
|
194 | 2 | defineColumn(col_country = |
195 | |
new Column<Integer>(this, "country", |
196 | |
new ReferencePoemType(getBibliomaniaDatabaseTables(). |
197 | |
getCountryTable(), true), |
198 | 2 | DefinitionSource.dsd) { |
199 | |
public Object getCooked(Persistent g) |
200 | |
throws AccessPoemException, PoemException { |
201 | 0 | return ((org.paneris.bibliomania.User)g).getCountry(); |
202 | |
} |
203 | |
|
204 | |
public void setCooked(Persistent g, Object cooked) |
205 | |
throws AccessPoemException, ValidationPoemException { |
206 | 0 | ((org.paneris.bibliomania.User)g).setCountry((Country)cooked); |
207 | 0 | } |
208 | |
|
209 | |
public Field<Integer> asField(Persistent g) { |
210 | 0 | return ((org.paneris.bibliomania.User)g).getCountryField(); |
211 | |
} |
212 | |
|
213 | |
public DisplayLevel defaultDisplayLevel() { |
214 | 0 | return DisplayLevel.record; |
215 | |
} |
216 | |
|
217 | |
public int defaultDisplayOrder() { |
218 | 0 | return 2; |
219 | |
} |
220 | |
|
221 | |
public String defaultDescription() { |
222 | 0 | return "The country where you live"; |
223 | |
} |
224 | |
|
225 | |
public Object getRaw_unsafe(Persistent g) |
226 | |
throws AccessPoemException { |
227 | 0 | return ((org.paneris.bibliomania.User)g).getCountry_unsafe(); |
228 | |
} |
229 | |
|
230 | |
public void setRaw_unsafe(Persistent g, Object raw) |
231 | |
throws AccessPoemException { |
232 | 8 | ((org.paneris.bibliomania.User)g).setCountry_unsafe((Integer)raw); |
233 | 8 | } |
234 | |
|
235 | |
public Object getRaw(Persistent g) |
236 | |
throws AccessPoemException { |
237 | 0 | return ((org.paneris.bibliomania.User)g).getCountryTroid(); |
238 | |
} |
239 | |
|
240 | |
public void setRaw(Persistent g, Object raw) |
241 | |
throws AccessPoemException { |
242 | 0 | ((org.paneris.bibliomania.User)g).setCountryTroid((Integer)raw); |
243 | 0 | } |
244 | |
}); |
245 | |
|
246 | 2 | defineColumn(col_region = |
247 | |
new Column<String>(this, "region", |
248 | |
new StringPoemType(true, -1), |
249 | 2 | DefinitionSource.dsd) { |
250 | |
public Object getCooked(Persistent g) |
251 | |
throws AccessPoemException, PoemException { |
252 | 0 | return ((org.paneris.bibliomania.User)g).getRegion(); |
253 | |
} |
254 | |
|
255 | |
public void setCooked(Persistent g, Object cooked) |
256 | |
throws AccessPoemException, ValidationPoemException { |
257 | 0 | ((org.paneris.bibliomania.User)g).setRegion((String)cooked); |
258 | 0 | } |
259 | |
|
260 | |
public Field<String> asField(Persistent g) { |
261 | 0 | return ((org.paneris.bibliomania.User)g).getRegionField(); |
262 | |
} |
263 | |
|
264 | |
public DisplayLevel defaultDisplayLevel() { |
265 | 0 | return DisplayLevel.record; |
266 | |
} |
267 | |
|
268 | |
public String defaultDisplayName() { |
269 | 0 | return "Post/Zip code"; |
270 | |
} |
271 | |
|
272 | |
public int defaultDisplayOrder() { |
273 | 0 | return 3; |
274 | |
} |
275 | |
|
276 | |
public String defaultDescription() { |
277 | 0 | return "Your postal code"; |
278 | |
} |
279 | |
|
280 | |
public Object getRaw_unsafe(Persistent g) |
281 | |
throws AccessPoemException { |
282 | 0 | return ((org.paneris.bibliomania.User)g).getRegion_unsafe(); |
283 | |
} |
284 | |
|
285 | |
public void setRaw_unsafe(Persistent g, Object raw) |
286 | |
throws AccessPoemException { |
287 | 8 | ((org.paneris.bibliomania.User)g).setRegion_unsafe((String)raw); |
288 | 8 | } |
289 | |
|
290 | |
public Object getRaw(Persistent g) |
291 | |
throws AccessPoemException { |
292 | 0 | return ((org.paneris.bibliomania.User)g).getRegion(); |
293 | |
} |
294 | |
|
295 | |
public void setRaw(Persistent g, Object raw) |
296 | |
throws AccessPoemException { |
297 | 0 | ((org.paneris.bibliomania.User)g).setRegion((String)raw); |
298 | 0 | } |
299 | |
}); |
300 | |
|
301 | 2 | defineColumn(col_fulltimeeducation = |
302 | |
new Column<Boolean>(this, "fulltimeeducation", |
303 | |
new BooleanPoemType(false), |
304 | 2 | DefinitionSource.dsd) { |
305 | |
public Object getCooked(Persistent g) |
306 | |
throws AccessPoemException, PoemException { |
307 | 0 | return ((org.paneris.bibliomania.User)g).getFulltimeeducation(); |
308 | |
} |
309 | |
|
310 | |
public void setCooked(Persistent g, Object cooked) |
311 | |
throws AccessPoemException, ValidationPoemException { |
312 | 0 | ((org.paneris.bibliomania.User)g).setFulltimeeducation((Boolean)cooked); |
313 | 0 | } |
314 | |
|
315 | |
public Field<Boolean> asField(Persistent g) { |
316 | 0 | return ((org.paneris.bibliomania.User)g).getFulltimeeducationField(); |
317 | |
} |
318 | |
|
319 | |
public DisplayLevel defaultDisplayLevel() { |
320 | 0 | return DisplayLevel.record; |
321 | |
} |
322 | |
|
323 | |
public String defaultDisplayName() { |
324 | 0 | return "Full time education"; |
325 | |
} |
326 | |
|
327 | |
public int defaultDisplayOrder() { |
328 | 0 | return 4; |
329 | |
} |
330 | |
|
331 | |
public String defaultDescription() { |
332 | 0 | return "Whether you are in full-time education"; |
333 | |
} |
334 | |
|
335 | |
public Object getRaw_unsafe(Persistent g) |
336 | |
throws AccessPoemException { |
337 | 0 | return ((org.paneris.bibliomania.User)g).getFulltimeeducation_unsafe(); |
338 | |
} |
339 | |
|
340 | |
public void setRaw_unsafe(Persistent g, Object raw) |
341 | |
throws AccessPoemException { |
342 | 12 | ((org.paneris.bibliomania.User)g).setFulltimeeducation_unsafe((Boolean)raw); |
343 | 12 | } |
344 | |
|
345 | |
public Object getRaw(Persistent g) |
346 | |
throws AccessPoemException { |
347 | 0 | return ((org.paneris.bibliomania.User)g).getFulltimeeducation(); |
348 | |
} |
349 | |
|
350 | |
public void setRaw(Persistent g, Object raw) |
351 | |
throws AccessPoemException { |
352 | 0 | ((org.paneris.bibliomania.User)g).setFulltimeeducation((Boolean)raw); |
353 | 0 | } |
354 | |
}); |
355 | |
|
356 | 2 | defineColumn(col_wantemailalerts = |
357 | |
new Column<Boolean>(this, "wantemailalerts", |
358 | |
new BooleanPoemType(false), |
359 | 2 | DefinitionSource.dsd) { |
360 | |
public Object getCooked(Persistent g) |
361 | |
throws AccessPoemException, PoemException { |
362 | 0 | return ((org.paneris.bibliomania.User)g).getWantemailalerts(); |
363 | |
} |
364 | |
|
365 | |
public void setCooked(Persistent g, Object cooked) |
366 | |
throws AccessPoemException, ValidationPoemException { |
367 | 0 | ((org.paneris.bibliomania.User)g).setWantemailalerts((Boolean)cooked); |
368 | 0 | } |
369 | |
|
370 | |
public Field<Boolean> asField(Persistent g) { |
371 | 0 | return ((org.paneris.bibliomania.User)g).getWantemailalertsField(); |
372 | |
} |
373 | |
|
374 | |
public DisplayLevel defaultDisplayLevel() { |
375 | 0 | return DisplayLevel.summary; |
376 | |
} |
377 | |
|
378 | |
public String defaultDisplayName() { |
379 | 0 | return "Email alerts"; |
380 | |
} |
381 | |
|
382 | |
public int defaultDisplayOrder() { |
383 | 0 | return 5; |
384 | |
} |
385 | |
|
386 | |
public String defaultDescription() { |
387 | 0 | return "Whether you want to receive email alerts"; |
388 | |
} |
389 | |
|
390 | |
public Object getRaw_unsafe(Persistent g) |
391 | |
throws AccessPoemException { |
392 | 0 | return ((org.paneris.bibliomania.User)g).getWantemailalerts_unsafe(); |
393 | |
} |
394 | |
|
395 | |
public void setRaw_unsafe(Persistent g, Object raw) |
396 | |
throws AccessPoemException { |
397 | 12 | ((org.paneris.bibliomania.User)g).setWantemailalerts_unsafe((Boolean)raw); |
398 | 12 | } |
399 | |
|
400 | |
public Object getRaw(Persistent g) |
401 | |
throws AccessPoemException { |
402 | 0 | return ((org.paneris.bibliomania.User)g).getWantemailalerts(); |
403 | |
} |
404 | |
|
405 | |
public void setRaw(Persistent g, Object raw) |
406 | |
throws AccessPoemException { |
407 | 0 | ((org.paneris.bibliomania.User)g).setWantemailalerts((Boolean)raw); |
408 | 0 | } |
409 | |
}); |
410 | |
|
411 | 2 | defineColumn(col_wantspam = |
412 | |
new Column<Boolean>(this, "wantspam", |
413 | |
new BooleanPoemType(false), |
414 | 2 | DefinitionSource.dsd) { |
415 | |
public Object getCooked(Persistent g) |
416 | |
throws AccessPoemException, PoemException { |
417 | 0 | return ((org.paneris.bibliomania.User)g).getWantspam(); |
418 | |
} |
419 | |
|
420 | |
public void setCooked(Persistent g, Object cooked) |
421 | |
throws AccessPoemException, ValidationPoemException { |
422 | 0 | ((org.paneris.bibliomania.User)g).setWantspam((Boolean)cooked); |
423 | 0 | } |
424 | |
|
425 | |
public Field<Boolean> asField(Persistent g) { |
426 | 0 | return ((org.paneris.bibliomania.User)g).getWantspamField(); |
427 | |
} |
428 | |
|
429 | |
public DisplayLevel defaultDisplayLevel() { |
430 | 0 | return DisplayLevel.summary; |
431 | |
} |
432 | |
|
433 | |
public String defaultDisplayName() { |
434 | 0 | return "Newsletter"; |
435 | |
} |
436 | |
|
437 | |
public int defaultDisplayOrder() { |
438 | 0 | return 6; |
439 | |
} |
440 | |
|
441 | |
public String defaultDescription() { |
442 | 0 | return "Whether you want to receive the bibliomania.com newsletter"; |
443 | |
} |
444 | |
|
445 | |
public Object getRaw_unsafe(Persistent g) |
446 | |
throws AccessPoemException { |
447 | 0 | return ((org.paneris.bibliomania.User)g).getWantspam_unsafe(); |
448 | |
} |
449 | |
|
450 | |
public void setRaw_unsafe(Persistent g, Object raw) |
451 | |
throws AccessPoemException { |
452 | 12 | ((org.paneris.bibliomania.User)g).setWantspam_unsafe((Boolean)raw); |
453 | 12 | } |
454 | |
|
455 | |
public Object getRaw(Persistent g) |
456 | |
throws AccessPoemException { |
457 | 0 | return ((org.paneris.bibliomania.User)g).getWantspam(); |
458 | |
} |
459 | |
|
460 | |
public void setRaw(Persistent g, Object raw) |
461 | |
throws AccessPoemException { |
462 | 0 | ((org.paneris.bibliomania.User)g).setWantspam((Boolean)raw); |
463 | 0 | } |
464 | |
}); |
465 | |
|
466 | 2 | defineColumn(col_dodgeyemail = |
467 | |
new Column<Boolean>(this, "dodgeyemail", |
468 | |
new BooleanPoemType(false), |
469 | 2 | DefinitionSource.dsd) { |
470 | |
public Object getCooked(Persistent g) |
471 | |
throws AccessPoemException, PoemException { |
472 | 0 | return ((org.paneris.bibliomania.User)g).getDodgeyemail(); |
473 | |
} |
474 | |
|
475 | |
public void setCooked(Persistent g, Object cooked) |
476 | |
throws AccessPoemException, ValidationPoemException { |
477 | 0 | ((org.paneris.bibliomania.User)g).setDodgeyemail((Boolean)cooked); |
478 | 0 | } |
479 | |
|
480 | |
public Field<Boolean> asField(Persistent g) { |
481 | 0 | return ((org.paneris.bibliomania.User)g).getDodgeyemailField(); |
482 | |
} |
483 | |
|
484 | |
public DisplayLevel defaultDisplayLevel() { |
485 | 0 | return DisplayLevel.summary; |
486 | |
} |
487 | |
|
488 | |
public String defaultDisplayName() { |
489 | 0 | return "Dodgey Email"; |
490 | |
} |
491 | |
|
492 | |
public int defaultDisplayOrder() { |
493 | 0 | return 7; |
494 | |
} |
495 | |
|
496 | |
public String defaultDescription() { |
497 | 0 | return "Whether this user has 'Dodgey' email address"; |
498 | |
} |
499 | |
|
500 | |
public Object getRaw_unsafe(Persistent g) |
501 | |
throws AccessPoemException { |
502 | 0 | return ((org.paneris.bibliomania.User)g).getDodgeyemail_unsafe(); |
503 | |
} |
504 | |
|
505 | |
public void setRaw_unsafe(Persistent g, Object raw) |
506 | |
throws AccessPoemException { |
507 | 12 | ((org.paneris.bibliomania.User)g).setDodgeyemail_unsafe((Boolean)raw); |
508 | 12 | } |
509 | |
|
510 | |
public Object getRaw(Persistent g) |
511 | |
throws AccessPoemException { |
512 | 0 | return ((org.paneris.bibliomania.User)g).getDodgeyemail(); |
513 | |
} |
514 | |
|
515 | |
public void setRaw(Persistent g, Object raw) |
516 | |
throws AccessPoemException { |
517 | 0 | ((org.paneris.bibliomania.User)g).setDodgeyemail((Boolean)raw); |
518 | 0 | } |
519 | |
}); |
520 | |
|
521 | 2 | defineColumn(col_address = |
522 | |
new Column<String>(this, "address", |
523 | |
new StringPoemType(true, -1), |
524 | 2 | DefinitionSource.dsd) { |
525 | |
public Object getCooked(Persistent g) |
526 | |
throws AccessPoemException, PoemException { |
527 | 0 | return ((org.paneris.bibliomania.User)g).getAddress(); |
528 | |
} |
529 | |
|
530 | |
public void setCooked(Persistent g, Object cooked) |
531 | |
throws AccessPoemException, ValidationPoemException { |
532 | 0 | ((org.paneris.bibliomania.User)g).setAddress((String)cooked); |
533 | 0 | } |
534 | |
|
535 | |
public Field<String> asField(Persistent g) { |
536 | 0 | return ((org.paneris.bibliomania.User)g).getAddressField(); |
537 | |
} |
538 | |
|
539 | |
public DisplayLevel defaultDisplayLevel() { |
540 | 0 | return DisplayLevel.record; |
541 | |
} |
542 | |
|
543 | |
public String defaultDisplayName() { |
544 | 0 | return "Address"; |
545 | |
} |
546 | |
|
547 | |
public int defaultDisplayOrder() { |
548 | 0 | return 8; |
549 | |
} |
550 | |
|
551 | |
public String defaultDescription() { |
552 | 0 | return "Your address"; |
553 | |
} |
554 | |
|
555 | |
public int defaultWidth() { |
556 | 0 | return 30; |
557 | |
} |
558 | |
|
559 | |
public int defaultHeight() { |
560 | 0 | return 4; |
561 | |
} |
562 | |
|
563 | |
public Object getRaw_unsafe(Persistent g) |
564 | |
throws AccessPoemException { |
565 | 0 | return ((org.paneris.bibliomania.User)g).getAddress_unsafe(); |
566 | |
} |
567 | |
|
568 | |
public void setRaw_unsafe(Persistent g, Object raw) |
569 | |
throws AccessPoemException { |
570 | 8 | ((org.paneris.bibliomania.User)g).setAddress_unsafe((String)raw); |
571 | 8 | } |
572 | |
|
573 | |
public Object getRaw(Persistent g) |
574 | |
throws AccessPoemException { |
575 | 0 | return ((org.paneris.bibliomania.User)g).getAddress(); |
576 | |
} |
577 | |
|
578 | |
public void setRaw(Persistent g, Object raw) |
579 | |
throws AccessPoemException { |
580 | 0 | ((org.paneris.bibliomania.User)g).setAddress((String)raw); |
581 | 0 | } |
582 | |
}); |
583 | |
|
584 | 2 | defineColumn(col_town = |
585 | |
new Column<String>(this, "town", |
586 | |
new StringPoemType(true, -1), |
587 | 2 | DefinitionSource.dsd) { |
588 | |
public Object getCooked(Persistent g) |
589 | |
throws AccessPoemException, PoemException { |
590 | 0 | return ((org.paneris.bibliomania.User)g).getTown(); |
591 | |
} |
592 | |
|
593 | |
public void setCooked(Persistent g, Object cooked) |
594 | |
throws AccessPoemException, ValidationPoemException { |
595 | 0 | ((org.paneris.bibliomania.User)g).setTown((String)cooked); |
596 | 0 | } |
597 | |
|
598 | |
public Field<String> asField(Persistent g) { |
599 | 0 | return ((org.paneris.bibliomania.User)g).getTownField(); |
600 | |
} |
601 | |
|
602 | |
public DisplayLevel defaultDisplayLevel() { |
603 | 0 | return DisplayLevel.record; |
604 | |
} |
605 | |
|
606 | |
public String defaultDisplayName() { |
607 | 0 | return "Town / City"; |
608 | |
} |
609 | |
|
610 | |
public int defaultDisplayOrder() { |
611 | 0 | return 9; |
612 | |
} |
613 | |
|
614 | |
public String defaultDescription() { |
615 | 0 | return "The town / city where you live"; |
616 | |
} |
617 | |
|
618 | |
public int defaultWidth() { |
619 | 0 | return 30; |
620 | |
} |
621 | |
|
622 | |
public Object getRaw_unsafe(Persistent g) |
623 | |
throws AccessPoemException { |
624 | 0 | return ((org.paneris.bibliomania.User)g).getTown_unsafe(); |
625 | |
} |
626 | |
|
627 | |
public void setRaw_unsafe(Persistent g, Object raw) |
628 | |
throws AccessPoemException { |
629 | 8 | ((org.paneris.bibliomania.User)g).setTown_unsafe((String)raw); |
630 | 8 | } |
631 | |
|
632 | |
public Object getRaw(Persistent g) |
633 | |
throws AccessPoemException { |
634 | 0 | return ((org.paneris.bibliomania.User)g).getTown(); |
635 | |
} |
636 | |
|
637 | |
public void setRaw(Persistent g, Object raw) |
638 | |
throws AccessPoemException { |
639 | 0 | ((org.paneris.bibliomania.User)g).setTown((String)raw); |
640 | 0 | } |
641 | |
}); |
642 | |
|
643 | 2 | defineColumn(col_county = |
644 | |
new Column<String>(this, "county", |
645 | |
new StringPoemType(true, -1), |
646 | 2 | DefinitionSource.dsd) { |
647 | |
public Object getCooked(Persistent g) |
648 | |
throws AccessPoemException, PoemException { |
649 | 0 | return ((org.paneris.bibliomania.User)g).getCounty(); |
650 | |
} |
651 | |
|
652 | |
public void setCooked(Persistent g, Object cooked) |
653 | |
throws AccessPoemException, ValidationPoemException { |
654 | 0 | ((org.paneris.bibliomania.User)g).setCounty((String)cooked); |
655 | 0 | } |
656 | |
|
657 | |
public Field<String> asField(Persistent g) { |
658 | 0 | return ((org.paneris.bibliomania.User)g).getCountyField(); |
659 | |
} |
660 | |
|
661 | |
public DisplayLevel defaultDisplayLevel() { |
662 | 0 | return DisplayLevel.record; |
663 | |
} |
664 | |
|
665 | |
public String defaultDisplayName() { |
666 | 0 | return "County / State"; |
667 | |
} |
668 | |
|
669 | |
public int defaultDisplayOrder() { |
670 | 0 | return 10; |
671 | |
} |
672 | |
|
673 | |
public String defaultDescription() { |
674 | 0 | return "The county / state where you live"; |
675 | |
} |
676 | |
|
677 | |
public int defaultWidth() { |
678 | 0 | return 30; |
679 | |
} |
680 | |
|
681 | |
public Object getRaw_unsafe(Persistent g) |
682 | |
throws AccessPoemException { |
683 | 0 | return ((org.paneris.bibliomania.User)g).getCounty_unsafe(); |
684 | |
} |
685 | |
|
686 | |
public void setRaw_unsafe(Persistent g, Object raw) |
687 | |
throws AccessPoemException { |
688 | 8 | ((org.paneris.bibliomania.User)g).setCounty_unsafe((String)raw); |
689 | 8 | } |
690 | |
|
691 | |
public Object getRaw(Persistent g) |
692 | |
throws AccessPoemException { |
693 | 0 | return ((org.paneris.bibliomania.User)g).getCounty(); |
694 | |
} |
695 | |
|
696 | |
public void setRaw(Persistent g, Object raw) |
697 | |
throws AccessPoemException { |
698 | 0 | ((org.paneris.bibliomania.User)g).setCounty((String)raw); |
699 | 0 | } |
700 | |
}); |
701 | |
|
702 | 2 | defineColumn(col_tel = |
703 | |
new Column<String>(this, "tel", |
704 | |
new StringPoemType(true, -1), |
705 | 2 | DefinitionSource.dsd) { |
706 | |
public Object getCooked(Persistent g) |
707 | |
throws AccessPoemException, PoemException { |
708 | 0 | return ((org.paneris.bibliomania.User)g).getTel(); |
709 | |
} |
710 | |
|
711 | |
public void setCooked(Persistent g, Object cooked) |
712 | |
throws AccessPoemException, ValidationPoemException { |
713 | 0 | ((org.paneris.bibliomania.User)g).setTel((String)cooked); |
714 | 0 | } |
715 | |
|
716 | |
public Field<String> asField(Persistent g) { |
717 | 0 | return ((org.paneris.bibliomania.User)g).getTelField(); |
718 | |
} |
719 | |
|
720 | |
public DisplayLevel defaultDisplayLevel() { |
721 | 0 | return DisplayLevel.record; |
722 | |
} |
723 | |
|
724 | |
public String defaultDisplayName() { |
725 | 0 | return "Telephone"; |
726 | |
} |
727 | |
|
728 | |
public int defaultDisplayOrder() { |
729 | 0 | return 11; |
730 | |
} |
731 | |
|
732 | |
public String defaultDescription() { |
733 | 0 | return "Your telephone number"; |
734 | |
} |
735 | |
|
736 | |
public Object getRaw_unsafe(Persistent g) |
737 | |
throws AccessPoemException { |
738 | 0 | return ((org.paneris.bibliomania.User)g).getTel_unsafe(); |
739 | |
} |
740 | |
|
741 | |
public void setRaw_unsafe(Persistent g, Object raw) |
742 | |
throws AccessPoemException { |
743 | 8 | ((org.paneris.bibliomania.User)g).setTel_unsafe((String)raw); |
744 | 8 | } |
745 | |
|
746 | |
public Object getRaw(Persistent g) |
747 | |
throws AccessPoemException { |
748 | 0 | return ((org.paneris.bibliomania.User)g).getTel(); |
749 | |
} |
750 | |
|
751 | |
public void setRaw(Persistent g, Object raw) |
752 | |
throws AccessPoemException { |
753 | 0 | ((org.paneris.bibliomania.User)g).setTel((String)raw); |
754 | 0 | } |
755 | |
}); |
756 | |
|
757 | 2 | defineColumn(col_currency = |
758 | |
new Column<Integer>(this, "currency", |
759 | |
new ReferencePoemType(getBibliomaniaDatabaseTables(). |
760 | |
getCurrencyTable(), true), |
761 | 2 | DefinitionSource.dsd) { |
762 | |
public Object getCooked(Persistent g) |
763 | |
throws AccessPoemException, PoemException { |
764 | 0 | return ((org.paneris.bibliomania.User)g).getCurrency(); |
765 | |
} |
766 | |
|
767 | |
public void setCooked(Persistent g, Object cooked) |
768 | |
throws AccessPoemException, ValidationPoemException { |
769 | 0 | ((org.paneris.bibliomania.User)g).setCurrency((Currency)cooked); |
770 | 0 | } |
771 | |
|
772 | |
public Field<Integer> asField(Persistent g) { |
773 | 0 | return ((org.paneris.bibliomania.User)g).getCurrencyField(); |
774 | |
} |
775 | |
|
776 | |
public DisplayLevel defaultDisplayLevel() { |
777 | 0 | return DisplayLevel.record; |
778 | |
} |
779 | |
|
780 | |
public int defaultDisplayOrder() { |
781 | 0 | return 12; |
782 | |
} |
783 | |
|
784 | |
public String defaultDescription() { |
785 | 0 | return "Your prefered currency"; |
786 | |
} |
787 | |
|
788 | |
public Object getRaw_unsafe(Persistent g) |
789 | |
throws AccessPoemException { |
790 | 0 | return ((org.paneris.bibliomania.User)g).getCurrency_unsafe(); |
791 | |
} |
792 | |
|
793 | |
public void setRaw_unsafe(Persistent g, Object raw) |
794 | |
throws AccessPoemException { |
795 | 8 | ((org.paneris.bibliomania.User)g).setCurrency_unsafe((Integer)raw); |
796 | 8 | } |
797 | |
|
798 | |
public Object getRaw(Persistent g) |
799 | |
throws AccessPoemException { |
800 | 0 | return ((org.paneris.bibliomania.User)g).getCurrencyTroid(); |
801 | |
} |
802 | |
|
803 | |
public void setRaw(Persistent g, Object raw) |
804 | |
throws AccessPoemException { |
805 | 0 | ((org.paneris.bibliomania.User)g).setCurrencyTroid((Integer)raw); |
806 | 0 | } |
807 | |
}); |
808 | |
|
809 | 2 | defineColumn(col_bookmark = |
810 | |
new Column<String>(this, "bookmark", |
811 | |
new StringPoemType(true, -1), |
812 | 2 | DefinitionSource.dsd) { |
813 | |
public Object getCooked(Persistent g) |
814 | |
throws AccessPoemException, PoemException { |
815 | 0 | return ((org.paneris.bibliomania.User)g).getBookmark(); |
816 | |
} |
817 | |
|
818 | |
public void setCooked(Persistent g, Object cooked) |
819 | |
throws AccessPoemException, ValidationPoemException { |
820 | 0 | ((org.paneris.bibliomania.User)g).setBookmark((String)cooked); |
821 | 0 | } |
822 | |
|
823 | |
public Field<String> asField(Persistent g) { |
824 | 0 | return ((org.paneris.bibliomania.User)g).getBookmarkField(); |
825 | |
} |
826 | |
|
827 | |
public DisplayLevel defaultDisplayLevel() { |
828 | 0 | return DisplayLevel.record; |
829 | |
} |
830 | |
|
831 | |
public String defaultDisplayName() { |
832 | 0 | return "Bookmark"; |
833 | |
} |
834 | |
|
835 | |
public int defaultDisplayOrder() { |
836 | 0 | return 13; |
837 | |
} |
838 | |
|
839 | |
public String defaultDescription() { |
840 | 0 | return "An URL that this user has bookmarked"; |
841 | |
} |
842 | |
|
843 | |
public int defaultWidth() { |
844 | 0 | return 50; |
845 | |
} |
846 | |
|
847 | |
public Object getRaw_unsafe(Persistent g) |
848 | |
throws AccessPoemException { |
849 | 0 | return ((org.paneris.bibliomania.User)g).getBookmark_unsafe(); |
850 | |
} |
851 | |
|
852 | |
public void setRaw_unsafe(Persistent g, Object raw) |
853 | |
throws AccessPoemException { |
854 | 8 | ((org.paneris.bibliomania.User)g).setBookmark_unsafe((String)raw); |
855 | 8 | } |
856 | |
|
857 | |
public Object getRaw(Persistent g) |
858 | |
throws AccessPoemException { |
859 | 0 | return ((org.paneris.bibliomania.User)g).getBookmark(); |
860 | |
} |
861 | |
|
862 | |
public void setRaw(Persistent g, Object raw) |
863 | |
throws AccessPoemException { |
864 | 0 | ((org.paneris.bibliomania.User)g).setBookmark((String)raw); |
865 | 0 | } |
866 | |
}); |
867 | |
|
868 | 2 | defineColumn(col_lastemailed = |
869 | |
new Column<Timestamp>(this, "lastemailed", |
870 | |
new TimestampPoemType(true), |
871 | 2 | DefinitionSource.dsd) { |
872 | |
public Object getCooked(Persistent g) |
873 | |
throws AccessPoemException, PoemException { |
874 | 0 | return ((org.paneris.bibliomania.User)g).getLastemailed(); |
875 | |
} |
876 | |
|
877 | |
public void setCooked(Persistent g, Object cooked) |
878 | |
throws AccessPoemException, ValidationPoemException { |
879 | 0 | ((org.paneris.bibliomania.User)g).setLastemailed((Timestamp)cooked); |
880 | 0 | } |
881 | |
|
882 | |
public Field<Timestamp> asField(Persistent g) { |
883 | 0 | return ((org.paneris.bibliomania.User)g).getLastemailedField(); |
884 | |
} |
885 | |
|
886 | |
public DisplayLevel defaultDisplayLevel() { |
887 | 0 | return DisplayLevel.record; |
888 | |
} |
889 | |
|
890 | |
public String defaultDisplayName() { |
891 | 0 | return "Last emailed"; |
892 | |
} |
893 | |
|
894 | |
public int defaultDisplayOrder() { |
895 | 0 | return 14; |
896 | |
} |
897 | |
|
898 | |
public String defaultDescription() { |
899 | 0 | return "When was this user last emailed?"; |
900 | |
} |
901 | |
|
902 | |
public Object getRaw_unsafe(Persistent g) |
903 | |
throws AccessPoemException { |
904 | 0 | return ((org.paneris.bibliomania.User)g).getLastemailed_unsafe(); |
905 | |
} |
906 | |
|
907 | |
public void setRaw_unsafe(Persistent g, Object raw) |
908 | |
throws AccessPoemException { |
909 | 8 | ((org.paneris.bibliomania.User)g).setLastemailed_unsafe((Timestamp)raw); |
910 | 8 | } |
911 | |
|
912 | |
public Object getRaw(Persistent g) |
913 | |
throws AccessPoemException { |
914 | 0 | return ((org.paneris.bibliomania.User)g).getLastemailed(); |
915 | |
} |
916 | |
|
917 | |
public void setRaw(Persistent g, Object raw) |
918 | |
throws AccessPoemException { |
919 | 0 | ((org.paneris.bibliomania.User)g).setLastemailed((Timestamp)raw); |
920 | 0 | } |
921 | |
}); |
922 | 2 | } |
923 | |
|
924 | |
|
925 | |
|
926 | |
|
927 | |
|
928 | |
|
929 | |
|
930 | |
|
931 | |
|
932 | |
public final Column<Integer> getAgeColumn() { |
933 | 0 | return col_age; |
934 | |
} |
935 | |
|
936 | |
|
937 | |
|
938 | |
|
939 | |
|
940 | |
|
941 | |
|
942 | |
|
943 | |
|
944 | |
public final Column<Integer> getSexColumn() { |
945 | 0 | return col_sex; |
946 | |
} |
947 | |
|
948 | |
|
949 | |
|
950 | |
|
951 | |
|
952 | |
|
953 | |
|
954 | |
|
955 | |
|
956 | |
public final Column<Integer> getCountryColumn() { |
957 | 0 | return col_country; |
958 | |
} |
959 | |
|
960 | |
|
961 | |
|
962 | |
|
963 | |
|
964 | |
|
965 | |
|
966 | |
|
967 | |
|
968 | |
public final Column<String> getRegionColumn() { |
969 | 0 | return col_region; |
970 | |
} |
971 | |
|
972 | |
|
973 | |
|
974 | |
|
975 | |
|
976 | |
|
977 | |
|
978 | |
|
979 | |
|
980 | |
public final Column<Boolean> getFulltimeeducationColumn() { |
981 | 6 | return col_fulltimeeducation; |
982 | |
} |
983 | |
|
984 | |
|
985 | |
|
986 | |
|
987 | |
|
988 | |
|
989 | |
|
990 | |
|
991 | |
|
992 | |
public final Column<Boolean> getWantemailalertsColumn() { |
993 | 6 | return col_wantemailalerts; |
994 | |
} |
995 | |
|
996 | |
|
997 | |
|
998 | |
|
999 | |
|
1000 | |
|
1001 | |
|
1002 | |
|
1003 | |
|
1004 | |
public final Column<Boolean> getWantspamColumn() { |
1005 | 6 | return col_wantspam; |
1006 | |
} |
1007 | |
|
1008 | |
|
1009 | |
|
1010 | |
|
1011 | |
|
1012 | |
|
1013 | |
|
1014 | |
|
1015 | |
|
1016 | |
public final Column<Boolean> getDodgeyemailColumn() { |
1017 | 6 | return col_dodgeyemail; |
1018 | |
} |
1019 | |
|
1020 | |
|
1021 | |
|
1022 | |
|
1023 | |
|
1024 | |
|
1025 | |
|
1026 | |
|
1027 | |
|
1028 | |
public final Column<String> getAddressColumn() { |
1029 | 0 | return col_address; |
1030 | |
} |
1031 | |
|
1032 | |
|
1033 | |
|
1034 | |
|
1035 | |
|
1036 | |
|
1037 | |
|
1038 | |
|
1039 | |
|
1040 | |
public final Column<String> getTownColumn() { |
1041 | 0 | return col_town; |
1042 | |
} |
1043 | |
|
1044 | |
|
1045 | |
|
1046 | |
|
1047 | |
|
1048 | |
|
1049 | |
|
1050 | |
|
1051 | |
|
1052 | |
public final Column<String> getCountyColumn() { |
1053 | 0 | return col_county; |
1054 | |
} |
1055 | |
|
1056 | |
|
1057 | |
|
1058 | |
|
1059 | |
|
1060 | |
|
1061 | |
|
1062 | |
|
1063 | |
|
1064 | |
public final Column<String> getTelColumn() { |
1065 | 0 | return col_tel; |
1066 | |
} |
1067 | |
|
1068 | |
|
1069 | |
|
1070 | |
|
1071 | |
|
1072 | |
|
1073 | |
|
1074 | |
|
1075 | |
|
1076 | |
public final Column<Integer> getCurrencyColumn() { |
1077 | 0 | return col_currency; |
1078 | |
} |
1079 | |
|
1080 | |
|
1081 | |
|
1082 | |
|
1083 | |
|
1084 | |
|
1085 | |
|
1086 | |
|
1087 | |
|
1088 | |
public final Column<String> getBookmarkColumn() { |
1089 | 0 | return col_bookmark; |
1090 | |
} |
1091 | |
|
1092 | |
|
1093 | |
|
1094 | |
|
1095 | |
|
1096 | |
|
1097 | |
|
1098 | |
|
1099 | |
|
1100 | |
public final Column<Timestamp> getLastemailedColumn() { |
1101 | 0 | return col_lastemailed; |
1102 | |
} |
1103 | |
|
1104 | |
|
1105 | |
|
1106 | |
|
1107 | |
|
1108 | |
|
1109 | |
|
1110 | |
|
1111 | |
|
1112 | |
public org.melati.poem.User getUserObject(Integer troid) { |
1113 | 0 | return (org.melati.poem.User)getObject(troid); |
1114 | |
} |
1115 | |
|
1116 | |
|
1117 | |
|
1118 | |
|
1119 | |
|
1120 | |
|
1121 | |
|
1122 | |
|
1123 | |
|
1124 | |
public org.melati.poem.User getUserObject(int troid) { |
1125 | 0 | return (org.melati.poem.User)getObject(troid); |
1126 | |
} |
1127 | |
|
1128 | |
protected JdbcPersistent _newPersistent() { |
1129 | 14 | return new org.paneris.bibliomania.User(); |
1130 | |
} |
1131 | |
public int defaultDisplayOrder() { |
1132 | 0 | return 2010; |
1133 | |
} |
1134 | |
} |
1135 | |
|