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