Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
UserBase |
|
| 1.0;1 |
1 | // Do not edit this file! It was generated by Melati POEM's DSD preprocessor. | |
2 | ||
3 | package org.paneris.rimauresq.model.generated; | |
4 | ||
5 | ||
6 | import org.melati.poem.AccessPoemException; | |
7 | import org.melati.poem.Column; | |
8 | import org.melati.poem.Field; | |
9 | import org.melati.poem.User; | |
10 | import org.melati.poem.ValidationPoemException; | |
11 | import org.paneris.rimauresq.model.RimauresqDatabaseTables; | |
12 | import org.paneris.rimauresq.model.UserTable; | |
13 | ||
14 | ||
15 | /** | |
16 | * Melati POEM generated abstract base class for a <code>Persistent</code> | |
17 | * <code>User</code> Object. | |
18 | * | |
19 | * @generator org.melati.poem.prepro.TableDef#generatePersistentBaseJava | |
20 | */ | |
21 | 12 | public abstract class UserBase extends User { |
22 | ||
23 | ||
24 | /** | |
25 | * Retrieves the Database object. | |
26 | * | |
27 | * @generator org.melati.poem.prepro.TableDef#generatePersistentBaseJava | |
28 | * @return the database | |
29 | */ | |
30 | public RimauresqDatabaseTables getRimauresqDatabaseTables() { | |
31 | 0 | return (RimauresqDatabaseTables)getDatabase(); |
32 | } | |
33 | ||
34 | ||
35 | /** | |
36 | * Retrieves the <code>UserTable</code> table | |
37 | * which this <code>Persistent</code> is from. | |
38 | * | |
39 | * @generator org.melati.poem.prepro.TableDef#generatePersistentBaseJava | |
40 | * @return the org.melati.poem.UserTable | |
41 | */ | |
42 | public org.melati.poem.UserTable getUserTable() { | |
43 | 14 | return (org.melati.poem.UserTable)getTable(); |
44 | } | |
45 | ||
46 | private UserTable _getUserTable() { | |
47 | 2 | return (UserTable)getTable(); |
48 | } | |
49 | ||
50 | // Fields in this table | |
51 | /** | |
52 | * email - The user's email address | |
53 | */ | |
54 | protected String email; | |
55 | /** | |
56 | * Title - User's title or role | |
57 | */ | |
58 | protected String title; | |
59 | /** | |
60 | * Address | |
61 | */ | |
62 | protected String address; | |
63 | /** | |
64 | * Town / City | |
65 | */ | |
66 | protected String town; | |
67 | /** | |
68 | * Postcode - Order postcode | |
69 | */ | |
70 | protected String postcode; | |
71 | /** | |
72 | * Country | |
73 | */ | |
74 | protected String country; | |
75 | /** | |
76 | * Telephone - User's telephone number | |
77 | */ | |
78 | protected String tel; | |
79 | /** | |
80 | * fax - User's fax number | |
81 | */ | |
82 | protected String fax; | |
83 | /** | |
84 | * Mobile - User's mobile number | |
85 | */ | |
86 | protected String mobile; | |
87 | /** | |
88 | * Receive Newsletter? - Does the user want to receive the email | |
89 | * newsletter? | |
90 | */ | |
91 | protected Boolean news; | |
92 | ||
93 | ||
94 | /** | |
95 | * Retrieves the <code>Email</code> value, without locking, | |
96 | * for this <code>User</code> <code>Persistent</code>. | |
97 | * | |
98 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
99 | * @return the String email | |
100 | */ | |
101 | public String getEmail_unsafe() { | |
102 | 26 | return email; |
103 | } | |
104 | ||
105 | ||
106 | /** | |
107 | * Sets the <code>Email</code> value directly, without checking, | |
108 | * for this User <code>Persistent</code>. | |
109 | * | |
110 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
111 | * @param cooked the pre-validated value to set | |
112 | */ | |
113 | public void setEmail_unsafe(String cooked) { | |
114 | 14 | email = cooked; |
115 | 14 | } |
116 | ||
117 | /** | |
118 | * Retrieves the Email value, with locking, for this | |
119 | * <code>User</code> <code>Persistent</code>. | |
120 | * Field description: | |
121 | * The user's email address | |
122 | * | |
123 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
124 | * @throws AccessPoemException | |
125 | * if the current <code>AccessToken</code> | |
126 | * does not confer write access rights | |
127 | * @return the value of the field <code>Email</code> for this | |
128 | * <code>User</code> <code>Persistent</code> | |
129 | */ | |
130 | ||
131 | public String getEmail() | |
132 | throws AccessPoemException { | |
133 | 4 | readLock(); |
134 | 4 | return getEmail_unsafe(); |
135 | } | |
136 | ||
137 | ||
138 | /** | |
139 | * Sets the <code>Email</code> value, with checking, for this | |
140 | * <code>User</code> <code>Persistent</code>. | |
141 | * Field description: | |
142 | * The user's email address | |
143 | * | |
144 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
145 | * @param cooked a validated <code>int</code> | |
146 | * @throws AccessPoemException | |
147 | * if the current <code>AccessToken</code> | |
148 | * does not confer write access rights | |
149 | * @throws ValidationPoemException | |
150 | * if the value is not valid | |
151 | */ | |
152 | public void setEmail(String cooked) | |
153 | throws AccessPoemException, ValidationPoemException { | |
154 | 2 | _getUserTable().getEmailColumn(). |
155 | getType().assertValidCooked(cooked); | |
156 | 2 | writeLock(); |
157 | 2 | setEmail_unsafe(cooked); |
158 | 2 | } |
159 | ||
160 | ||
161 | /** | |
162 | * Retrieves the <code>Email</code> value as a <code>Field</code> | |
163 | * from this <code>User</code> <code>Persistent</code>. | |
164 | * | |
165 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
166 | * @throws AccessPoemException | |
167 | * if the current <code>AccessToken</code> | |
168 | * does not confer write access rights | |
169 | * @return the String email | |
170 | */ | |
171 | public Field getEmailField() throws AccessPoemException { | |
172 | 0 | Column c = _getUserTable().getEmailColumn(); |
173 | 0 | return new Field(c.getRaw(this), c); |
174 | } | |
175 | ||
176 | ||
177 | /** | |
178 | * Retrieves the <code>Title</code> value, without locking, | |
179 | * for this <code>User</code> <code>Persistent</code>. | |
180 | * | |
181 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
182 | * @return the String title | |
183 | */ | |
184 | public String getTitle_unsafe() { | |
185 | 22 | return title; |
186 | } | |
187 | ||
188 | ||
189 | /** | |
190 | * Sets the <code>Title</code> value directly, without checking, | |
191 | * for this User <code>Persistent</code>. | |
192 | * | |
193 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
194 | * @param cooked the pre-validated value to set | |
195 | */ | |
196 | public void setTitle_unsafe(String cooked) { | |
197 | 0 | title = cooked; |
198 | 0 | } |
199 | ||
200 | /** | |
201 | * Retrieves the Title value, with locking, for this | |
202 | * <code>User</code> <code>Persistent</code>. | |
203 | * Field description: | |
204 | * User's title or role | |
205 | * | |
206 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
207 | * @throws AccessPoemException | |
208 | * if the current <code>AccessToken</code> | |
209 | * does not confer write access rights | |
210 | * @return the value of the field <code>Title</code> for this | |
211 | * <code>User</code> <code>Persistent</code> | |
212 | */ | |
213 | ||
214 | public String getTitle() | |
215 | throws AccessPoemException { | |
216 | 0 | readLock(); |
217 | 0 | return getTitle_unsafe(); |
218 | } | |
219 | ||
220 | ||
221 | /** | |
222 | * Sets the <code>Title</code> value, with checking, for this | |
223 | * <code>User</code> <code>Persistent</code>. | |
224 | * Field description: | |
225 | * User's title or role | |
226 | * | |
227 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
228 | * @param cooked a validated <code>int</code> | |
229 | * @throws AccessPoemException | |
230 | * if the current <code>AccessToken</code> | |
231 | * does not confer write access rights | |
232 | * @throws ValidationPoemException | |
233 | * if the value is not valid | |
234 | */ | |
235 | public void setTitle(String cooked) | |
236 | throws AccessPoemException, ValidationPoemException { | |
237 | 0 | _getUserTable().getTitleColumn(). |
238 | getType().assertValidCooked(cooked); | |
239 | 0 | writeLock(); |
240 | 0 | setTitle_unsafe(cooked); |
241 | 0 | } |
242 | ||
243 | ||
244 | /** | |
245 | * Retrieves the <code>Title</code> value as a <code>Field</code> | |
246 | * from this <code>User</code> <code>Persistent</code>. | |
247 | * | |
248 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
249 | * @throws AccessPoemException | |
250 | * if the current <code>AccessToken</code> | |
251 | * does not confer write access rights | |
252 | * @return the String title | |
253 | */ | |
254 | public Field getTitleField() throws AccessPoemException { | |
255 | 0 | Column c = _getUserTable().getTitleColumn(); |
256 | 0 | return new Field(c.getRaw(this), c); |
257 | } | |
258 | ||
259 | ||
260 | /** | |
261 | * Retrieves the <code>Address</code> value, without locking, | |
262 | * for this <code>User</code> <code>Persistent</code>. | |
263 | * | |
264 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
265 | * @return the String address | |
266 | */ | |
267 | public String getAddress_unsafe() { | |
268 | 22 | return address; |
269 | } | |
270 | ||
271 | ||
272 | /** | |
273 | * Sets the <code>Address</code> value directly, without checking, | |
274 | * for this User <code>Persistent</code>. | |
275 | * | |
276 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
277 | * @param cooked the pre-validated value to set | |
278 | */ | |
279 | public void setAddress_unsafe(String cooked) { | |
280 | 0 | address = cooked; |
281 | 0 | } |
282 | ||
283 | /** | |
284 | * Retrieves the Address value, with locking, for this | |
285 | * <code>User</code> <code>Persistent</code>. | |
286 | * | |
287 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
288 | * @throws AccessPoemException | |
289 | * if the current <code>AccessToken</code> | |
290 | * does not confer write access rights | |
291 | * @return the value of the field <code>Address</code> for this | |
292 | * <code>User</code> <code>Persistent</code> | |
293 | */ | |
294 | ||
295 | public String getAddress() | |
296 | throws AccessPoemException { | |
297 | 0 | readLock(); |
298 | 0 | return getAddress_unsafe(); |
299 | } | |
300 | ||
301 | ||
302 | /** | |
303 | * Sets the <code>Address</code> value, with checking, for this | |
304 | * <code>User</code> <code>Persistent</code>. | |
305 | * | |
306 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
307 | * @param cooked a validated <code>int</code> | |
308 | * @throws AccessPoemException | |
309 | * if the current <code>AccessToken</code> | |
310 | * does not confer write access rights | |
311 | * @throws ValidationPoemException | |
312 | * if the value is not valid | |
313 | */ | |
314 | public void setAddress(String cooked) | |
315 | throws AccessPoemException, ValidationPoemException { | |
316 | 0 | _getUserTable().getAddressColumn(). |
317 | getType().assertValidCooked(cooked); | |
318 | 0 | writeLock(); |
319 | 0 | setAddress_unsafe(cooked); |
320 | 0 | } |
321 | ||
322 | ||
323 | /** | |
324 | * Retrieves the <code>Address</code> value as a <code>Field</code> | |
325 | * from this <code>User</code> <code>Persistent</code>. | |
326 | * | |
327 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
328 | * @throws AccessPoemException | |
329 | * if the current <code>AccessToken</code> | |
330 | * does not confer write access rights | |
331 | * @return the String address | |
332 | */ | |
333 | public Field getAddressField() throws AccessPoemException { | |
334 | 0 | Column c = _getUserTable().getAddressColumn(); |
335 | 0 | return new Field(c.getRaw(this), c); |
336 | } | |
337 | ||
338 | ||
339 | /** | |
340 | * Retrieves the <code>Town</code> value, without locking, | |
341 | * for this <code>User</code> <code>Persistent</code>. | |
342 | * | |
343 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
344 | * @return the String town | |
345 | */ | |
346 | public String getTown_unsafe() { | |
347 | 22 | return town; |
348 | } | |
349 | ||
350 | ||
351 | /** | |
352 | * Sets the <code>Town</code> value directly, without checking, | |
353 | * for this User <code>Persistent</code>. | |
354 | * | |
355 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
356 | * @param cooked the pre-validated value to set | |
357 | */ | |
358 | public void setTown_unsafe(String cooked) { | |
359 | 0 | town = cooked; |
360 | 0 | } |
361 | ||
362 | /** | |
363 | * Retrieves the Town value, with locking, for this | |
364 | * <code>User</code> <code>Persistent</code>. | |
365 | * | |
366 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
367 | * @throws AccessPoemException | |
368 | * if the current <code>AccessToken</code> | |
369 | * does not confer write access rights | |
370 | * @return the value of the field <code>Town</code> for this | |
371 | * <code>User</code> <code>Persistent</code> | |
372 | */ | |
373 | ||
374 | public String getTown() | |
375 | throws AccessPoemException { | |
376 | 0 | readLock(); |
377 | 0 | return getTown_unsafe(); |
378 | } | |
379 | ||
380 | ||
381 | /** | |
382 | * Sets the <code>Town</code> value, with checking, for this | |
383 | * <code>User</code> <code>Persistent</code>. | |
384 | * | |
385 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
386 | * @param cooked a validated <code>int</code> | |
387 | * @throws AccessPoemException | |
388 | * if the current <code>AccessToken</code> | |
389 | * does not confer write access rights | |
390 | * @throws ValidationPoemException | |
391 | * if the value is not valid | |
392 | */ | |
393 | public void setTown(String cooked) | |
394 | throws AccessPoemException, ValidationPoemException { | |
395 | 0 | _getUserTable().getTownColumn(). |
396 | getType().assertValidCooked(cooked); | |
397 | 0 | writeLock(); |
398 | 0 | setTown_unsafe(cooked); |
399 | 0 | } |
400 | ||
401 | ||
402 | /** | |
403 | * Retrieves the <code>Town</code> value as a <code>Field</code> | |
404 | * from this <code>User</code> <code>Persistent</code>. | |
405 | * | |
406 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
407 | * @throws AccessPoemException | |
408 | * if the current <code>AccessToken</code> | |
409 | * does not confer write access rights | |
410 | * @return the String town | |
411 | */ | |
412 | public Field getTownField() throws AccessPoemException { | |
413 | 0 | Column c = _getUserTable().getTownColumn(); |
414 | 0 | return new Field(c.getRaw(this), c); |
415 | } | |
416 | ||
417 | ||
418 | /** | |
419 | * Retrieves the <code>Postcode</code> value, without locking, | |
420 | * for this <code>User</code> <code>Persistent</code>. | |
421 | * | |
422 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
423 | * @return the String postcode | |
424 | */ | |
425 | public String getPostcode_unsafe() { | |
426 | 22 | return postcode; |
427 | } | |
428 | ||
429 | ||
430 | /** | |
431 | * Sets the <code>Postcode</code> value directly, without checking, | |
432 | * for this User <code>Persistent</code>. | |
433 | * | |
434 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
435 | * @param cooked the pre-validated value to set | |
436 | */ | |
437 | public void setPostcode_unsafe(String cooked) { | |
438 | 0 | postcode = cooked; |
439 | 0 | } |
440 | ||
441 | /** | |
442 | * Retrieves the Postcode value, with locking, for this | |
443 | * <code>User</code> <code>Persistent</code>. | |
444 | * Field description: | |
445 | * Order postcode | |
446 | * | |
447 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
448 | * @throws AccessPoemException | |
449 | * if the current <code>AccessToken</code> | |
450 | * does not confer write access rights | |
451 | * @return the value of the field <code>Postcode</code> for this | |
452 | * <code>User</code> <code>Persistent</code> | |
453 | */ | |
454 | ||
455 | public String getPostcode() | |
456 | throws AccessPoemException { | |
457 | 0 | readLock(); |
458 | 0 | return getPostcode_unsafe(); |
459 | } | |
460 | ||
461 | ||
462 | /** | |
463 | * Sets the <code>Postcode</code> value, with checking, for this | |
464 | * <code>User</code> <code>Persistent</code>. | |
465 | * Field description: | |
466 | * Order postcode | |
467 | * | |
468 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
469 | * @param cooked a validated <code>int</code> | |
470 | * @throws AccessPoemException | |
471 | * if the current <code>AccessToken</code> | |
472 | * does not confer write access rights | |
473 | * @throws ValidationPoemException | |
474 | * if the value is not valid | |
475 | */ | |
476 | public void setPostcode(String cooked) | |
477 | throws AccessPoemException, ValidationPoemException { | |
478 | 0 | _getUserTable().getPostcodeColumn(). |
479 | getType().assertValidCooked(cooked); | |
480 | 0 | writeLock(); |
481 | 0 | setPostcode_unsafe(cooked); |
482 | 0 | } |
483 | ||
484 | ||
485 | /** | |
486 | * Retrieves the <code>Postcode</code> value as a <code>Field</code> | |
487 | * from this <code>User</code> <code>Persistent</code>. | |
488 | * | |
489 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
490 | * @throws AccessPoemException | |
491 | * if the current <code>AccessToken</code> | |
492 | * does not confer write access rights | |
493 | * @return the String postcode | |
494 | */ | |
495 | public Field getPostcodeField() throws AccessPoemException { | |
496 | 0 | Column c = _getUserTable().getPostcodeColumn(); |
497 | 0 | return new Field(c.getRaw(this), c); |
498 | } | |
499 | ||
500 | ||
501 | /** | |
502 | * Retrieves the <code>Country</code> value, without locking, | |
503 | * for this <code>User</code> <code>Persistent</code>. | |
504 | * | |
505 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
506 | * @return the String country | |
507 | */ | |
508 | public String getCountry_unsafe() { | |
509 | 22 | return country; |
510 | } | |
511 | ||
512 | ||
513 | /** | |
514 | * Sets the <code>Country</code> value directly, without checking, | |
515 | * for this User <code>Persistent</code>. | |
516 | * | |
517 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
518 | * @param cooked the pre-validated value to set | |
519 | */ | |
520 | public void setCountry_unsafe(String cooked) { | |
521 | 0 | country = cooked; |
522 | 0 | } |
523 | ||
524 | /** | |
525 | * Retrieves the Country value, with locking, for this | |
526 | * <code>User</code> <code>Persistent</code>. | |
527 | * | |
528 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
529 | * @throws AccessPoemException | |
530 | * if the current <code>AccessToken</code> | |
531 | * does not confer write access rights | |
532 | * @return the value of the field <code>Country</code> for this | |
533 | * <code>User</code> <code>Persistent</code> | |
534 | */ | |
535 | ||
536 | public String getCountry() | |
537 | throws AccessPoemException { | |
538 | 0 | readLock(); |
539 | 0 | return getCountry_unsafe(); |
540 | } | |
541 | ||
542 | ||
543 | /** | |
544 | * Sets the <code>Country</code> value, with checking, for this | |
545 | * <code>User</code> <code>Persistent</code>. | |
546 | * | |
547 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
548 | * @param cooked a validated <code>int</code> | |
549 | * @throws AccessPoemException | |
550 | * if the current <code>AccessToken</code> | |
551 | * does not confer write access rights | |
552 | * @throws ValidationPoemException | |
553 | * if the value is not valid | |
554 | */ | |
555 | public void setCountry(String cooked) | |
556 | throws AccessPoemException, ValidationPoemException { | |
557 | 0 | _getUserTable().getCountryColumn(). |
558 | getType().assertValidCooked(cooked); | |
559 | 0 | writeLock(); |
560 | 0 | setCountry_unsafe(cooked); |
561 | 0 | } |
562 | ||
563 | ||
564 | /** | |
565 | * Retrieves the <code>Country</code> value as a <code>Field</code> | |
566 | * from this <code>User</code> <code>Persistent</code>. | |
567 | * | |
568 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
569 | * @throws AccessPoemException | |
570 | * if the current <code>AccessToken</code> | |
571 | * does not confer write access rights | |
572 | * @return the String country | |
573 | */ | |
574 | public Field getCountryField() throws AccessPoemException { | |
575 | 0 | Column c = _getUserTable().getCountryColumn(); |
576 | 0 | return new Field(c.getRaw(this), c); |
577 | } | |
578 | ||
579 | ||
580 | /** | |
581 | * Retrieves the <code>Tel</code> value, without locking, | |
582 | * for this <code>User</code> <code>Persistent</code>. | |
583 | * | |
584 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
585 | * @return the String tel | |
586 | */ | |
587 | public String getTel_unsafe() { | |
588 | 22 | return tel; |
589 | } | |
590 | ||
591 | ||
592 | /** | |
593 | * Sets the <code>Tel</code> value directly, without checking, | |
594 | * for this User <code>Persistent</code>. | |
595 | * | |
596 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
597 | * @param cooked the pre-validated value to set | |
598 | */ | |
599 | public void setTel_unsafe(String cooked) { | |
600 | 0 | tel = cooked; |
601 | 0 | } |
602 | ||
603 | /** | |
604 | * Retrieves the Tel value, with locking, for this | |
605 | * <code>User</code> <code>Persistent</code>. | |
606 | * Field description: | |
607 | * User's telephone number | |
608 | * | |
609 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
610 | * @throws AccessPoemException | |
611 | * if the current <code>AccessToken</code> | |
612 | * does not confer write access rights | |
613 | * @return the value of the field <code>Tel</code> for this | |
614 | * <code>User</code> <code>Persistent</code> | |
615 | */ | |
616 | ||
617 | public String getTel() | |
618 | throws AccessPoemException { | |
619 | 0 | readLock(); |
620 | 0 | return getTel_unsafe(); |
621 | } | |
622 | ||
623 | ||
624 | /** | |
625 | * Sets the <code>Tel</code> value, with checking, for this | |
626 | * <code>User</code> <code>Persistent</code>. | |
627 | * Field description: | |
628 | * User's telephone number | |
629 | * | |
630 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
631 | * @param cooked a validated <code>int</code> | |
632 | * @throws AccessPoemException | |
633 | * if the current <code>AccessToken</code> | |
634 | * does not confer write access rights | |
635 | * @throws ValidationPoemException | |
636 | * if the value is not valid | |
637 | */ | |
638 | public void setTel(String cooked) | |
639 | throws AccessPoemException, ValidationPoemException { | |
640 | 0 | _getUserTable().getTelColumn(). |
641 | getType().assertValidCooked(cooked); | |
642 | 0 | writeLock(); |
643 | 0 | setTel_unsafe(cooked); |
644 | 0 | } |
645 | ||
646 | ||
647 | /** | |
648 | * Retrieves the <code>Tel</code> value as a <code>Field</code> | |
649 | * from this <code>User</code> <code>Persistent</code>. | |
650 | * | |
651 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
652 | * @throws AccessPoemException | |
653 | * if the current <code>AccessToken</code> | |
654 | * does not confer write access rights | |
655 | * @return the String tel | |
656 | */ | |
657 | public Field getTelField() throws AccessPoemException { | |
658 | 0 | Column c = _getUserTable().getTelColumn(); |
659 | 0 | return new Field(c.getRaw(this), c); |
660 | } | |
661 | ||
662 | ||
663 | /** | |
664 | * Retrieves the <code>Fax</code> value, without locking, | |
665 | * for this <code>User</code> <code>Persistent</code>. | |
666 | * | |
667 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
668 | * @return the String fax | |
669 | */ | |
670 | public String getFax_unsafe() { | |
671 | 22 | return fax; |
672 | } | |
673 | ||
674 | ||
675 | /** | |
676 | * Sets the <code>Fax</code> value directly, without checking, | |
677 | * for this User <code>Persistent</code>. | |
678 | * | |
679 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
680 | * @param cooked the pre-validated value to set | |
681 | */ | |
682 | public void setFax_unsafe(String cooked) { | |
683 | 0 | fax = cooked; |
684 | 0 | } |
685 | ||
686 | /** | |
687 | * Retrieves the Fax value, with locking, for this | |
688 | * <code>User</code> <code>Persistent</code>. | |
689 | * Field description: | |
690 | * User's fax number | |
691 | * | |
692 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
693 | * @throws AccessPoemException | |
694 | * if the current <code>AccessToken</code> | |
695 | * does not confer write access rights | |
696 | * @return the value of the field <code>Fax</code> for this | |
697 | * <code>User</code> <code>Persistent</code> | |
698 | */ | |
699 | ||
700 | public String getFax() | |
701 | throws AccessPoemException { | |
702 | 0 | readLock(); |
703 | 0 | return getFax_unsafe(); |
704 | } | |
705 | ||
706 | ||
707 | /** | |
708 | * Sets the <code>Fax</code> value, with checking, for this | |
709 | * <code>User</code> <code>Persistent</code>. | |
710 | * Field description: | |
711 | * User's fax number | |
712 | * | |
713 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
714 | * @param cooked a validated <code>int</code> | |
715 | * @throws AccessPoemException | |
716 | * if the current <code>AccessToken</code> | |
717 | * does not confer write access rights | |
718 | * @throws ValidationPoemException | |
719 | * if the value is not valid | |
720 | */ | |
721 | public void setFax(String cooked) | |
722 | throws AccessPoemException, ValidationPoemException { | |
723 | 0 | _getUserTable().getFaxColumn(). |
724 | getType().assertValidCooked(cooked); | |
725 | 0 | writeLock(); |
726 | 0 | setFax_unsafe(cooked); |
727 | 0 | } |
728 | ||
729 | ||
730 | /** | |
731 | * Retrieves the <code>Fax</code> value as a <code>Field</code> | |
732 | * from this <code>User</code> <code>Persistent</code>. | |
733 | * | |
734 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
735 | * @throws AccessPoemException | |
736 | * if the current <code>AccessToken</code> | |
737 | * does not confer write access rights | |
738 | * @return the String fax | |
739 | */ | |
740 | public Field getFaxField() throws AccessPoemException { | |
741 | 0 | Column c = _getUserTable().getFaxColumn(); |
742 | 0 | return new Field(c.getRaw(this), c); |
743 | } | |
744 | ||
745 | ||
746 | /** | |
747 | * Retrieves the <code>Mobile</code> value, without locking, | |
748 | * for this <code>User</code> <code>Persistent</code>. | |
749 | * | |
750 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
751 | * @return the String mobile | |
752 | */ | |
753 | public String getMobile_unsafe() { | |
754 | 22 | return mobile; |
755 | } | |
756 | ||
757 | ||
758 | /** | |
759 | * Sets the <code>Mobile</code> value directly, without checking, | |
760 | * for this User <code>Persistent</code>. | |
761 | * | |
762 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
763 | * @param cooked the pre-validated value to set | |
764 | */ | |
765 | public void setMobile_unsafe(String cooked) { | |
766 | 0 | mobile = cooked; |
767 | 0 | } |
768 | ||
769 | /** | |
770 | * Retrieves the Mobile value, with locking, for this | |
771 | * <code>User</code> <code>Persistent</code>. | |
772 | * Field description: | |
773 | * User's mobile number | |
774 | * | |
775 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
776 | * @throws AccessPoemException | |
777 | * if the current <code>AccessToken</code> | |
778 | * does not confer write access rights | |
779 | * @return the value of the field <code>Mobile</code> for this | |
780 | * <code>User</code> <code>Persistent</code> | |
781 | */ | |
782 | ||
783 | public String getMobile() | |
784 | throws AccessPoemException { | |
785 | 0 | readLock(); |
786 | 0 | return getMobile_unsafe(); |
787 | } | |
788 | ||
789 | ||
790 | /** | |
791 | * Sets the <code>Mobile</code> value, with checking, for this | |
792 | * <code>User</code> <code>Persistent</code>. | |
793 | * Field description: | |
794 | * User's mobile number | |
795 | * | |
796 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
797 | * @param cooked a validated <code>int</code> | |
798 | * @throws AccessPoemException | |
799 | * if the current <code>AccessToken</code> | |
800 | * does not confer write access rights | |
801 | * @throws ValidationPoemException | |
802 | * if the value is not valid | |
803 | */ | |
804 | public void setMobile(String cooked) | |
805 | throws AccessPoemException, ValidationPoemException { | |
806 | 0 | _getUserTable().getMobileColumn(). |
807 | getType().assertValidCooked(cooked); | |
808 | 0 | writeLock(); |
809 | 0 | setMobile_unsafe(cooked); |
810 | 0 | } |
811 | ||
812 | ||
813 | /** | |
814 | * Retrieves the <code>Mobile</code> value as a <code>Field</code> | |
815 | * from this <code>User</code> <code>Persistent</code>. | |
816 | * | |
817 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
818 | * @throws AccessPoemException | |
819 | * if the current <code>AccessToken</code> | |
820 | * does not confer write access rights | |
821 | * @return the String mobile | |
822 | */ | |
823 | public Field getMobileField() throws AccessPoemException { | |
824 | 0 | Column c = _getUserTable().getMobileColumn(); |
825 | 0 | return new Field(c.getRaw(this), c); |
826 | } | |
827 | ||
828 | ||
829 | /** | |
830 | * Retrieves the <code>News</code> value, without locking, | |
831 | * for this <code>User</code> <code>Persistent</code>. | |
832 | * | |
833 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
834 | * @return the Boolean news | |
835 | */ | |
836 | public Boolean getNews_unsafe() { | |
837 | 22 | return news; |
838 | } | |
839 | ||
840 | ||
841 | /** | |
842 | * Sets the <code>News</code> value directly, without checking, | |
843 | * for this User <code>Persistent</code>. | |
844 | * | |
845 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
846 | * @param cooked the pre-validated value to set | |
847 | */ | |
848 | public void setNews_unsafe(Boolean cooked) { | |
849 | 12 | news = cooked; |
850 | 12 | } |
851 | ||
852 | /** | |
853 | * Retrieves the News value, with locking, for this | |
854 | * <code>User</code> <code>Persistent</code>. | |
855 | * Field description: | |
856 | * Does the user want to receive the email newsletter? | |
857 | * | |
858 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
859 | * @throws AccessPoemException | |
860 | * if the current <code>AccessToken</code> | |
861 | * does not confer write access rights | |
862 | * @return the value of the field <code>News</code> for this | |
863 | * <code>User</code> <code>Persistent</code> | |
864 | */ | |
865 | ||
866 | public Boolean getNews() | |
867 | throws AccessPoemException { | |
868 | 0 | readLock(); |
869 | 0 | return getNews_unsafe(); |
870 | } | |
871 | ||
872 | ||
873 | /** | |
874 | * Sets the <code>News</code> value, with checking, for this | |
875 | * <code>User</code> <code>Persistent</code>. | |
876 | * Field description: | |
877 | * Does the user want to receive the email newsletter? | |
878 | * | |
879 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
880 | * @param cooked a validated <code>int</code> | |
881 | * @throws AccessPoemException | |
882 | * if the current <code>AccessToken</code> | |
883 | * does not confer write access rights | |
884 | * @throws ValidationPoemException | |
885 | * if the value is not valid | |
886 | */ | |
887 | public void setNews(Boolean cooked) | |
888 | throws AccessPoemException, ValidationPoemException { | |
889 | 0 | _getUserTable().getNewsColumn(). |
890 | getType().assertValidCooked(cooked); | |
891 | 0 | writeLock(); |
892 | 0 | setNews_unsafe(cooked); |
893 | 0 | } |
894 | ||
895 | /** | |
896 | * Sets the <code>News</code> value, with checking, | |
897 | * from a <code>boolean</code>, for this | |
898 | * <code>User</code> <code>Persistent</code>. | |
899 | * Field description: | |
900 | * Does the user want to receive the email newsletter? | |
901 | * | |
902 | * | |
903 | * @generator org.melati.poem.prepro.BooleanFieldDef#generateBaseMethods | |
904 | * @param cooked a <code>boolean</code> | |
905 | * @throws AccessPoemException | |
906 | * if the current <code>AccessToken</code> | |
907 | * does not confer write access rights | |
908 | * @throws ValidationPoemException | |
909 | * if the value is not valid | |
910 | */ | |
911 | ||
912 | public final void setNews(boolean cooked) | |
913 | throws AccessPoemException, ValidationPoemException { | |
914 | 0 | setNews(cooked ? Boolean.TRUE : Boolean.FALSE); |
915 | 0 | } |
916 | ||
917 | ||
918 | /** | |
919 | * Retrieves the <code>News</code> value as a <code>Field</code> | |
920 | * from this <code>User</code> <code>Persistent</code>. | |
921 | * | |
922 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
923 | * @throws AccessPoemException | |
924 | * if the current <code>AccessToken</code> | |
925 | * does not confer write access rights | |
926 | * @return the Boolean news | |
927 | */ | |
928 | public Field getNewsField() throws AccessPoemException { | |
929 | 0 | Column c = _getUserTable().getNewsColumn(); |
930 | 0 | return new Field(c.getRaw(this), c); |
931 | } | |
932 | } | |
933 |