Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ShopOrderBase |
|
| 1.0112359550561798;1.011 |
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 java.sql.Timestamp; | |
7 | import org.melati.poem.AccessPoemException; | |
8 | import org.melati.poem.Column; | |
9 | import org.melati.poem.Field; | |
10 | import org.melati.poem.JdbcPersistent; | |
11 | import org.melati.poem.NoSuchRowPoemException; | |
12 | import org.melati.poem.ValidationPoemException; | |
13 | import org.paneris.rimauresq.model.RimauresqDatabaseTables; | |
14 | import org.paneris.rimauresq.model.ShopOrderTable; | |
15 | import org.paneris.rimauresq.model.User; | |
16 | ||
17 | ||
18 | /** | |
19 | * Melati POEM generated abstract base class for a <code>Persistent</code> | |
20 | * <code>ShopOrder</code> Object. | |
21 | * | |
22 | * @generator org.melati.poem.prepro.TableDef#generatePersistentBaseJava | |
23 | */ | |
24 | 0 | public abstract class ShopOrderBase extends JdbcPersistent { |
25 | ||
26 | ||
27 | /** | |
28 | * Retrieves the Database object. | |
29 | * | |
30 | * @generator org.melati.poem.prepro.TableDef#generatePersistentBaseJava | |
31 | * @return the database | |
32 | */ | |
33 | public RimauresqDatabaseTables getRimauresqDatabaseTables() { | |
34 | 0 | return (RimauresqDatabaseTables)getDatabase(); |
35 | } | |
36 | ||
37 | ||
38 | /** | |
39 | * Retrieves the <code>ShopOrderTable</code> table | |
40 | * which this <code>Persistent</code> is from. | |
41 | * | |
42 | * @generator org.melati.poem.prepro.TableDef#generatePersistentBaseJava | |
43 | * @return the ShopOrderTable | |
44 | */ | |
45 | public ShopOrderTable getShopOrderTable() { | |
46 | 0 | return (ShopOrderTable)getTable(); |
47 | } | |
48 | ||
49 | private ShopOrderTable _getShopOrderTable() { | |
50 | 0 | return (ShopOrderTable)getTable(); |
51 | } | |
52 | ||
53 | // Fields in this table | |
54 | /** | |
55 | * id | |
56 | */ | |
57 | protected Integer id; | |
58 | /** | |
59 | * User - The Customer | |
60 | */ | |
61 | protected Integer user; | |
62 | /** | |
63 | * Date - The date that this order was placed (leave blank to autocomplete) | |
64 | */ | |
65 | protected Timestamp date; | |
66 | /** | |
67 | * Comment - Commends by the customer reguarding this order | |
68 | */ | |
69 | protected String customerComment; | |
70 | /** | |
71 | * Message - A message to be included with this order | |
72 | */ | |
73 | protected String message; | |
74 | /** | |
75 | * Total Amount (in GBP) - The total amount of the order (in GBP) | |
76 | */ | |
77 | protected Double amount; | |
78 | /** | |
79 | * Total Delivery (in GBP) - The total delivery charge for the order (in | |
80 | * GBP) | |
81 | */ | |
82 | protected Double delivery; | |
83 | /** | |
84 | * Full name - The user's real name | |
85 | */ | |
86 | protected String name; | |
87 | /** | |
88 | * Delivery name - The name of the persone to whom we are delivering | |
89 | */ | |
90 | protected String deliveryName; | |
91 | /** | |
92 | * email - email | |
93 | */ | |
94 | protected String email; | |
95 | /** | |
96 | * Address | |
97 | */ | |
98 | protected String address; | |
99 | /** | |
100 | * Town / City | |
101 | */ | |
102 | protected String town; | |
103 | /** | |
104 | * Telephone - Order telephone number | |
105 | */ | |
106 | protected String tel; | |
107 | /** | |
108 | * Postcode - Order postcode | |
109 | */ | |
110 | protected String postcode; | |
111 | /** | |
112 | * Country | |
113 | */ | |
114 | protected String country; | |
115 | /** | |
116 | * Want Spam? - Does the user want to receive spam email? | |
117 | */ | |
118 | protected Boolean spam; | |
119 | ||
120 | ||
121 | /** | |
122 | * Retrieves the <code>Id</code> value, without locking, | |
123 | * for this <code>ShopOrder</code> <code>Persistent</code>. | |
124 | * | |
125 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
126 | * @return the Integer id | |
127 | */ | |
128 | public Integer getId_unsafe() { | |
129 | 0 | return id; |
130 | } | |
131 | ||
132 | ||
133 | /** | |
134 | * Sets the <code>Id</code> value directly, without checking, | |
135 | * for this ShopOrder <code>Persistent</code>. | |
136 | * | |
137 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
138 | * @param cooked the pre-validated value to set | |
139 | */ | |
140 | public void setId_unsafe(Integer cooked) { | |
141 | 0 | id = cooked; |
142 | 0 | } |
143 | ||
144 | /** | |
145 | * Retrieves the Id value, with locking, for this | |
146 | * <code>ShopOrder</code> <code>Persistent</code>. | |
147 | * | |
148 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
149 | * @throws AccessPoemException | |
150 | * if the current <code>AccessToken</code> | |
151 | * does not confer write access rights | |
152 | * @return the value of the field <code>Id</code> for this | |
153 | * <code>ShopOrder</code> <code>Persistent</code> | |
154 | */ | |
155 | ||
156 | public Integer getId() | |
157 | throws AccessPoemException { | |
158 | 0 | readLock(); |
159 | 0 | return getId_unsafe(); |
160 | } | |
161 | ||
162 | ||
163 | /** | |
164 | * Sets the <code>Id</code> value, with checking, for this | |
165 | * <code>ShopOrder</code> <code>Persistent</code>. | |
166 | * | |
167 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
168 | * @param cooked a validated <code>int</code> | |
169 | * @throws AccessPoemException | |
170 | * if the current <code>AccessToken</code> | |
171 | * does not confer write access rights | |
172 | * @throws ValidationPoemException | |
173 | * if the value is not valid | |
174 | */ | |
175 | public void setId(Integer cooked) | |
176 | throws AccessPoemException, ValidationPoemException { | |
177 | 0 | _getShopOrderTable().getIdColumn(). |
178 | getType().assertValidCooked(cooked); | |
179 | 0 | writeLock(); |
180 | 0 | setId_unsafe(cooked); |
181 | 0 | } |
182 | ||
183 | /** | |
184 | * Sets the <code>Id</code> value, with checking, for this | |
185 | * <code>ShopOrder</code> <code>Persistent</code>. | |
186 | * | |
187 | * @generator org.melati.poem.prepro.IntegerFieldDef#generateBaseMethods | |
188 | * @param cooked a validated <code>int</code> | |
189 | * @throws AccessPoemException | |
190 | * if the current <code>AccessToken</code> | |
191 | * does not confer write access rights | |
192 | * @throws ValidationPoemException | |
193 | * if the value is not valid | |
194 | */ | |
195 | ||
196 | public final void setId(int cooked) | |
197 | throws AccessPoemException, ValidationPoemException { | |
198 | 0 | setId(new Integer(cooked)); |
199 | 0 | } |
200 | ||
201 | ||
202 | /** | |
203 | * Retrieves the <code>Id</code> value as a <code>Field</code> | |
204 | * from this <code>ShopOrder</code> <code>Persistent</code>. | |
205 | * | |
206 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
207 | * @throws AccessPoemException | |
208 | * if the current <code>AccessToken</code> | |
209 | * does not confer write access rights | |
210 | * @return the Integer id | |
211 | */ | |
212 | public Field getIdField() throws AccessPoemException { | |
213 | 0 | Column c = _getShopOrderTable().getIdColumn(); |
214 | 0 | return new Field(c.getRaw(this), c); |
215 | } | |
216 | ||
217 | ||
218 | /** | |
219 | * Retrieves the <code>User</code> value, without locking, | |
220 | * for this <code>ShopOrder</code> <code>Persistent</code>. | |
221 | * | |
222 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
223 | * @return the Integer user | |
224 | */ | |
225 | public Integer getUser_unsafe() { | |
226 | 0 | return user; |
227 | } | |
228 | ||
229 | ||
230 | /** | |
231 | * Sets the <code>User</code> value directly, without checking, | |
232 | * for this ShopOrder <code>Persistent</code>. | |
233 | * | |
234 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
235 | * @param cooked the pre-validated value to set | |
236 | */ | |
237 | public void setUser_unsafe(Integer cooked) { | |
238 | 0 | user = cooked; |
239 | 0 | } |
240 | ||
241 | /** | |
242 | * Retrieves the Table Row Object ID. | |
243 | * | |
244 | * @generator org.melati.poem.prepro.ReferenceFieldDef#generateBaseMethods | |
245 | * @throws AccessPoemException | |
246 | * if the current <code>AccessToken</code> | |
247 | * does not confer read access rights | |
248 | * @return the TROID as an <code>Integer</code> | |
249 | */ | |
250 | ||
251 | public Integer getUserTroid() | |
252 | throws AccessPoemException { | |
253 | 0 | readLock(); |
254 | 0 | return getUser_unsafe(); |
255 | } | |
256 | ||
257 | ||
258 | /** | |
259 | * Sets the Table Row Object ID. | |
260 | * | |
261 | * @generator org.melati.poem.prepro.ReferenceFieldDef#generateBaseMethods | |
262 | * @param raw a Table Row Object Id | |
263 | * @throws AccessPoemException | |
264 | * if the current <code>AccessToken</code> | |
265 | * does not confer write access rights | |
266 | */ | |
267 | public void setUserTroid(Integer raw) | |
268 | throws AccessPoemException { | |
269 | 0 | setUser(raw == null ? null : |
270 | (User)getRimauresqDatabaseTables().getUserTable().getUserObject(raw)); | |
271 | 0 | } |
272 | ||
273 | ||
274 | /** | |
275 | * Retrieves the <code>User</code> object referred to. | |
276 | * | |
277 | * @generator org.melati.poem.prepro.ReferenceFieldDef#generateBaseMethods | |
278 | * @throws AccessPoemException | |
279 | * if the current <code>AccessToken</code> | |
280 | * does not confer read access rights | |
281 | * @throws NoSuchRowPoemException | |
282 | * if the <code>Persistent</code> has yet to be allocated a TROID | |
283 | * @return the <code>User</code> as a <code>User</code> | |
284 | */ | |
285 | public User getUser() | |
286 | throws AccessPoemException, NoSuchRowPoemException { | |
287 | 0 | Integer troid = getUserTroid(); |
288 | 0 | return troid == null ? null : |
289 | (User)getRimauresqDatabaseTables().getUserTable().getUserObject(troid); | |
290 | } | |
291 | ||
292 | ||
293 | /** | |
294 | * Set the User. | |
295 | * | |
296 | * @generator org.melati.poem.prepro.ReferenceFieldDef#generateBaseMethods | |
297 | * @param cooked a validated <code>User</code> | |
298 | * @throws AccessPoemException | |
299 | * if the current <code>AccessToken</code> | |
300 | * does not confer write access rights | |
301 | */ | |
302 | public void setUser(User cooked) | |
303 | throws AccessPoemException { | |
304 | 0 | _getShopOrderTable(). |
305 | getUserColumn(). | |
306 | getType().assertValidCooked(cooked); | |
307 | 0 | writeLock(); |
308 | 0 | if (cooked == null) |
309 | 0 | setUser_unsafe(null); |
310 | else { | |
311 | 0 | cooked.existenceLock(); |
312 | 0 | setUser_unsafe(cooked.troid()); |
313 | } | |
314 | 0 | } |
315 | ||
316 | ||
317 | /** | |
318 | * Retrieves the <code>User</code> value as a <code>Field</code> | |
319 | * from this <code>ShopOrder</code> <code>Persistent</code>. | |
320 | * | |
321 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
322 | * @throws AccessPoemException | |
323 | * if the current <code>AccessToken</code> | |
324 | * does not confer write access rights | |
325 | * @return the Integer user | |
326 | */ | |
327 | public Field getUserField() throws AccessPoemException { | |
328 | 0 | Column c = _getShopOrderTable().getUserColumn(); |
329 | 0 | return new Field(c.getRaw(this), c); |
330 | } | |
331 | ||
332 | ||
333 | /** | |
334 | * Retrieves the <code>Date</code> value, without locking, | |
335 | * for this <code>ShopOrder</code> <code>Persistent</code>. | |
336 | * | |
337 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
338 | * @return the Timestamp date | |
339 | */ | |
340 | public Timestamp getDate_unsafe() { | |
341 | 0 | return date; |
342 | } | |
343 | ||
344 | ||
345 | /** | |
346 | * Sets the <code>Date</code> value directly, without checking, | |
347 | * for this ShopOrder <code>Persistent</code>. | |
348 | * | |
349 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
350 | * @param cooked the pre-validated value to set | |
351 | */ | |
352 | public void setDate_unsafe(Timestamp cooked) { | |
353 | 0 | date = cooked; |
354 | 0 | } |
355 | ||
356 | /** | |
357 | * Retrieves the Date value, with locking, for this | |
358 | * <code>ShopOrder</code> <code>Persistent</code>. | |
359 | * Field description: | |
360 | * The date that this order was placed (leave blank to autocomplete) | |
361 | * | |
362 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
363 | * @throws AccessPoemException | |
364 | * if the current <code>AccessToken</code> | |
365 | * does not confer write access rights | |
366 | * @return the value of the field <code>Date</code> for this | |
367 | * <code>ShopOrder</code> <code>Persistent</code> | |
368 | */ | |
369 | ||
370 | public Timestamp getDate() | |
371 | throws AccessPoemException { | |
372 | 0 | readLock(); |
373 | 0 | return getDate_unsafe(); |
374 | } | |
375 | ||
376 | ||
377 | /** | |
378 | * Sets the <code>Date</code> value, with checking, for this | |
379 | * <code>ShopOrder</code> <code>Persistent</code>. | |
380 | * Field description: | |
381 | * The date that this order was placed (leave blank to autocomplete) | |
382 | * | |
383 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
384 | * @param cooked a validated <code>int</code> | |
385 | * @throws AccessPoemException | |
386 | * if the current <code>AccessToken</code> | |
387 | * does not confer write access rights | |
388 | * @throws ValidationPoemException | |
389 | * if the value is not valid | |
390 | */ | |
391 | public void setDate(Timestamp cooked) | |
392 | throws AccessPoemException, ValidationPoemException { | |
393 | 0 | _getShopOrderTable().getDateColumn(). |
394 | getType().assertValidCooked(cooked); | |
395 | 0 | writeLock(); |
396 | 0 | setDate_unsafe(cooked); |
397 | 0 | } |
398 | ||
399 | ||
400 | /** | |
401 | * Retrieves the <code>Date</code> value as a <code>Field</code> | |
402 | * from this <code>ShopOrder</code> <code>Persistent</code>. | |
403 | * | |
404 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
405 | * @throws AccessPoemException | |
406 | * if the current <code>AccessToken</code> | |
407 | * does not confer write access rights | |
408 | * @return the Timestamp date | |
409 | */ | |
410 | public Field getDateField() throws AccessPoemException { | |
411 | 0 | Column c = _getShopOrderTable().getDateColumn(); |
412 | 0 | return new Field(c.getRaw(this), c); |
413 | } | |
414 | ||
415 | ||
416 | /** | |
417 | * Retrieves the <code>CustomerComment</code> value, without locking, | |
418 | * for this <code>ShopOrder</code> <code>Persistent</code>. | |
419 | * | |
420 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
421 | * @return the String customerComment | |
422 | */ | |
423 | public String getCustomerComment_unsafe() { | |
424 | 0 | return customerComment; |
425 | } | |
426 | ||
427 | ||
428 | /** | |
429 | * Sets the <code>CustomerComment</code> value directly, without checking, | |
430 | * for this ShopOrder <code>Persistent</code>. | |
431 | * | |
432 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
433 | * @param cooked the pre-validated value to set | |
434 | */ | |
435 | public void setCustomerComment_unsafe(String cooked) { | |
436 | 0 | customerComment = cooked; |
437 | 0 | } |
438 | ||
439 | /** | |
440 | * Retrieves the CustomerComment value, with locking, for this | |
441 | * <code>ShopOrder</code> <code>Persistent</code>. | |
442 | * Field description: | |
443 | * Commends by the customer reguarding this order | |
444 | * | |
445 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
446 | * @throws AccessPoemException | |
447 | * if the current <code>AccessToken</code> | |
448 | * does not confer write access rights | |
449 | * @return the value of the field <code>CustomerComment</code> for this | |
450 | * <code>ShopOrder</code> <code>Persistent</code> | |
451 | */ | |
452 | ||
453 | public String getCustomerComment() | |
454 | throws AccessPoemException { | |
455 | 0 | readLock(); |
456 | 0 | return getCustomerComment_unsafe(); |
457 | } | |
458 | ||
459 | ||
460 | /** | |
461 | * Sets the <code>CustomerComment</code> value, with checking, for this | |
462 | * <code>ShopOrder</code> <code>Persistent</code>. | |
463 | * Field description: | |
464 | * Commends by the customer reguarding this order | |
465 | * | |
466 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
467 | * @param cooked a validated <code>int</code> | |
468 | * @throws AccessPoemException | |
469 | * if the current <code>AccessToken</code> | |
470 | * does not confer write access rights | |
471 | * @throws ValidationPoemException | |
472 | * if the value is not valid | |
473 | */ | |
474 | public void setCustomerComment(String cooked) | |
475 | throws AccessPoemException, ValidationPoemException { | |
476 | 0 | _getShopOrderTable().getCustomerCommentColumn(). |
477 | getType().assertValidCooked(cooked); | |
478 | 0 | writeLock(); |
479 | 0 | setCustomerComment_unsafe(cooked); |
480 | 0 | } |
481 | ||
482 | ||
483 | /** | |
484 | * Retrieves the <code>CustomerComment</code> value as a <code>Field</code> | |
485 | * from this <code>ShopOrder</code> <code>Persistent</code>. | |
486 | * | |
487 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
488 | * @throws AccessPoemException | |
489 | * if the current <code>AccessToken</code> | |
490 | * does not confer write access rights | |
491 | * @return the String customerComment | |
492 | */ | |
493 | public Field getCustomerCommentField() throws AccessPoemException { | |
494 | 0 | Column c = _getShopOrderTable().getCustomerCommentColumn(); |
495 | 0 | return new Field(c.getRaw(this), c); |
496 | } | |
497 | ||
498 | ||
499 | /** | |
500 | * Retrieves the <code>Message</code> value, without locking, | |
501 | * for this <code>ShopOrder</code> <code>Persistent</code>. | |
502 | * | |
503 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
504 | * @return the String message | |
505 | */ | |
506 | public String getMessage_unsafe() { | |
507 | 0 | return message; |
508 | } | |
509 | ||
510 | ||
511 | /** | |
512 | * Sets the <code>Message</code> value directly, without checking, | |
513 | * for this ShopOrder <code>Persistent</code>. | |
514 | * | |
515 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
516 | * @param cooked the pre-validated value to set | |
517 | */ | |
518 | public void setMessage_unsafe(String cooked) { | |
519 | 0 | message = cooked; |
520 | 0 | } |
521 | ||
522 | /** | |
523 | * Retrieves the Message value, with locking, for this | |
524 | * <code>ShopOrder</code> <code>Persistent</code>. | |
525 | * Field description: | |
526 | * A message to be included with this order | |
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>Message</code> for this | |
533 | * <code>ShopOrder</code> <code>Persistent</code> | |
534 | */ | |
535 | ||
536 | public String getMessage() | |
537 | throws AccessPoemException { | |
538 | 0 | readLock(); |
539 | 0 | return getMessage_unsafe(); |
540 | } | |
541 | ||
542 | ||
543 | /** | |
544 | * Sets the <code>Message</code> value, with checking, for this | |
545 | * <code>ShopOrder</code> <code>Persistent</code>. | |
546 | * Field description: | |
547 | * A message to be included with this order | |
548 | * | |
549 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
550 | * @param cooked a validated <code>int</code> | |
551 | * @throws AccessPoemException | |
552 | * if the current <code>AccessToken</code> | |
553 | * does not confer write access rights | |
554 | * @throws ValidationPoemException | |
555 | * if the value is not valid | |
556 | */ | |
557 | public void setMessage(String cooked) | |
558 | throws AccessPoemException, ValidationPoemException { | |
559 | 0 | _getShopOrderTable().getMessageColumn(). |
560 | getType().assertValidCooked(cooked); | |
561 | 0 | writeLock(); |
562 | 0 | setMessage_unsafe(cooked); |
563 | 0 | } |
564 | ||
565 | ||
566 | /** | |
567 | * Retrieves the <code>Message</code> value as a <code>Field</code> | |
568 | * from this <code>ShopOrder</code> <code>Persistent</code>. | |
569 | * | |
570 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
571 | * @throws AccessPoemException | |
572 | * if the current <code>AccessToken</code> | |
573 | * does not confer write access rights | |
574 | * @return the String message | |
575 | */ | |
576 | public Field getMessageField() throws AccessPoemException { | |
577 | 0 | Column c = _getShopOrderTable().getMessageColumn(); |
578 | 0 | return new Field(c.getRaw(this), c); |
579 | } | |
580 | ||
581 | ||
582 | /** | |
583 | * Retrieves the <code>Amount</code> value, without locking, | |
584 | * for this <code>ShopOrder</code> <code>Persistent</code>. | |
585 | * | |
586 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
587 | * @return the Double amount | |
588 | */ | |
589 | public Double getAmount_unsafe() { | |
590 | 0 | return amount; |
591 | } | |
592 | ||
593 | ||
594 | /** | |
595 | * Sets the <code>Amount</code> value directly, without checking, | |
596 | * for this ShopOrder <code>Persistent</code>. | |
597 | * | |
598 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
599 | * @param cooked the pre-validated value to set | |
600 | */ | |
601 | public void setAmount_unsafe(Double cooked) { | |
602 | 0 | amount = cooked; |
603 | 0 | } |
604 | ||
605 | /** | |
606 | * Retrieves the Amount value, with locking, for this | |
607 | * <code>ShopOrder</code> <code>Persistent</code>. | |
608 | * Field description: | |
609 | * The total amount of the order (in GBP) | |
610 | * | |
611 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
612 | * @throws AccessPoemException | |
613 | * if the current <code>AccessToken</code> | |
614 | * does not confer write access rights | |
615 | * @return the value of the field <code>Amount</code> for this | |
616 | * <code>ShopOrder</code> <code>Persistent</code> | |
617 | */ | |
618 | ||
619 | public Double getAmount() | |
620 | throws AccessPoemException { | |
621 | 0 | readLock(); |
622 | 0 | return getAmount_unsafe(); |
623 | } | |
624 | ||
625 | ||
626 | /** | |
627 | * Sets the <code>Amount</code> value, with checking, for this | |
628 | * <code>ShopOrder</code> <code>Persistent</code>. | |
629 | * Field description: | |
630 | * The total amount of the order (in GBP) | |
631 | * | |
632 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
633 | * @param cooked a validated <code>int</code> | |
634 | * @throws AccessPoemException | |
635 | * if the current <code>AccessToken</code> | |
636 | * does not confer write access rights | |
637 | * @throws ValidationPoemException | |
638 | * if the value is not valid | |
639 | */ | |
640 | public void setAmount(Double cooked) | |
641 | throws AccessPoemException, ValidationPoemException { | |
642 | 0 | _getShopOrderTable().getAmountColumn(). |
643 | getType().assertValidCooked(cooked); | |
644 | 0 | writeLock(); |
645 | 0 | setAmount_unsafe(cooked); |
646 | 0 | } |
647 | ||
648 | /** | |
649 | * Sets the <code>Amount</code> value, with checking, for this <code>ShopOrder</code> <code>Persistent</code>. | |
650 | * Field description: | |
651 | * The total amount of the order (in GBP) | |
652 | * | |
653 | * | |
654 | * @generator org.melati.poem.prepro.DoubleFieldDef#generateBaseMethods | |
655 | * @param cooked a validated <code>int</code> | |
656 | * @throws AccessPoemException | |
657 | * if the current <code>AccessToken</code> | |
658 | * does not confer write access rights | |
659 | * @throws ValidationPoemException | |
660 | * if the value is not valid | |
661 | */ | |
662 | ||
663 | public final void setAmount(double cooked) | |
664 | throws AccessPoemException, ValidationPoemException { | |
665 | 0 | setAmount(new Double(cooked)); |
666 | 0 | } |
667 | ||
668 | ||
669 | /** | |
670 | * Retrieves the <code>Amount</code> value as a <code>Field</code> | |
671 | * from this <code>ShopOrder</code> <code>Persistent</code>. | |
672 | * | |
673 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
674 | * @throws AccessPoemException | |
675 | * if the current <code>AccessToken</code> | |
676 | * does not confer write access rights | |
677 | * @return the Double amount | |
678 | */ | |
679 | public Field getAmountField() throws AccessPoemException { | |
680 | 0 | Column c = _getShopOrderTable().getAmountColumn(); |
681 | 0 | return new Field(c.getRaw(this), c); |
682 | } | |
683 | ||
684 | ||
685 | /** | |
686 | * Retrieves the <code>Delivery</code> value, without locking, | |
687 | * for this <code>ShopOrder</code> <code>Persistent</code>. | |
688 | * | |
689 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
690 | * @return the Double delivery | |
691 | */ | |
692 | public Double getDelivery_unsafe() { | |
693 | 0 | return delivery; |
694 | } | |
695 | ||
696 | ||
697 | /** | |
698 | * Sets the <code>Delivery</code> value directly, without checking, | |
699 | * for this ShopOrder <code>Persistent</code>. | |
700 | * | |
701 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
702 | * @param cooked the pre-validated value to set | |
703 | */ | |
704 | public void setDelivery_unsafe(Double cooked) { | |
705 | 0 | delivery = cooked; |
706 | 0 | } |
707 | ||
708 | /** | |
709 | * Retrieves the Delivery value, with locking, for this | |
710 | * <code>ShopOrder</code> <code>Persistent</code>. | |
711 | * Field description: | |
712 | * The total delivery charge for the order (in GBP) | |
713 | * | |
714 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
715 | * @throws AccessPoemException | |
716 | * if the current <code>AccessToken</code> | |
717 | * does not confer write access rights | |
718 | * @return the value of the field <code>Delivery</code> for this | |
719 | * <code>ShopOrder</code> <code>Persistent</code> | |
720 | */ | |
721 | ||
722 | public Double getDelivery() | |
723 | throws AccessPoemException { | |
724 | 0 | readLock(); |
725 | 0 | return getDelivery_unsafe(); |
726 | } | |
727 | ||
728 | ||
729 | /** | |
730 | * Sets the <code>Delivery</code> value, with checking, for this | |
731 | * <code>ShopOrder</code> <code>Persistent</code>. | |
732 | * Field description: | |
733 | * The total delivery charge for the order (in GBP) | |
734 | * | |
735 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
736 | * @param cooked a validated <code>int</code> | |
737 | * @throws AccessPoemException | |
738 | * if the current <code>AccessToken</code> | |
739 | * does not confer write access rights | |
740 | * @throws ValidationPoemException | |
741 | * if the value is not valid | |
742 | */ | |
743 | public void setDelivery(Double cooked) | |
744 | throws AccessPoemException, ValidationPoemException { | |
745 | 0 | _getShopOrderTable().getDeliveryColumn(). |
746 | getType().assertValidCooked(cooked); | |
747 | 0 | writeLock(); |
748 | 0 | setDelivery_unsafe(cooked); |
749 | 0 | } |
750 | ||
751 | /** | |
752 | * Sets the <code>Delivery</code> value, with checking, for this <code>ShopOrder</code> <code>Persistent</code>. | |
753 | * Field description: | |
754 | * The total delivery charge for the order (in GBP) | |
755 | * | |
756 | * | |
757 | * @generator org.melati.poem.prepro.DoubleFieldDef#generateBaseMethods | |
758 | * @param cooked a validated <code>int</code> | |
759 | * @throws AccessPoemException | |
760 | * if the current <code>AccessToken</code> | |
761 | * does not confer write access rights | |
762 | * @throws ValidationPoemException | |
763 | * if the value is not valid | |
764 | */ | |
765 | ||
766 | public final void setDelivery(double cooked) | |
767 | throws AccessPoemException, ValidationPoemException { | |
768 | 0 | setDelivery(new Double(cooked)); |
769 | 0 | } |
770 | ||
771 | ||
772 | /** | |
773 | * Retrieves the <code>Delivery</code> value as a <code>Field</code> | |
774 | * from this <code>ShopOrder</code> <code>Persistent</code>. | |
775 | * | |
776 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
777 | * @throws AccessPoemException | |
778 | * if the current <code>AccessToken</code> | |
779 | * does not confer write access rights | |
780 | * @return the Double delivery | |
781 | */ | |
782 | public Field getDeliveryField() throws AccessPoemException { | |
783 | 0 | Column c = _getShopOrderTable().getDeliveryColumn(); |
784 | 0 | return new Field(c.getRaw(this), c); |
785 | } | |
786 | ||
787 | ||
788 | /** | |
789 | * Retrieves the <code>Name</code> value, without locking, | |
790 | * for this <code>ShopOrder</code> <code>Persistent</code>. | |
791 | * | |
792 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
793 | * @return the String name | |
794 | */ | |
795 | public String getName_unsafe() { | |
796 | 0 | return name; |
797 | } | |
798 | ||
799 | ||
800 | /** | |
801 | * Sets the <code>Name</code> value directly, without checking, | |
802 | * for this ShopOrder <code>Persistent</code>. | |
803 | * | |
804 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
805 | * @param cooked the pre-validated value to set | |
806 | */ | |
807 | public void setName_unsafe(String cooked) { | |
808 | 0 | name = cooked; |
809 | 0 | } |
810 | ||
811 | /** | |
812 | * Retrieves the Name value, with locking, for this | |
813 | * <code>ShopOrder</code> <code>Persistent</code>. | |
814 | * Field description: | |
815 | * The user's real name | |
816 | * | |
817 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
818 | * @throws AccessPoemException | |
819 | * if the current <code>AccessToken</code> | |
820 | * does not confer write access rights | |
821 | * @return the value of the field <code>Name</code> for this | |
822 | * <code>ShopOrder</code> <code>Persistent</code> | |
823 | */ | |
824 | ||
825 | public String getName() | |
826 | throws AccessPoemException { | |
827 | 0 | readLock(); |
828 | 0 | return getName_unsafe(); |
829 | } | |
830 | ||
831 | ||
832 | /** | |
833 | * Sets the <code>Name</code> value, with checking, for this | |
834 | * <code>ShopOrder</code> <code>Persistent</code>. | |
835 | * Field description: | |
836 | * The user's real name | |
837 | * | |
838 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
839 | * @param cooked a validated <code>int</code> | |
840 | * @throws AccessPoemException | |
841 | * if the current <code>AccessToken</code> | |
842 | * does not confer write access rights | |
843 | * @throws ValidationPoemException | |
844 | * if the value is not valid | |
845 | */ | |
846 | public void setName(String cooked) | |
847 | throws AccessPoemException, ValidationPoemException { | |
848 | 0 | _getShopOrderTable().getNameColumn(). |
849 | getType().assertValidCooked(cooked); | |
850 | 0 | writeLock(); |
851 | 0 | setName_unsafe(cooked); |
852 | 0 | } |
853 | ||
854 | ||
855 | /** | |
856 | * Retrieves the <code>Name</code> value as a <code>Field</code> | |
857 | * from this <code>ShopOrder</code> <code>Persistent</code>. | |
858 | * | |
859 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
860 | * @throws AccessPoemException | |
861 | * if the current <code>AccessToken</code> | |
862 | * does not confer write access rights | |
863 | * @return the String name | |
864 | */ | |
865 | public Field getNameField() throws AccessPoemException { | |
866 | 0 | Column c = _getShopOrderTable().getNameColumn(); |
867 | 0 | return new Field(c.getRaw(this), c); |
868 | } | |
869 | ||
870 | ||
871 | /** | |
872 | * Retrieves the <code>DeliveryName</code> value, without locking, | |
873 | * for this <code>ShopOrder</code> <code>Persistent</code>. | |
874 | * | |
875 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
876 | * @return the String deliveryName | |
877 | */ | |
878 | public String getDeliveryName_unsafe() { | |
879 | 0 | return deliveryName; |
880 | } | |
881 | ||
882 | ||
883 | /** | |
884 | * Sets the <code>DeliveryName</code> value directly, without checking, | |
885 | * for this ShopOrder <code>Persistent</code>. | |
886 | * | |
887 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
888 | * @param cooked the pre-validated value to set | |
889 | */ | |
890 | public void setDeliveryName_unsafe(String cooked) { | |
891 | 0 | deliveryName = cooked; |
892 | 0 | } |
893 | ||
894 | /** | |
895 | * Retrieves the DeliveryName value, with locking, for this | |
896 | * <code>ShopOrder</code> <code>Persistent</code>. | |
897 | * Field description: | |
898 | * The name of the persone to whom we are delivering | |
899 | * | |
900 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
901 | * @throws AccessPoemException | |
902 | * if the current <code>AccessToken</code> | |
903 | * does not confer write access rights | |
904 | * @return the value of the field <code>DeliveryName</code> for this | |
905 | * <code>ShopOrder</code> <code>Persistent</code> | |
906 | */ | |
907 | ||
908 | public String getDeliveryName() | |
909 | throws AccessPoemException { | |
910 | 0 | readLock(); |
911 | 0 | return getDeliveryName_unsafe(); |
912 | } | |
913 | ||
914 | ||
915 | /** | |
916 | * Sets the <code>DeliveryName</code> value, with checking, for this | |
917 | * <code>ShopOrder</code> <code>Persistent</code>. | |
918 | * Field description: | |
919 | * The name of the persone to whom we are delivering | |
920 | * | |
921 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
922 | * @param cooked a validated <code>int</code> | |
923 | * @throws AccessPoemException | |
924 | * if the current <code>AccessToken</code> | |
925 | * does not confer write access rights | |
926 | * @throws ValidationPoemException | |
927 | * if the value is not valid | |
928 | */ | |
929 | public void setDeliveryName(String cooked) | |
930 | throws AccessPoemException, ValidationPoemException { | |
931 | 0 | _getShopOrderTable().getDeliveryNameColumn(). |
932 | getType().assertValidCooked(cooked); | |
933 | 0 | writeLock(); |
934 | 0 | setDeliveryName_unsafe(cooked); |
935 | 0 | } |
936 | ||
937 | ||
938 | /** | |
939 | * Retrieves the <code>DeliveryName</code> value as a <code>Field</code> | |
940 | * from this <code>ShopOrder</code> <code>Persistent</code>. | |
941 | * | |
942 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
943 | * @throws AccessPoemException | |
944 | * if the current <code>AccessToken</code> | |
945 | * does not confer write access rights | |
946 | * @return the String deliveryName | |
947 | */ | |
948 | public Field getDeliveryNameField() throws AccessPoemException { | |
949 | 0 | Column c = _getShopOrderTable().getDeliveryNameColumn(); |
950 | 0 | return new Field(c.getRaw(this), c); |
951 | } | |
952 | ||
953 | ||
954 | /** | |
955 | * Retrieves the <code>Email</code> value, without locking, | |
956 | * for this <code>ShopOrder</code> <code>Persistent</code>. | |
957 | * | |
958 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
959 | * @return the String email | |
960 | */ | |
961 | public String getEmail_unsafe() { | |
962 | 0 | return email; |
963 | } | |
964 | ||
965 | ||
966 | /** | |
967 | * Sets the <code>Email</code> value directly, without checking, | |
968 | * for this ShopOrder <code>Persistent</code>. | |
969 | * | |
970 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
971 | * @param cooked the pre-validated value to set | |
972 | */ | |
973 | public void setEmail_unsafe(String cooked) { | |
974 | 0 | email = cooked; |
975 | 0 | } |
976 | ||
977 | /** | |
978 | * Retrieves the Email value, with locking, for this | |
979 | * <code>ShopOrder</code> <code>Persistent</code>. | |
980 | * Field description: | |
981 | * email | |
982 | * | |
983 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
984 | * @throws AccessPoemException | |
985 | * if the current <code>AccessToken</code> | |
986 | * does not confer write access rights | |
987 | * @return the value of the field <code>Email</code> for this | |
988 | * <code>ShopOrder</code> <code>Persistent</code> | |
989 | */ | |
990 | ||
991 | public String getEmail() | |
992 | throws AccessPoemException { | |
993 | 0 | readLock(); |
994 | 0 | return getEmail_unsafe(); |
995 | } | |
996 | ||
997 | ||
998 | /** | |
999 | * Sets the <code>Email</code> value, with checking, for this | |
1000 | * <code>ShopOrder</code> <code>Persistent</code>. | |
1001 | * Field description: | |
1002 | * email | |
1003 | * | |
1004 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
1005 | * @param cooked a validated <code>int</code> | |
1006 | * @throws AccessPoemException | |
1007 | * if the current <code>AccessToken</code> | |
1008 | * does not confer write access rights | |
1009 | * @throws ValidationPoemException | |
1010 | * if the value is not valid | |
1011 | */ | |
1012 | public void setEmail(String cooked) | |
1013 | throws AccessPoemException, ValidationPoemException { | |
1014 | 0 | _getShopOrderTable().getEmailColumn(). |
1015 | getType().assertValidCooked(cooked); | |
1016 | 0 | writeLock(); |
1017 | 0 | setEmail_unsafe(cooked); |
1018 | 0 | } |
1019 | ||
1020 | ||
1021 | /** | |
1022 | * Retrieves the <code>Email</code> value as a <code>Field</code> | |
1023 | * from this <code>ShopOrder</code> <code>Persistent</code>. | |
1024 | * | |
1025 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
1026 | * @throws AccessPoemException | |
1027 | * if the current <code>AccessToken</code> | |
1028 | * does not confer write access rights | |
1029 | * @return the String email | |
1030 | */ | |
1031 | public Field getEmailField() throws AccessPoemException { | |
1032 | 0 | Column c = _getShopOrderTable().getEmailColumn(); |
1033 | 0 | return new Field(c.getRaw(this), c); |
1034 | } | |
1035 | ||
1036 | ||
1037 | /** | |
1038 | * Retrieves the <code>Address</code> value, without locking, | |
1039 | * for this <code>ShopOrder</code> <code>Persistent</code>. | |
1040 | * | |
1041 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
1042 | * @return the String address | |
1043 | */ | |
1044 | public String getAddress_unsafe() { | |
1045 | 0 | return address; |
1046 | } | |
1047 | ||
1048 | ||
1049 | /** | |
1050 | * Sets the <code>Address</code> value directly, without checking, | |
1051 | * for this ShopOrder <code>Persistent</code>. | |
1052 | * | |
1053 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
1054 | * @param cooked the pre-validated value to set | |
1055 | */ | |
1056 | public void setAddress_unsafe(String cooked) { | |
1057 | 0 | address = cooked; |
1058 | 0 | } |
1059 | ||
1060 | /** | |
1061 | * Retrieves the Address value, with locking, for this | |
1062 | * <code>ShopOrder</code> <code>Persistent</code>. | |
1063 | * | |
1064 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
1065 | * @throws AccessPoemException | |
1066 | * if the current <code>AccessToken</code> | |
1067 | * does not confer write access rights | |
1068 | * @return the value of the field <code>Address</code> for this | |
1069 | * <code>ShopOrder</code> <code>Persistent</code> | |
1070 | */ | |
1071 | ||
1072 | public String getAddress() | |
1073 | throws AccessPoemException { | |
1074 | 0 | readLock(); |
1075 | 0 | return getAddress_unsafe(); |
1076 | } | |
1077 | ||
1078 | ||
1079 | /** | |
1080 | * Sets the <code>Address</code> value, with checking, for this | |
1081 | * <code>ShopOrder</code> <code>Persistent</code>. | |
1082 | * | |
1083 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
1084 | * @param cooked a validated <code>int</code> | |
1085 | * @throws AccessPoemException | |
1086 | * if the current <code>AccessToken</code> | |
1087 | * does not confer write access rights | |
1088 | * @throws ValidationPoemException | |
1089 | * if the value is not valid | |
1090 | */ | |
1091 | public void setAddress(String cooked) | |
1092 | throws AccessPoemException, ValidationPoemException { | |
1093 | 0 | _getShopOrderTable().getAddressColumn(). |
1094 | getType().assertValidCooked(cooked); | |
1095 | 0 | writeLock(); |
1096 | 0 | setAddress_unsafe(cooked); |
1097 | 0 | } |
1098 | ||
1099 | ||
1100 | /** | |
1101 | * Retrieves the <code>Address</code> value as a <code>Field</code> | |
1102 | * from this <code>ShopOrder</code> <code>Persistent</code>. | |
1103 | * | |
1104 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
1105 | * @throws AccessPoemException | |
1106 | * if the current <code>AccessToken</code> | |
1107 | * does not confer write access rights | |
1108 | * @return the String address | |
1109 | */ | |
1110 | public Field getAddressField() throws AccessPoemException { | |
1111 | 0 | Column c = _getShopOrderTable().getAddressColumn(); |
1112 | 0 | return new Field(c.getRaw(this), c); |
1113 | } | |
1114 | ||
1115 | ||
1116 | /** | |
1117 | * Retrieves the <code>Town</code> value, without locking, | |
1118 | * for this <code>ShopOrder</code> <code>Persistent</code>. | |
1119 | * | |
1120 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
1121 | * @return the String town | |
1122 | */ | |
1123 | public String getTown_unsafe() { | |
1124 | 0 | return town; |
1125 | } | |
1126 | ||
1127 | ||
1128 | /** | |
1129 | * Sets the <code>Town</code> value directly, without checking, | |
1130 | * for this ShopOrder <code>Persistent</code>. | |
1131 | * | |
1132 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
1133 | * @param cooked the pre-validated value to set | |
1134 | */ | |
1135 | public void setTown_unsafe(String cooked) { | |
1136 | 0 | town = cooked; |
1137 | 0 | } |
1138 | ||
1139 | /** | |
1140 | * Retrieves the Town value, with locking, for this | |
1141 | * <code>ShopOrder</code> <code>Persistent</code>. | |
1142 | * | |
1143 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
1144 | * @throws AccessPoemException | |
1145 | * if the current <code>AccessToken</code> | |
1146 | * does not confer write access rights | |
1147 | * @return the value of the field <code>Town</code> for this | |
1148 | * <code>ShopOrder</code> <code>Persistent</code> | |
1149 | */ | |
1150 | ||
1151 | public String getTown() | |
1152 | throws AccessPoemException { | |
1153 | 0 | readLock(); |
1154 | 0 | return getTown_unsafe(); |
1155 | } | |
1156 | ||
1157 | ||
1158 | /** | |
1159 | * Sets the <code>Town</code> value, with checking, for this | |
1160 | * <code>ShopOrder</code> <code>Persistent</code>. | |
1161 | * | |
1162 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
1163 | * @param cooked a validated <code>int</code> | |
1164 | * @throws AccessPoemException | |
1165 | * if the current <code>AccessToken</code> | |
1166 | * does not confer write access rights | |
1167 | * @throws ValidationPoemException | |
1168 | * if the value is not valid | |
1169 | */ | |
1170 | public void setTown(String cooked) | |
1171 | throws AccessPoemException, ValidationPoemException { | |
1172 | 0 | _getShopOrderTable().getTownColumn(). |
1173 | getType().assertValidCooked(cooked); | |
1174 | 0 | writeLock(); |
1175 | 0 | setTown_unsafe(cooked); |
1176 | 0 | } |
1177 | ||
1178 | ||
1179 | /** | |
1180 | * Retrieves the <code>Town</code> value as a <code>Field</code> | |
1181 | * from this <code>ShopOrder</code> <code>Persistent</code>. | |
1182 | * | |
1183 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
1184 | * @throws AccessPoemException | |
1185 | * if the current <code>AccessToken</code> | |
1186 | * does not confer write access rights | |
1187 | * @return the String town | |
1188 | */ | |
1189 | public Field getTownField() throws AccessPoemException { | |
1190 | 0 | Column c = _getShopOrderTable().getTownColumn(); |
1191 | 0 | return new Field(c.getRaw(this), c); |
1192 | } | |
1193 | ||
1194 | ||
1195 | /** | |
1196 | * Retrieves the <code>Tel</code> value, without locking, | |
1197 | * for this <code>ShopOrder</code> <code>Persistent</code>. | |
1198 | * | |
1199 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
1200 | * @return the String tel | |
1201 | */ | |
1202 | public String getTel_unsafe() { | |
1203 | 0 | return tel; |
1204 | } | |
1205 | ||
1206 | ||
1207 | /** | |
1208 | * Sets the <code>Tel</code> value directly, without checking, | |
1209 | * for this ShopOrder <code>Persistent</code>. | |
1210 | * | |
1211 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
1212 | * @param cooked the pre-validated value to set | |
1213 | */ | |
1214 | public void setTel_unsafe(String cooked) { | |
1215 | 0 | tel = cooked; |
1216 | 0 | } |
1217 | ||
1218 | /** | |
1219 | * Retrieves the Tel value, with locking, for this | |
1220 | * <code>ShopOrder</code> <code>Persistent</code>. | |
1221 | * Field description: | |
1222 | * Order telephone number | |
1223 | * | |
1224 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
1225 | * @throws AccessPoemException | |
1226 | * if the current <code>AccessToken</code> | |
1227 | * does not confer write access rights | |
1228 | * @return the value of the field <code>Tel</code> for this | |
1229 | * <code>ShopOrder</code> <code>Persistent</code> | |
1230 | */ | |
1231 | ||
1232 | public String getTel() | |
1233 | throws AccessPoemException { | |
1234 | 0 | readLock(); |
1235 | 0 | return getTel_unsafe(); |
1236 | } | |
1237 | ||
1238 | ||
1239 | /** | |
1240 | * Sets the <code>Tel</code> value, with checking, for this | |
1241 | * <code>ShopOrder</code> <code>Persistent</code>. | |
1242 | * Field description: | |
1243 | * Order telephone number | |
1244 | * | |
1245 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
1246 | * @param cooked a validated <code>int</code> | |
1247 | * @throws AccessPoemException | |
1248 | * if the current <code>AccessToken</code> | |
1249 | * does not confer write access rights | |
1250 | * @throws ValidationPoemException | |
1251 | * if the value is not valid | |
1252 | */ | |
1253 | public void setTel(String cooked) | |
1254 | throws AccessPoemException, ValidationPoemException { | |
1255 | 0 | _getShopOrderTable().getTelColumn(). |
1256 | getType().assertValidCooked(cooked); | |
1257 | 0 | writeLock(); |
1258 | 0 | setTel_unsafe(cooked); |
1259 | 0 | } |
1260 | ||
1261 | ||
1262 | /** | |
1263 | * Retrieves the <code>Tel</code> value as a <code>Field</code> | |
1264 | * from this <code>ShopOrder</code> <code>Persistent</code>. | |
1265 | * | |
1266 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
1267 | * @throws AccessPoemException | |
1268 | * if the current <code>AccessToken</code> | |
1269 | * does not confer write access rights | |
1270 | * @return the String tel | |
1271 | */ | |
1272 | public Field getTelField() throws AccessPoemException { | |
1273 | 0 | Column c = _getShopOrderTable().getTelColumn(); |
1274 | 0 | return new Field(c.getRaw(this), c); |
1275 | } | |
1276 | ||
1277 | ||
1278 | /** | |
1279 | * Retrieves the <code>Postcode</code> value, without locking, | |
1280 | * for this <code>ShopOrder</code> <code>Persistent</code>. | |
1281 | * | |
1282 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
1283 | * @return the String postcode | |
1284 | */ | |
1285 | public String getPostcode_unsafe() { | |
1286 | 0 | return postcode; |
1287 | } | |
1288 | ||
1289 | ||
1290 | /** | |
1291 | * Sets the <code>Postcode</code> value directly, without checking, | |
1292 | * for this ShopOrder <code>Persistent</code>. | |
1293 | * | |
1294 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
1295 | * @param cooked the pre-validated value to set | |
1296 | */ | |
1297 | public void setPostcode_unsafe(String cooked) { | |
1298 | 0 | postcode = cooked; |
1299 | 0 | } |
1300 | ||
1301 | /** | |
1302 | * Retrieves the Postcode value, with locking, for this | |
1303 | * <code>ShopOrder</code> <code>Persistent</code>. | |
1304 | * Field description: | |
1305 | * Order postcode | |
1306 | * | |
1307 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
1308 | * @throws AccessPoemException | |
1309 | * if the current <code>AccessToken</code> | |
1310 | * does not confer write access rights | |
1311 | * @return the value of the field <code>Postcode</code> for this | |
1312 | * <code>ShopOrder</code> <code>Persistent</code> | |
1313 | */ | |
1314 | ||
1315 | public String getPostcode() | |
1316 | throws AccessPoemException { | |
1317 | 0 | readLock(); |
1318 | 0 | return getPostcode_unsafe(); |
1319 | } | |
1320 | ||
1321 | ||
1322 | /** | |
1323 | * Sets the <code>Postcode</code> value, with checking, for this | |
1324 | * <code>ShopOrder</code> <code>Persistent</code>. | |
1325 | * Field description: | |
1326 | * Order postcode | |
1327 | * | |
1328 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
1329 | * @param cooked a validated <code>int</code> | |
1330 | * @throws AccessPoemException | |
1331 | * if the current <code>AccessToken</code> | |
1332 | * does not confer write access rights | |
1333 | * @throws ValidationPoemException | |
1334 | * if the value is not valid | |
1335 | */ | |
1336 | public void setPostcode(String cooked) | |
1337 | throws AccessPoemException, ValidationPoemException { | |
1338 | 0 | _getShopOrderTable().getPostcodeColumn(). |
1339 | getType().assertValidCooked(cooked); | |
1340 | 0 | writeLock(); |
1341 | 0 | setPostcode_unsafe(cooked); |
1342 | 0 | } |
1343 | ||
1344 | ||
1345 | /** | |
1346 | * Retrieves the <code>Postcode</code> value as a <code>Field</code> | |
1347 | * from this <code>ShopOrder</code> <code>Persistent</code>. | |
1348 | * | |
1349 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
1350 | * @throws AccessPoemException | |
1351 | * if the current <code>AccessToken</code> | |
1352 | * does not confer write access rights | |
1353 | * @return the String postcode | |
1354 | */ | |
1355 | public Field getPostcodeField() throws AccessPoemException { | |
1356 | 0 | Column c = _getShopOrderTable().getPostcodeColumn(); |
1357 | 0 | return new Field(c.getRaw(this), c); |
1358 | } | |
1359 | ||
1360 | ||
1361 | /** | |
1362 | * Retrieves the <code>Country</code> value, without locking, | |
1363 | * for this <code>ShopOrder</code> <code>Persistent</code>. | |
1364 | * | |
1365 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
1366 | * @return the String country | |
1367 | */ | |
1368 | public String getCountry_unsafe() { | |
1369 | 0 | return country; |
1370 | } | |
1371 | ||
1372 | ||
1373 | /** | |
1374 | * Sets the <code>Country</code> value directly, without checking, | |
1375 | * for this ShopOrder <code>Persistent</code>. | |
1376 | * | |
1377 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
1378 | * @param cooked the pre-validated value to set | |
1379 | */ | |
1380 | public void setCountry_unsafe(String cooked) { | |
1381 | 0 | country = cooked; |
1382 | 0 | } |
1383 | ||
1384 | /** | |
1385 | * Retrieves the Country value, with locking, for this | |
1386 | * <code>ShopOrder</code> <code>Persistent</code>. | |
1387 | * | |
1388 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
1389 | * @throws AccessPoemException | |
1390 | * if the current <code>AccessToken</code> | |
1391 | * does not confer write access rights | |
1392 | * @return the value of the field <code>Country</code> for this | |
1393 | * <code>ShopOrder</code> <code>Persistent</code> | |
1394 | */ | |
1395 | ||
1396 | public String getCountry() | |
1397 | throws AccessPoemException { | |
1398 | 0 | readLock(); |
1399 | 0 | return getCountry_unsafe(); |
1400 | } | |
1401 | ||
1402 | ||
1403 | /** | |
1404 | * Sets the <code>Country</code> value, with checking, for this | |
1405 | * <code>ShopOrder</code> <code>Persistent</code>. | |
1406 | * | |
1407 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
1408 | * @param cooked a validated <code>int</code> | |
1409 | * @throws AccessPoemException | |
1410 | * if the current <code>AccessToken</code> | |
1411 | * does not confer write access rights | |
1412 | * @throws ValidationPoemException | |
1413 | * if the value is not valid | |
1414 | */ | |
1415 | public void setCountry(String cooked) | |
1416 | throws AccessPoemException, ValidationPoemException { | |
1417 | 0 | _getShopOrderTable().getCountryColumn(). |
1418 | getType().assertValidCooked(cooked); | |
1419 | 0 | writeLock(); |
1420 | 0 | setCountry_unsafe(cooked); |
1421 | 0 | } |
1422 | ||
1423 | ||
1424 | /** | |
1425 | * Retrieves the <code>Country</code> value as a <code>Field</code> | |
1426 | * from this <code>ShopOrder</code> <code>Persistent</code>. | |
1427 | * | |
1428 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
1429 | * @throws AccessPoemException | |
1430 | * if the current <code>AccessToken</code> | |
1431 | * does not confer write access rights | |
1432 | * @return the String country | |
1433 | */ | |
1434 | public Field getCountryField() throws AccessPoemException { | |
1435 | 0 | Column c = _getShopOrderTable().getCountryColumn(); |
1436 | 0 | return new Field(c.getRaw(this), c); |
1437 | } | |
1438 | ||
1439 | ||
1440 | /** | |
1441 | * Retrieves the <code>Spam</code> value, without locking, | |
1442 | * for this <code>ShopOrder</code> <code>Persistent</code>. | |
1443 | * | |
1444 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
1445 | * @return the Boolean spam | |
1446 | */ | |
1447 | public Boolean getSpam_unsafe() { | |
1448 | 0 | return spam; |
1449 | } | |
1450 | ||
1451 | ||
1452 | /** | |
1453 | * Sets the <code>Spam</code> value directly, without checking, | |
1454 | * for this ShopOrder <code>Persistent</code>. | |
1455 | * | |
1456 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
1457 | * @param cooked the pre-validated value to set | |
1458 | */ | |
1459 | public void setSpam_unsafe(Boolean cooked) { | |
1460 | 0 | spam = cooked; |
1461 | 0 | } |
1462 | ||
1463 | /** | |
1464 | * Retrieves the Spam value, with locking, for this | |
1465 | * <code>ShopOrder</code> <code>Persistent</code>. | |
1466 | * Field description: | |
1467 | * Does the user want to receive spam email? | |
1468 | * | |
1469 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
1470 | * @throws AccessPoemException | |
1471 | * if the current <code>AccessToken</code> | |
1472 | * does not confer write access rights | |
1473 | * @return the value of the field <code>Spam</code> for this | |
1474 | * <code>ShopOrder</code> <code>Persistent</code> | |
1475 | */ | |
1476 | ||
1477 | public Boolean getSpam() | |
1478 | throws AccessPoemException { | |
1479 | 0 | readLock(); |
1480 | 0 | return getSpam_unsafe(); |
1481 | } | |
1482 | ||
1483 | ||
1484 | /** | |
1485 | * Sets the <code>Spam</code> value, with checking, for this | |
1486 | * <code>ShopOrder</code> <code>Persistent</code>. | |
1487 | * Field description: | |
1488 | * Does the user want to receive spam email? | |
1489 | * | |
1490 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
1491 | * @param cooked a validated <code>int</code> | |
1492 | * @throws AccessPoemException | |
1493 | * if the current <code>AccessToken</code> | |
1494 | * does not confer write access rights | |
1495 | * @throws ValidationPoemException | |
1496 | * if the value is not valid | |
1497 | */ | |
1498 | public void setSpam(Boolean cooked) | |
1499 | throws AccessPoemException, ValidationPoemException { | |
1500 | 0 | _getShopOrderTable().getSpamColumn(). |
1501 | getType().assertValidCooked(cooked); | |
1502 | 0 | writeLock(); |
1503 | 0 | setSpam_unsafe(cooked); |
1504 | 0 | } |
1505 | ||
1506 | /** | |
1507 | * Sets the <code>Spam</code> value, with checking, | |
1508 | * from a <code>boolean</code>, for this | |
1509 | * <code>ShopOrder</code> <code>Persistent</code>. | |
1510 | * Field description: | |
1511 | * Does the user want to receive spam email? | |
1512 | * | |
1513 | * | |
1514 | * @generator org.melati.poem.prepro.BooleanFieldDef#generateBaseMethods | |
1515 | * @param cooked a <code>boolean</code> | |
1516 | * @throws AccessPoemException | |
1517 | * if the current <code>AccessToken</code> | |
1518 | * does not confer write access rights | |
1519 | * @throws ValidationPoemException | |
1520 | * if the value is not valid | |
1521 | */ | |
1522 | ||
1523 | public final void setSpam(boolean cooked) | |
1524 | throws AccessPoemException, ValidationPoemException { | |
1525 | 0 | setSpam(cooked ? Boolean.TRUE : Boolean.FALSE); |
1526 | 0 | } |
1527 | ||
1528 | ||
1529 | /** | |
1530 | * Retrieves the <code>Spam</code> value as a <code>Field</code> | |
1531 | * from this <code>ShopOrder</code> <code>Persistent</code>. | |
1532 | * | |
1533 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
1534 | * @throws AccessPoemException | |
1535 | * if the current <code>AccessToken</code> | |
1536 | * does not confer write access rights | |
1537 | * @return the Boolean spam | |
1538 | */ | |
1539 | public Field getSpamField() throws AccessPoemException { | |
1540 | 0 | Column c = _getShopOrderTable().getSpamColumn(); |
1541 | 0 | return new Field(c.getRaw(this), c); |
1542 | } | |
1543 | } | |
1544 |