Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ManufacturerBase |
|
| 1.0;1 |
1 | // Do not edit this file! It was generated by Melati POEM's DSD preprocessor. | |
2 | ||
3 | package org.paneris.jammyjoes.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.JdbcPersistent; | |
10 | import org.melati.poem.ValidationPoemException; | |
11 | import org.paneris.jammyjoes.model.JammyjoesDatabaseTables; | |
12 | import org.paneris.jammyjoes.model.ManufacturerTable; | |
13 | ||
14 | ||
15 | /** | |
16 | * Melati POEM generated abstract base class for a <code>Persistent</code> | |
17 | * <code>Manufacturer</code> Object. | |
18 | * | |
19 | * @generator org.melati.poem.prepro.TableDef#generatePersistentBaseJava | |
20 | */ | |
21 | 0 | public abstract class ManufacturerBase extends JdbcPersistent { |
22 | ||
23 | ||
24 | /** | |
25 | * Retrieves the Database object. | |
26 | * | |
27 | * @generator org.melati.poem.prepro.TableDef#generatePersistentBaseJava | |
28 | * @return the database | |
29 | */ | |
30 | public JammyjoesDatabaseTables getJammyjoesDatabaseTables() { | |
31 | 0 | return (JammyjoesDatabaseTables)getDatabase(); |
32 | } | |
33 | ||
34 | ||
35 | /** | |
36 | * Retrieves the <code>ManufacturerTable</code> table | |
37 | * which this <code>Persistent</code> is from. | |
38 | * | |
39 | * @generator org.melati.poem.prepro.TableDef#generatePersistentBaseJava | |
40 | * @return the ManufacturerTable | |
41 | */ | |
42 | public ManufacturerTable getManufacturerTable() { | |
43 | 0 | return (ManufacturerTable)getTable(); |
44 | } | |
45 | ||
46 | private ManufacturerTable _getManufacturerTable() { | |
47 | 0 | return (ManufacturerTable)getTable(); |
48 | } | |
49 | ||
50 | // Fields in this table | |
51 | /** | |
52 | * id | |
53 | */ | |
54 | protected Integer id; | |
55 | /** | |
56 | * Name | |
57 | */ | |
58 | protected String name; | |
59 | /** | |
60 | * Address | |
61 | */ | |
62 | protected String address; | |
63 | /** | |
64 | * Profile | |
65 | */ | |
66 | protected String profile; | |
67 | /** | |
68 | * Contact Name | |
69 | */ | |
70 | protected String contact; | |
71 | /** | |
72 | * Minimum Order | |
73 | */ | |
74 | protected Double minimumorder; | |
75 | /** | |
76 | * email - email | |
77 | */ | |
78 | protected String email; | |
79 | /** | |
80 | * website - website | |
81 | */ | |
82 | protected String website; | |
83 | /** | |
84 | * comment - Comments | |
85 | */ | |
86 | protected String comment; | |
87 | /** | |
88 | * Deleted? - Check this box if you no longer deal with this supplier | |
89 | */ | |
90 | protected Boolean deleted; | |
91 | /** | |
92 | * Telephone - Telephone number | |
93 | */ | |
94 | protected String tel; | |
95 | ||
96 | ||
97 | /** | |
98 | * Retrieves the <code>Id</code> value, without locking, | |
99 | * for this <code>Manufacturer</code> <code>Persistent</code>. | |
100 | * | |
101 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
102 | * @return the Integer id | |
103 | */ | |
104 | public Integer getId_unsafe() { | |
105 | 0 | return id; |
106 | } | |
107 | ||
108 | ||
109 | /** | |
110 | * Sets the <code>Id</code> value directly, without checking, | |
111 | * for this Manufacturer <code>Persistent</code>. | |
112 | * | |
113 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
114 | * @param cooked the pre-validated value to set | |
115 | */ | |
116 | public void setId_unsafe(Integer cooked) { | |
117 | 0 | id = cooked; |
118 | 0 | } |
119 | ||
120 | /** | |
121 | * Retrieves the Id value, with locking, for this | |
122 | * <code>Manufacturer</code> <code>Persistent</code>. | |
123 | * | |
124 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
125 | * @throws AccessPoemException | |
126 | * if the current <code>AccessToken</code> | |
127 | * does not confer write access rights | |
128 | * @return the value of the field <code>Id</code> for this | |
129 | * <code>Manufacturer</code> <code>Persistent</code> | |
130 | */ | |
131 | ||
132 | public Integer getId() | |
133 | throws AccessPoemException { | |
134 | 0 | readLock(); |
135 | 0 | return getId_unsafe(); |
136 | } | |
137 | ||
138 | ||
139 | /** | |
140 | * Sets the <code>Id</code> value, with checking, for this | |
141 | * <code>Manufacturer</code> <code>Persistent</code>. | |
142 | * | |
143 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
144 | * @param cooked a validated <code>int</code> | |
145 | * @throws AccessPoemException | |
146 | * if the current <code>AccessToken</code> | |
147 | * does not confer write access rights | |
148 | * @throws ValidationPoemException | |
149 | * if the value is not valid | |
150 | */ | |
151 | public void setId(Integer cooked) | |
152 | throws AccessPoemException, ValidationPoemException { | |
153 | 0 | _getManufacturerTable().getIdColumn(). |
154 | getType().assertValidCooked(cooked); | |
155 | 0 | writeLock(); |
156 | 0 | setId_unsafe(cooked); |
157 | 0 | } |
158 | ||
159 | /** | |
160 | * Sets the <code>Id</code> value, with checking, for this | |
161 | * <code>Manufacturer</code> <code>Persistent</code>. | |
162 | * | |
163 | * @generator org.melati.poem.prepro.IntegerFieldDef#generateBaseMethods | |
164 | * @param cooked a validated <code>int</code> | |
165 | * @throws AccessPoemException | |
166 | * if the current <code>AccessToken</code> | |
167 | * does not confer write access rights | |
168 | * @throws ValidationPoemException | |
169 | * if the value is not valid | |
170 | */ | |
171 | ||
172 | public final void setId(int cooked) | |
173 | throws AccessPoemException, ValidationPoemException { | |
174 | 0 | setId(new Integer(cooked)); |
175 | 0 | } |
176 | ||
177 | ||
178 | /** | |
179 | * Retrieves the <code>Id</code> value as a <code>Field</code> | |
180 | * from this <code>Manufacturer</code> <code>Persistent</code>. | |
181 | * | |
182 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
183 | * @throws AccessPoemException | |
184 | * if the current <code>AccessToken</code> | |
185 | * does not confer write access rights | |
186 | * @return the Integer id | |
187 | */ | |
188 | public Field getIdField() throws AccessPoemException { | |
189 | 0 | Column c = _getManufacturerTable().getIdColumn(); |
190 | 0 | return new Field(c.getRaw(this), c); |
191 | } | |
192 | ||
193 | ||
194 | /** | |
195 | * Retrieves the <code>Name</code> value, without locking, | |
196 | * for this <code>Manufacturer</code> <code>Persistent</code>. | |
197 | * | |
198 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
199 | * @return the String name | |
200 | */ | |
201 | public String getName_unsafe() { | |
202 | 0 | return name; |
203 | } | |
204 | ||
205 | ||
206 | /** | |
207 | * Sets the <code>Name</code> value directly, without checking, | |
208 | * for this Manufacturer <code>Persistent</code>. | |
209 | * | |
210 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
211 | * @param cooked the pre-validated value to set | |
212 | */ | |
213 | public void setName_unsafe(String cooked) { | |
214 | 0 | name = cooked; |
215 | 0 | } |
216 | ||
217 | /** | |
218 | * Retrieves the Name value, with locking, for this | |
219 | * <code>Manufacturer</code> <code>Persistent</code>. | |
220 | * | |
221 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
222 | * @throws AccessPoemException | |
223 | * if the current <code>AccessToken</code> | |
224 | * does not confer write access rights | |
225 | * @return the value of the field <code>Name</code> for this | |
226 | * <code>Manufacturer</code> <code>Persistent</code> | |
227 | */ | |
228 | ||
229 | public String getName() | |
230 | throws AccessPoemException { | |
231 | 0 | readLock(); |
232 | 0 | return getName_unsafe(); |
233 | } | |
234 | ||
235 | ||
236 | /** | |
237 | * Sets the <code>Name</code> value, with checking, for this | |
238 | * <code>Manufacturer</code> <code>Persistent</code>. | |
239 | * | |
240 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
241 | * @param cooked a validated <code>int</code> | |
242 | * @throws AccessPoemException | |
243 | * if the current <code>AccessToken</code> | |
244 | * does not confer write access rights | |
245 | * @throws ValidationPoemException | |
246 | * if the value is not valid | |
247 | */ | |
248 | public void setName(String cooked) | |
249 | throws AccessPoemException, ValidationPoemException { | |
250 | 0 | _getManufacturerTable().getNameColumn(). |
251 | getType().assertValidCooked(cooked); | |
252 | 0 | writeLock(); |
253 | 0 | setName_unsafe(cooked); |
254 | 0 | } |
255 | ||
256 | ||
257 | /** | |
258 | * Retrieves the <code>Name</code> value as a <code>Field</code> | |
259 | * from this <code>Manufacturer</code> <code>Persistent</code>. | |
260 | * | |
261 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
262 | * @throws AccessPoemException | |
263 | * if the current <code>AccessToken</code> | |
264 | * does not confer write access rights | |
265 | * @return the String name | |
266 | */ | |
267 | public Field getNameField() throws AccessPoemException { | |
268 | 0 | Column c = _getManufacturerTable().getNameColumn(); |
269 | 0 | return new Field(c.getRaw(this), c); |
270 | } | |
271 | ||
272 | ||
273 | /** | |
274 | * Retrieves the <code>Address</code> value, without locking, | |
275 | * for this <code>Manufacturer</code> <code>Persistent</code>. | |
276 | * | |
277 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
278 | * @return the String address | |
279 | */ | |
280 | public String getAddress_unsafe() { | |
281 | 0 | return address; |
282 | } | |
283 | ||
284 | ||
285 | /** | |
286 | * Sets the <code>Address</code> value directly, without checking, | |
287 | * for this Manufacturer <code>Persistent</code>. | |
288 | * | |
289 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
290 | * @param cooked the pre-validated value to set | |
291 | */ | |
292 | public void setAddress_unsafe(String cooked) { | |
293 | 0 | address = cooked; |
294 | 0 | } |
295 | ||
296 | /** | |
297 | * Retrieves the Address value, with locking, for this | |
298 | * <code>Manufacturer</code> <code>Persistent</code>. | |
299 | * | |
300 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
301 | * @throws AccessPoemException | |
302 | * if the current <code>AccessToken</code> | |
303 | * does not confer write access rights | |
304 | * @return the value of the field <code>Address</code> for this | |
305 | * <code>Manufacturer</code> <code>Persistent</code> | |
306 | */ | |
307 | ||
308 | public String getAddress() | |
309 | throws AccessPoemException { | |
310 | 0 | readLock(); |
311 | 0 | return getAddress_unsafe(); |
312 | } | |
313 | ||
314 | ||
315 | /** | |
316 | * Sets the <code>Address</code> value, with checking, for this | |
317 | * <code>Manufacturer</code> <code>Persistent</code>. | |
318 | * | |
319 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
320 | * @param cooked a validated <code>int</code> | |
321 | * @throws AccessPoemException | |
322 | * if the current <code>AccessToken</code> | |
323 | * does not confer write access rights | |
324 | * @throws ValidationPoemException | |
325 | * if the value is not valid | |
326 | */ | |
327 | public void setAddress(String cooked) | |
328 | throws AccessPoemException, ValidationPoemException { | |
329 | 0 | _getManufacturerTable().getAddressColumn(). |
330 | getType().assertValidCooked(cooked); | |
331 | 0 | writeLock(); |
332 | 0 | setAddress_unsafe(cooked); |
333 | 0 | } |
334 | ||
335 | ||
336 | /** | |
337 | * Retrieves the <code>Address</code> value as a <code>Field</code> | |
338 | * from this <code>Manufacturer</code> <code>Persistent</code>. | |
339 | * | |
340 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
341 | * @throws AccessPoemException | |
342 | * if the current <code>AccessToken</code> | |
343 | * does not confer write access rights | |
344 | * @return the String address | |
345 | */ | |
346 | public Field getAddressField() throws AccessPoemException { | |
347 | 0 | Column c = _getManufacturerTable().getAddressColumn(); |
348 | 0 | return new Field(c.getRaw(this), c); |
349 | } | |
350 | ||
351 | ||
352 | /** | |
353 | * Retrieves the <code>Profile</code> value, without locking, | |
354 | * for this <code>Manufacturer</code> <code>Persistent</code>. | |
355 | * | |
356 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
357 | * @return the String profile | |
358 | */ | |
359 | public String getProfile_unsafe() { | |
360 | 0 | return profile; |
361 | } | |
362 | ||
363 | ||
364 | /** | |
365 | * Sets the <code>Profile</code> value directly, without checking, | |
366 | * for this Manufacturer <code>Persistent</code>. | |
367 | * | |
368 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
369 | * @param cooked the pre-validated value to set | |
370 | */ | |
371 | public void setProfile_unsafe(String cooked) { | |
372 | 0 | profile = cooked; |
373 | 0 | } |
374 | ||
375 | /** | |
376 | * Retrieves the Profile value, with locking, for this | |
377 | * <code>Manufacturer</code> <code>Persistent</code>. | |
378 | * | |
379 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
380 | * @throws AccessPoemException | |
381 | * if the current <code>AccessToken</code> | |
382 | * does not confer write access rights | |
383 | * @return the value of the field <code>Profile</code> for this | |
384 | * <code>Manufacturer</code> <code>Persistent</code> | |
385 | */ | |
386 | ||
387 | public String getProfile() | |
388 | throws AccessPoemException { | |
389 | 0 | readLock(); |
390 | 0 | return getProfile_unsafe(); |
391 | } | |
392 | ||
393 | ||
394 | /** | |
395 | * Sets the <code>Profile</code> value, with checking, for this | |
396 | * <code>Manufacturer</code> <code>Persistent</code>. | |
397 | * | |
398 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
399 | * @param cooked a validated <code>int</code> | |
400 | * @throws AccessPoemException | |
401 | * if the current <code>AccessToken</code> | |
402 | * does not confer write access rights | |
403 | * @throws ValidationPoemException | |
404 | * if the value is not valid | |
405 | */ | |
406 | public void setProfile(String cooked) | |
407 | throws AccessPoemException, ValidationPoemException { | |
408 | 0 | _getManufacturerTable().getProfileColumn(). |
409 | getType().assertValidCooked(cooked); | |
410 | 0 | writeLock(); |
411 | 0 | setProfile_unsafe(cooked); |
412 | 0 | } |
413 | ||
414 | ||
415 | /** | |
416 | * Retrieves the <code>Profile</code> value as a <code>Field</code> | |
417 | * from this <code>Manufacturer</code> <code>Persistent</code>. | |
418 | * | |
419 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
420 | * @throws AccessPoemException | |
421 | * if the current <code>AccessToken</code> | |
422 | * does not confer write access rights | |
423 | * @return the String profile | |
424 | */ | |
425 | public Field getProfileField() throws AccessPoemException { | |
426 | 0 | Column c = _getManufacturerTable().getProfileColumn(); |
427 | 0 | return new Field(c.getRaw(this), c); |
428 | } | |
429 | ||
430 | ||
431 | /** | |
432 | * Retrieves the <code>Contact</code> value, without locking, | |
433 | * for this <code>Manufacturer</code> <code>Persistent</code>. | |
434 | * | |
435 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
436 | * @return the String contact | |
437 | */ | |
438 | public String getContact_unsafe() { | |
439 | 0 | return contact; |
440 | } | |
441 | ||
442 | ||
443 | /** | |
444 | * Sets the <code>Contact</code> value directly, without checking, | |
445 | * for this Manufacturer <code>Persistent</code>. | |
446 | * | |
447 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
448 | * @param cooked the pre-validated value to set | |
449 | */ | |
450 | public void setContact_unsafe(String cooked) { | |
451 | 0 | contact = cooked; |
452 | 0 | } |
453 | ||
454 | /** | |
455 | * Retrieves the Contact value, with locking, for this | |
456 | * <code>Manufacturer</code> <code>Persistent</code>. | |
457 | * | |
458 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
459 | * @throws AccessPoemException | |
460 | * if the current <code>AccessToken</code> | |
461 | * does not confer write access rights | |
462 | * @return the value of the field <code>Contact</code> for this | |
463 | * <code>Manufacturer</code> <code>Persistent</code> | |
464 | */ | |
465 | ||
466 | public String getContact() | |
467 | throws AccessPoemException { | |
468 | 0 | readLock(); |
469 | 0 | return getContact_unsafe(); |
470 | } | |
471 | ||
472 | ||
473 | /** | |
474 | * Sets the <code>Contact</code> value, with checking, for this | |
475 | * <code>Manufacturer</code> <code>Persistent</code>. | |
476 | * | |
477 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
478 | * @param cooked a validated <code>int</code> | |
479 | * @throws AccessPoemException | |
480 | * if the current <code>AccessToken</code> | |
481 | * does not confer write access rights | |
482 | * @throws ValidationPoemException | |
483 | * if the value is not valid | |
484 | */ | |
485 | public void setContact(String cooked) | |
486 | throws AccessPoemException, ValidationPoemException { | |
487 | 0 | _getManufacturerTable().getContactColumn(). |
488 | getType().assertValidCooked(cooked); | |
489 | 0 | writeLock(); |
490 | 0 | setContact_unsafe(cooked); |
491 | 0 | } |
492 | ||
493 | ||
494 | /** | |
495 | * Retrieves the <code>Contact</code> value as a <code>Field</code> | |
496 | * from this <code>Manufacturer</code> <code>Persistent</code>. | |
497 | * | |
498 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
499 | * @throws AccessPoemException | |
500 | * if the current <code>AccessToken</code> | |
501 | * does not confer write access rights | |
502 | * @return the String contact | |
503 | */ | |
504 | public Field getContactField() throws AccessPoemException { | |
505 | 0 | Column c = _getManufacturerTable().getContactColumn(); |
506 | 0 | return new Field(c.getRaw(this), c); |
507 | } | |
508 | ||
509 | ||
510 | /** | |
511 | * Retrieves the <code>Minimumorder</code> value, without locking, | |
512 | * for this <code>Manufacturer</code> <code>Persistent</code>. | |
513 | * | |
514 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
515 | * @return the Double minimumorder | |
516 | */ | |
517 | public Double getMinimumorder_unsafe() { | |
518 | 0 | return minimumorder; |
519 | } | |
520 | ||
521 | ||
522 | /** | |
523 | * Sets the <code>Minimumorder</code> value directly, without checking, | |
524 | * for this Manufacturer <code>Persistent</code>. | |
525 | * | |
526 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
527 | * @param cooked the pre-validated value to set | |
528 | */ | |
529 | public void setMinimumorder_unsafe(Double cooked) { | |
530 | 0 | minimumorder = cooked; |
531 | 0 | } |
532 | ||
533 | /** | |
534 | * Retrieves the Minimumorder value, with locking, for this | |
535 | * <code>Manufacturer</code> <code>Persistent</code>. | |
536 | * | |
537 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
538 | * @throws AccessPoemException | |
539 | * if the current <code>AccessToken</code> | |
540 | * does not confer write access rights | |
541 | * @return the value of the field <code>Minimumorder</code> for this | |
542 | * <code>Manufacturer</code> <code>Persistent</code> | |
543 | */ | |
544 | ||
545 | public Double getMinimumorder() | |
546 | throws AccessPoemException { | |
547 | 0 | readLock(); |
548 | 0 | return getMinimumorder_unsafe(); |
549 | } | |
550 | ||
551 | ||
552 | /** | |
553 | * Sets the <code>Minimumorder</code> value, with checking, for this | |
554 | * <code>Manufacturer</code> <code>Persistent</code>. | |
555 | * | |
556 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
557 | * @param cooked a validated <code>int</code> | |
558 | * @throws AccessPoemException | |
559 | * if the current <code>AccessToken</code> | |
560 | * does not confer write access rights | |
561 | * @throws ValidationPoemException | |
562 | * if the value is not valid | |
563 | */ | |
564 | public void setMinimumorder(Double cooked) | |
565 | throws AccessPoemException, ValidationPoemException { | |
566 | 0 | _getManufacturerTable().getMinimumorderColumn(). |
567 | getType().assertValidCooked(cooked); | |
568 | 0 | writeLock(); |
569 | 0 | setMinimumorder_unsafe(cooked); |
570 | 0 | } |
571 | ||
572 | /** | |
573 | * Sets the <code>Minimumorder</code> value, with checking, for this <code>Manufacturer</code> <code>Persistent</code>. | |
574 | * | |
575 | * @generator org.melati.poem.prepro.DoubleFieldDef#generateBaseMethods | |
576 | * @param cooked a validated <code>int</code> | |
577 | * @throws AccessPoemException | |
578 | * if the current <code>AccessToken</code> | |
579 | * does not confer write access rights | |
580 | * @throws ValidationPoemException | |
581 | * if the value is not valid | |
582 | */ | |
583 | ||
584 | public final void setMinimumorder(double cooked) | |
585 | throws AccessPoemException, ValidationPoemException { | |
586 | 0 | setMinimumorder(new Double(cooked)); |
587 | 0 | } |
588 | ||
589 | ||
590 | /** | |
591 | * Retrieves the <code>Minimumorder</code> value as a <code>Field</code> | |
592 | * from this <code>Manufacturer</code> <code>Persistent</code>. | |
593 | * | |
594 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
595 | * @throws AccessPoemException | |
596 | * if the current <code>AccessToken</code> | |
597 | * does not confer write access rights | |
598 | * @return the Double minimumorder | |
599 | */ | |
600 | public Field getMinimumorderField() throws AccessPoemException { | |
601 | 0 | Column c = _getManufacturerTable().getMinimumorderColumn(); |
602 | 0 | return new Field(c.getRaw(this), c); |
603 | } | |
604 | ||
605 | ||
606 | /** | |
607 | * Retrieves the <code>Email</code> value, without locking, | |
608 | * for this <code>Manufacturer</code> <code>Persistent</code>. | |
609 | * | |
610 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
611 | * @return the String email | |
612 | */ | |
613 | public String getEmail_unsafe() { | |
614 | 0 | return email; |
615 | } | |
616 | ||
617 | ||
618 | /** | |
619 | * Sets the <code>Email</code> value directly, without checking, | |
620 | * for this Manufacturer <code>Persistent</code>. | |
621 | * | |
622 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
623 | * @param cooked the pre-validated value to set | |
624 | */ | |
625 | public void setEmail_unsafe(String cooked) { | |
626 | 0 | email = cooked; |
627 | 0 | } |
628 | ||
629 | /** | |
630 | * Retrieves the Email value, with locking, for this | |
631 | * <code>Manufacturer</code> <code>Persistent</code>. | |
632 | * Field description: | |
633 | * email | |
634 | * | |
635 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
636 | * @throws AccessPoemException | |
637 | * if the current <code>AccessToken</code> | |
638 | * does not confer write access rights | |
639 | * @return the value of the field <code>Email</code> for this | |
640 | * <code>Manufacturer</code> <code>Persistent</code> | |
641 | */ | |
642 | ||
643 | public String getEmail() | |
644 | throws AccessPoemException { | |
645 | 0 | readLock(); |
646 | 0 | return getEmail_unsafe(); |
647 | } | |
648 | ||
649 | ||
650 | /** | |
651 | * Sets the <code>Email</code> value, with checking, for this | |
652 | * <code>Manufacturer</code> <code>Persistent</code>. | |
653 | * Field description: | |
654 | * email | |
655 | * | |
656 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
657 | * @param cooked a validated <code>int</code> | |
658 | * @throws AccessPoemException | |
659 | * if the current <code>AccessToken</code> | |
660 | * does not confer write access rights | |
661 | * @throws ValidationPoemException | |
662 | * if the value is not valid | |
663 | */ | |
664 | public void setEmail(String cooked) | |
665 | throws AccessPoemException, ValidationPoemException { | |
666 | 0 | _getManufacturerTable().getEmailColumn(). |
667 | getType().assertValidCooked(cooked); | |
668 | 0 | writeLock(); |
669 | 0 | setEmail_unsafe(cooked); |
670 | 0 | } |
671 | ||
672 | ||
673 | /** | |
674 | * Retrieves the <code>Email</code> value as a <code>Field</code> | |
675 | * from this <code>Manufacturer</code> <code>Persistent</code>. | |
676 | * | |
677 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
678 | * @throws AccessPoemException | |
679 | * if the current <code>AccessToken</code> | |
680 | * does not confer write access rights | |
681 | * @return the String email | |
682 | */ | |
683 | public Field getEmailField() throws AccessPoemException { | |
684 | 0 | Column c = _getManufacturerTable().getEmailColumn(); |
685 | 0 | return new Field(c.getRaw(this), c); |
686 | } | |
687 | ||
688 | ||
689 | /** | |
690 | * Retrieves the <code>Website</code> value, without locking, | |
691 | * for this <code>Manufacturer</code> <code>Persistent</code>. | |
692 | * | |
693 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
694 | * @return the String website | |
695 | */ | |
696 | public String getWebsite_unsafe() { | |
697 | 0 | return website; |
698 | } | |
699 | ||
700 | ||
701 | /** | |
702 | * Sets the <code>Website</code> value directly, without checking, | |
703 | * for this Manufacturer <code>Persistent</code>. | |
704 | * | |
705 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
706 | * @param cooked the pre-validated value to set | |
707 | */ | |
708 | public void setWebsite_unsafe(String cooked) { | |
709 | 0 | website = cooked; |
710 | 0 | } |
711 | ||
712 | /** | |
713 | * Retrieves the Website value, with locking, for this | |
714 | * <code>Manufacturer</code> <code>Persistent</code>. | |
715 | * Field description: | |
716 | * website | |
717 | * | |
718 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
719 | * @throws AccessPoemException | |
720 | * if the current <code>AccessToken</code> | |
721 | * does not confer write access rights | |
722 | * @return the value of the field <code>Website</code> for this | |
723 | * <code>Manufacturer</code> <code>Persistent</code> | |
724 | */ | |
725 | ||
726 | public String getWebsite() | |
727 | throws AccessPoemException { | |
728 | 0 | readLock(); |
729 | 0 | return getWebsite_unsafe(); |
730 | } | |
731 | ||
732 | ||
733 | /** | |
734 | * Sets the <code>Website</code> value, with checking, for this | |
735 | * <code>Manufacturer</code> <code>Persistent</code>. | |
736 | * Field description: | |
737 | * website | |
738 | * | |
739 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
740 | * @param cooked a validated <code>int</code> | |
741 | * @throws AccessPoemException | |
742 | * if the current <code>AccessToken</code> | |
743 | * does not confer write access rights | |
744 | * @throws ValidationPoemException | |
745 | * if the value is not valid | |
746 | */ | |
747 | public void setWebsite(String cooked) | |
748 | throws AccessPoemException, ValidationPoemException { | |
749 | 0 | _getManufacturerTable().getWebsiteColumn(). |
750 | getType().assertValidCooked(cooked); | |
751 | 0 | writeLock(); |
752 | 0 | setWebsite_unsafe(cooked); |
753 | 0 | } |
754 | ||
755 | ||
756 | /** | |
757 | * Retrieves the <code>Website</code> value as a <code>Field</code> | |
758 | * from this <code>Manufacturer</code> <code>Persistent</code>. | |
759 | * | |
760 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
761 | * @throws AccessPoemException | |
762 | * if the current <code>AccessToken</code> | |
763 | * does not confer write access rights | |
764 | * @return the String website | |
765 | */ | |
766 | public Field getWebsiteField() throws AccessPoemException { | |
767 | 0 | Column c = _getManufacturerTable().getWebsiteColumn(); |
768 | 0 | return new Field(c.getRaw(this), c); |
769 | } | |
770 | ||
771 | ||
772 | /** | |
773 | * Retrieves the <code>Comment</code> value, without locking, | |
774 | * for this <code>Manufacturer</code> <code>Persistent</code>. | |
775 | * | |
776 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
777 | * @return the String comment | |
778 | */ | |
779 | public String getComment_unsafe() { | |
780 | 0 | return comment; |
781 | } | |
782 | ||
783 | ||
784 | /** | |
785 | * Sets the <code>Comment</code> value directly, without checking, | |
786 | * for this Manufacturer <code>Persistent</code>. | |
787 | * | |
788 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
789 | * @param cooked the pre-validated value to set | |
790 | */ | |
791 | public void setComment_unsafe(String cooked) { | |
792 | 0 | comment = cooked; |
793 | 0 | } |
794 | ||
795 | /** | |
796 | * Retrieves the Comment value, with locking, for this | |
797 | * <code>Manufacturer</code> <code>Persistent</code>. | |
798 | * Field description: | |
799 | * Comments | |
800 | * | |
801 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
802 | * @throws AccessPoemException | |
803 | * if the current <code>AccessToken</code> | |
804 | * does not confer write access rights | |
805 | * @return the value of the field <code>Comment</code> for this | |
806 | * <code>Manufacturer</code> <code>Persistent</code> | |
807 | */ | |
808 | ||
809 | public String getComment() | |
810 | throws AccessPoemException { | |
811 | 0 | readLock(); |
812 | 0 | return getComment_unsafe(); |
813 | } | |
814 | ||
815 | ||
816 | /** | |
817 | * Sets the <code>Comment</code> value, with checking, for this | |
818 | * <code>Manufacturer</code> <code>Persistent</code>. | |
819 | * Field description: | |
820 | * Comments | |
821 | * | |
822 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
823 | * @param cooked a validated <code>int</code> | |
824 | * @throws AccessPoemException | |
825 | * if the current <code>AccessToken</code> | |
826 | * does not confer write access rights | |
827 | * @throws ValidationPoemException | |
828 | * if the value is not valid | |
829 | */ | |
830 | public void setComment(String cooked) | |
831 | throws AccessPoemException, ValidationPoemException { | |
832 | 0 | _getManufacturerTable().getCommentColumn(). |
833 | getType().assertValidCooked(cooked); | |
834 | 0 | writeLock(); |
835 | 0 | setComment_unsafe(cooked); |
836 | 0 | } |
837 | ||
838 | ||
839 | /** | |
840 | * Retrieves the <code>Comment</code> value as a <code>Field</code> | |
841 | * from this <code>Manufacturer</code> <code>Persistent</code>. | |
842 | * | |
843 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
844 | * @throws AccessPoemException | |
845 | * if the current <code>AccessToken</code> | |
846 | * does not confer write access rights | |
847 | * @return the String comment | |
848 | */ | |
849 | public Field getCommentField() throws AccessPoemException { | |
850 | 0 | Column c = _getManufacturerTable().getCommentColumn(); |
851 | 0 | return new Field(c.getRaw(this), c); |
852 | } | |
853 | ||
854 | ||
855 | /** | |
856 | * Retrieves the <code>Deleted</code> value, without locking, | |
857 | * for this <code>Manufacturer</code> <code>Persistent</code>. | |
858 | * | |
859 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
860 | * @return the Boolean deleted | |
861 | */ | |
862 | public Boolean getDeleted_unsafe() { | |
863 | 0 | return deleted; |
864 | } | |
865 | ||
866 | ||
867 | /** | |
868 | * Sets the <code>Deleted</code> value directly, without checking, | |
869 | * for this Manufacturer <code>Persistent</code>. | |
870 | * | |
871 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
872 | * @param cooked the pre-validated value to set | |
873 | */ | |
874 | public void setDeleted_unsafe(Boolean cooked) { | |
875 | 0 | deleted = cooked; |
876 | 0 | } |
877 | ||
878 | /** | |
879 | * Retrieves the Deleted value, with locking, for this | |
880 | * <code>Manufacturer</code> <code>Persistent</code>. | |
881 | * Field description: | |
882 | * Check this box if you no longer deal with this supplier | |
883 | * | |
884 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
885 | * @throws AccessPoemException | |
886 | * if the current <code>AccessToken</code> | |
887 | * does not confer write access rights | |
888 | * @return the value of the field <code>Deleted</code> for this | |
889 | * <code>Manufacturer</code> <code>Persistent</code> | |
890 | */ | |
891 | ||
892 | public Boolean getDeleted() | |
893 | throws AccessPoemException { | |
894 | 0 | readLock(); |
895 | 0 | return getDeleted_unsafe(); |
896 | } | |
897 | ||
898 | ||
899 | /** | |
900 | * Sets the <code>Deleted</code> value, with checking, for this | |
901 | * <code>Manufacturer</code> <code>Persistent</code>. | |
902 | * Field description: | |
903 | * Check this box if you no longer deal with this supplier | |
904 | * | |
905 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
906 | * @param cooked a validated <code>int</code> | |
907 | * @throws AccessPoemException | |
908 | * if the current <code>AccessToken</code> | |
909 | * does not confer write access rights | |
910 | * @throws ValidationPoemException | |
911 | * if the value is not valid | |
912 | */ | |
913 | public void setDeleted(Boolean cooked) | |
914 | throws AccessPoemException, ValidationPoemException { | |
915 | 0 | _getManufacturerTable().getDeletedColumn(). |
916 | getType().assertValidCooked(cooked); | |
917 | 0 | writeLock(); |
918 | 0 | setDeleted_unsafe(cooked); |
919 | 0 | } |
920 | ||
921 | /** | |
922 | * Sets the <code>Deleted</code> value, with checking, | |
923 | * from a <code>boolean</code>, for this | |
924 | * <code>Manufacturer</code> <code>Persistent</code>. | |
925 | * Field description: | |
926 | * Check this box if you no longer deal with this supplier | |
927 | * | |
928 | * | |
929 | * @generator org.melati.poem.prepro.BooleanFieldDef#generateBaseMethods | |
930 | * @param cooked a <code>boolean</code> | |
931 | * @throws AccessPoemException | |
932 | * if the current <code>AccessToken</code> | |
933 | * does not confer write access rights | |
934 | * @throws ValidationPoemException | |
935 | * if the value is not valid | |
936 | */ | |
937 | ||
938 | public final void setDeleted(boolean cooked) | |
939 | throws AccessPoemException, ValidationPoemException { | |
940 | 0 | setDeleted(cooked ? Boolean.TRUE : Boolean.FALSE); |
941 | 0 | } |
942 | ||
943 | ||
944 | /** | |
945 | * Retrieves the <code>Deleted</code> value as a <code>Field</code> | |
946 | * from this <code>Manufacturer</code> <code>Persistent</code>. | |
947 | * | |
948 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
949 | * @throws AccessPoemException | |
950 | * if the current <code>AccessToken</code> | |
951 | * does not confer write access rights | |
952 | * @return the Boolean deleted | |
953 | */ | |
954 | public Field getDeletedField() throws AccessPoemException { | |
955 | 0 | Column c = _getManufacturerTable().getDeletedColumn(); |
956 | 0 | return new Field(c.getRaw(this), c); |
957 | } | |
958 | ||
959 | ||
960 | /** | |
961 | * Retrieves the <code>Tel</code> value, without locking, | |
962 | * for this <code>Manufacturer</code> <code>Persistent</code>. | |
963 | * | |
964 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
965 | * @return the String tel | |
966 | */ | |
967 | public String getTel_unsafe() { | |
968 | 0 | return tel; |
969 | } | |
970 | ||
971 | ||
972 | /** | |
973 | * Sets the <code>Tel</code> value directly, without checking, | |
974 | * for this Manufacturer <code>Persistent</code>. | |
975 | * | |
976 | * @generator org.melati.poem.prepro.FieldDef#generateBaseMethods | |
977 | * @param cooked the pre-validated value to set | |
978 | */ | |
979 | public void setTel_unsafe(String cooked) { | |
980 | 0 | tel = cooked; |
981 | 0 | } |
982 | ||
983 | /** | |
984 | * Retrieves the Tel value, with locking, for this | |
985 | * <code>Manufacturer</code> <code>Persistent</code>. | |
986 | * Field description: | |
987 | * Telephone number | |
988 | * | |
989 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
990 | * @throws AccessPoemException | |
991 | * if the current <code>AccessToken</code> | |
992 | * does not confer write access rights | |
993 | * @return the value of the field <code>Tel</code> for this | |
994 | * <code>Manufacturer</code> <code>Persistent</code> | |
995 | */ | |
996 | ||
997 | public String getTel() | |
998 | throws AccessPoemException { | |
999 | 0 | readLock(); |
1000 | 0 | return getTel_unsafe(); |
1001 | } | |
1002 | ||
1003 | ||
1004 | /** | |
1005 | * Sets the <code>Tel</code> value, with checking, for this | |
1006 | * <code>Manufacturer</code> <code>Persistent</code>. | |
1007 | * Field description: | |
1008 | * Telephone number | |
1009 | * | |
1010 | * @generator org.melati.poem.prepro.AtomFieldDef#generateBaseMethods | |
1011 | * @param cooked a validated <code>int</code> | |
1012 | * @throws AccessPoemException | |
1013 | * if the current <code>AccessToken</code> | |
1014 | * does not confer write access rights | |
1015 | * @throws ValidationPoemException | |
1016 | * if the value is not valid | |
1017 | */ | |
1018 | public void setTel(String cooked) | |
1019 | throws AccessPoemException, ValidationPoemException { | |
1020 | 0 | _getManufacturerTable().getTelColumn(). |
1021 | getType().assertValidCooked(cooked); | |
1022 | 0 | writeLock(); |
1023 | 0 | setTel_unsafe(cooked); |
1024 | 0 | } |
1025 | ||
1026 | ||
1027 | /** | |
1028 | * Retrieves the <code>Tel</code> value as a <code>Field</code> | |
1029 | * from this <code>Manufacturer</code> <code>Persistent</code>. | |
1030 | * | |
1031 | * @generator org.melati.poem.prepro.FieldDef#generateFieldCreator | |
1032 | * @throws AccessPoemException | |
1033 | * if the current <code>AccessToken</code> | |
1034 | * does not confer write access rights | |
1035 | * @return the String tel | |
1036 | */ | |
1037 | public Field getTelField() throws AccessPoemException { | |
1038 | 0 | Column c = _getManufacturerTable().getTelColumn(); |
1039 | 0 | return new Field(c.getRaw(this), c); |
1040 | } | |
1041 | } | |
1042 |