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.JdbcPersistent;
13 import org.melati.poem.ValidationPoemException;
14 import org.melati.poem.test.EverythingAbstract;
15 import org.melati.poem.test.EverythingAbstractTable;
16 import org.melati.poem.test.EverythingDatabaseTables;
17
18
19 /**
20 * Melati POEM generated abstract base class for a <code>Persistent</code>
21 * <code>EverythingAbstract</code> Object.
22 *
23 * See org.melati.poem.prepro.TableDef#generatePersistentBaseJava
24 */
25 public abstract class EverythingAbstractBase extends JdbcPersistent {
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>EverythingAbstractTable</code> table
41 * which this <code>Persistent</code> is from.
42 *
43 * See org.melati.poem.prepro.TableDef#generatePersistentBaseJava
44 * @return the EverythingAbstractTable
45 */
46 @SuppressWarnings("unchecked")
47 public EverythingAbstractTable<EverythingAbstract> getEverythingAbstractTable() {
48 return (EverythingAbstractTable<EverythingAbstract>)getTable();
49 }
50
51 @SuppressWarnings("unchecked")
52 private EverythingAbstractTable<EverythingAbstract> _getEverythingAbstractTable() {
53 return (EverythingAbstractTable<EverythingAbstract>)getTable();
54 }
55
56 // Fields in this table
57 /**
58 * Binaryfield
59 */
60 protected byte[] binaryfield;
61 /**
62 * String Field
63 */
64 protected String stringfield;
65 /**
66 * Password Field
67 */
68 protected String passwordfield;
69 /**
70 * Boolean Field
71 */
72 protected Boolean booleanfield;
73 /**
74 * Date Field
75 */
76 protected Date datefield;
77 /**
78 * Double Field
79 */
80 protected Double doublefield;
81 /**
82 * Integer Field
83 */
84 protected Integer integerfield;
85 /**
86 * Long Field
87 */
88 protected Long longfield;
89 /**
90 * BigDecimal Field
91 */
92 protected BigDecimal bigdecimalfield;
93 /**
94 * Timestamp Field
95 */
96 protected Timestamp timestampfield;
97
98
99 /**
100 * Retrieves the <code>Binaryfield</code> value, without locking,
101 * for this <code>EverythingAbstract</code> <code>Persistent</code>.
102 *
103 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
104 * @return the byte[] binaryfield
105 */
106 public byte[] getBinaryfield_unsafe() {
107 return binaryfield;
108 }
109
110
111 /**
112 * Sets the <code>Binaryfield</code> value directly, without checking,
113 * for this EverythingAbstract <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 setBinaryfield_unsafe(byte[] cooked) {
119 binaryfield = cooked;
120 }
121
122 /**
123 * Retrieves the Binaryfield value, with locking, for this
124 * <code>EverythingAbstract</code> <code>Persistent</code>.
125 *
126 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
127 * @throws AccessPoemException
128 * if the current <code>AccessToken</code>
129 * does not confer write access rights
130 * @return the value of the field <code>Binaryfield</code> for this
131 * <code>EverythingAbstract</code> <code>Persistent</code>
132 */
133
134 public byte[] getBinaryfield()
135 throws AccessPoemException {
136 readLock();
137 return getBinaryfield_unsafe();
138 }
139
140
141 /**
142 * Sets the <code>Binaryfield</code> value, with checking, for this
143 * <code>EverythingAbstract</code> <code>Persistent</code>.
144 *
145 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
146 * @param cooked a validated <code>int</code>
147 * @throws AccessPoemException
148 * if the current <code>AccessToken</code>
149 * does not confer write access rights
150 * @throws ValidationPoemException
151 * if the value is not valid
152 */
153 public void setBinaryfield(byte[] cooked)
154 throws AccessPoemException, ValidationPoemException {
155 _getEverythingAbstractTable().getBinaryfieldColumn().
156 getType().assertValidCooked(cooked);
157 writeLock();
158 setBinaryfield_unsafe(cooked);
159 }
160
161
162 /**
163 * Retrieves the <code>Binaryfield</code> value as a <code>Field</code>
164 * from this <code>EverythingAbstract</code> <code>Persistent</code>.
165 *
166 * see org.melati.poem.prepro.FieldDef#generateFieldCreator
167 * @throws AccessPoemException
168 * if the current <code>AccessToken</code>
169 * does not confer write access rights
170 * @return the byte[] binaryfield
171 */
172 public Field<byte[]> getBinaryfieldField() throws AccessPoemException {
173 Column<byte[]> c = _getEverythingAbstractTable().getBinaryfieldColumn();
174 return new Field<byte[]>((byte[])c.getRaw(this), c);
175 }
176
177
178 /**
179 * Retrieves the <code>Stringfield</code> value, without locking,
180 * for this <code>EverythingAbstract</code> <code>Persistent</code>.
181 *
182 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
183 * @return the String stringfield
184 */
185 public String getStringfield_unsafe() {
186 return stringfield;
187 }
188
189
190 /**
191 * Sets the <code>Stringfield</code> value directly, without checking,
192 * for this EverythingAbstract <code>Persistent</code>.
193 *
194 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
195 * @param cooked the pre-validated value to set
196 */
197 public void setStringfield_unsafe(String cooked) {
198 stringfield = cooked;
199 }
200
201 /**
202 * Retrieves the Stringfield value, with locking, for this
203 * <code>EverythingAbstract</code> <code>Persistent</code>.
204 *
205 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
206 * @throws AccessPoemException
207 * if the current <code>AccessToken</code>
208 * does not confer write access rights
209 * @return the value of the field <code>Stringfield</code> for this
210 * <code>EverythingAbstract</code> <code>Persistent</code>
211 */
212
213 public String getStringfield()
214 throws AccessPoemException {
215 readLock();
216 return getStringfield_unsafe();
217 }
218
219
220 /**
221 * Sets the <code>Stringfield</code> value, with checking, for this
222 * <code>EverythingAbstract</code> <code>Persistent</code>.
223 *
224 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
225 * @param cooked a validated <code>int</code>
226 * @throws AccessPoemException
227 * if the current <code>AccessToken</code>
228 * does not confer write access rights
229 * @throws ValidationPoemException
230 * if the value is not valid
231 */
232 public void setStringfield(String cooked)
233 throws AccessPoemException, ValidationPoemException {
234 _getEverythingAbstractTable().getStringfieldColumn().
235 getType().assertValidCooked(cooked);
236 writeLock();
237 setStringfield_unsafe(cooked);
238 }
239
240
241 /**
242 * Retrieves the <code>Stringfield</code> value as a <code>Field</code>
243 * from this <code>EverythingAbstract</code> <code>Persistent</code>.
244 *
245 * see org.melati.poem.prepro.FieldDef#generateFieldCreator
246 * @throws AccessPoemException
247 * if the current <code>AccessToken</code>
248 * does not confer write access rights
249 * @return the String stringfield
250 */
251 public Field<String> getStringfieldField() throws AccessPoemException {
252 Column<String> c = _getEverythingAbstractTable().getStringfieldColumn();
253 return new Field<String>((String)c.getRaw(this), c);
254 }
255
256
257 /**
258 * Retrieves the <code>Passwordfield</code> value, without locking,
259 * for this <code>EverythingAbstract</code> <code>Persistent</code>.
260 *
261 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
262 * @return the String passwordfield
263 */
264 public String getPasswordfield_unsafe() {
265 return passwordfield;
266 }
267
268
269 /**
270 * Sets the <code>Passwordfield</code> value directly, without checking,
271 * for this EverythingAbstract <code>Persistent</code>.
272 *
273 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
274 * @param cooked the pre-validated value to set
275 */
276 public void setPasswordfield_unsafe(String cooked) {
277 passwordfield = cooked;
278 }
279
280 /**
281 * Retrieves the Passwordfield value, with locking, for this
282 * <code>EverythingAbstract</code> <code>Persistent</code>.
283 *
284 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
285 * @throws AccessPoemException
286 * if the current <code>AccessToken</code>
287 * does not confer write access rights
288 * @return the value of the field <code>Passwordfield</code> for this
289 * <code>EverythingAbstract</code> <code>Persistent</code>
290 */
291
292 public String getPasswordfield()
293 throws AccessPoemException {
294 readLock();
295 return getPasswordfield_unsafe();
296 }
297
298
299 /**
300 * Sets the <code>Passwordfield</code> value, with checking, for this
301 * <code>EverythingAbstract</code> <code>Persistent</code>.
302 *
303 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
304 * @param cooked a validated <code>int</code>
305 * @throws AccessPoemException
306 * if the current <code>AccessToken</code>
307 * does not confer write access rights
308 * @throws ValidationPoemException
309 * if the value is not valid
310 */
311 public void setPasswordfield(String cooked)
312 throws AccessPoemException, ValidationPoemException {
313 _getEverythingAbstractTable().getPasswordfieldColumn().
314 getType().assertValidCooked(cooked);
315 writeLock();
316 setPasswordfield_unsafe(cooked);
317 }
318
319
320 /**
321 * Retrieves the <code>Passwordfield</code> value as a <code>Field</code>
322 * from this <code>EverythingAbstract</code> <code>Persistent</code>.
323 *
324 * see org.melati.poem.prepro.FieldDef#generateFieldCreator
325 * @throws AccessPoemException
326 * if the current <code>AccessToken</code>
327 * does not confer write access rights
328 * @return the String passwordfield
329 */
330 public Field<String> getPasswordfieldField() throws AccessPoemException {
331 Column<String> c = _getEverythingAbstractTable().getPasswordfieldColumn();
332 return new Field<String>((String)c.getRaw(this), c);
333 }
334
335
336 /**
337 * Retrieves the <code>Booleanfield</code> value, without locking,
338 * for this <code>EverythingAbstract</code> <code>Persistent</code>.
339 *
340 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
341 * @return the Boolean booleanfield
342 */
343 public Boolean getBooleanfield_unsafe() {
344 return booleanfield;
345 }
346
347
348 /**
349 * Sets the <code>Booleanfield</code> value directly, without checking,
350 * for this EverythingAbstract <code>Persistent</code>.
351 *
352 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
353 * @param cooked the pre-validated value to set
354 */
355 public void setBooleanfield_unsafe(Boolean cooked) {
356 booleanfield = cooked;
357 }
358
359 /**
360 * Retrieves the Booleanfield value, with locking, for this
361 * <code>EverythingAbstract</code> <code>Persistent</code>.
362 *
363 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
364 * @throws AccessPoemException
365 * if the current <code>AccessToken</code>
366 * does not confer write access rights
367 * @return the value of the field <code>Booleanfield</code> for this
368 * <code>EverythingAbstract</code> <code>Persistent</code>
369 */
370
371 public Boolean getBooleanfield()
372 throws AccessPoemException {
373 readLock();
374 return getBooleanfield_unsafe();
375 }
376
377
378 /**
379 * Sets the <code>Booleanfield</code> value, with checking, for this
380 * <code>EverythingAbstract</code> <code>Persistent</code>.
381 *
382 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
383 * @param cooked a validated <code>int</code>
384 * @throws AccessPoemException
385 * if the current <code>AccessToken</code>
386 * does not confer write access rights
387 * @throws ValidationPoemException
388 * if the value is not valid
389 */
390 public void setBooleanfield(Boolean cooked)
391 throws AccessPoemException, ValidationPoemException {
392 _getEverythingAbstractTable().getBooleanfieldColumn().
393 getType().assertValidCooked(cooked);
394 writeLock();
395 setBooleanfield_unsafe(cooked);
396 }
397
398 /**
399 * Sets the <code>Booleanfield</code> value, with checking,
400 * from a <code>boolean</code>, for this
401 * <code>EverythingAbstract</code> <code>Persistent</code>.
402 *
403 * Generated by org.melati.poem.prepro.BooleanFieldDef#generateBaseMethods
404 * @param cooked a <code>boolean</code>
405 * @throws AccessPoemException
406 * if the current <code>AccessToken</code>
407 * does not confer write access rights
408 * @throws ValidationPoemException
409 * if the value is not valid
410 */
411
412 public final void setBooleanfield(boolean cooked)
413 throws AccessPoemException, ValidationPoemException {
414 setBooleanfield(cooked ? Boolean.TRUE : Boolean.FALSE);
415 }
416
417
418 /**
419 * Retrieves the <code>Booleanfield</code> value as a <code>Field</code>
420 * from this <code>EverythingAbstract</code> <code>Persistent</code>.
421 *
422 * see org.melati.poem.prepro.FieldDef#generateFieldCreator
423 * @throws AccessPoemException
424 * if the current <code>AccessToken</code>
425 * does not confer write access rights
426 * @return the Boolean booleanfield
427 */
428 public Field<Boolean> getBooleanfieldField() throws AccessPoemException {
429 Column<Boolean> c = _getEverythingAbstractTable().getBooleanfieldColumn();
430 return new Field<Boolean>((Boolean)c.getRaw(this), c);
431 }
432
433
434 /**
435 * Retrieves the <code>Datefield</code> value, without locking,
436 * for this <code>EverythingAbstract</code> <code>Persistent</code>.
437 *
438 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
439 * @return the Date datefield
440 */
441 public Date getDatefield_unsafe() {
442 return datefield;
443 }
444
445
446 /**
447 * Sets the <code>Datefield</code> value directly, without checking,
448 * for this EverythingAbstract <code>Persistent</code>.
449 *
450 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
451 * @param cooked the pre-validated value to set
452 */
453 public void setDatefield_unsafe(Date cooked) {
454 datefield = cooked;
455 }
456
457 /**
458 * Retrieves the Datefield value, with locking, for this
459 * <code>EverythingAbstract</code> <code>Persistent</code>.
460 *
461 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
462 * @throws AccessPoemException
463 * if the current <code>AccessToken</code>
464 * does not confer write access rights
465 * @return the value of the field <code>Datefield</code> for this
466 * <code>EverythingAbstract</code> <code>Persistent</code>
467 */
468
469 public Date getDatefield()
470 throws AccessPoemException {
471 readLock();
472 return getDatefield_unsafe();
473 }
474
475
476 /**
477 * Sets the <code>Datefield</code> value, with checking, for this
478 * <code>EverythingAbstract</code> <code>Persistent</code>.
479 *
480 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
481 * @param cooked a validated <code>int</code>
482 * @throws AccessPoemException
483 * if the current <code>AccessToken</code>
484 * does not confer write access rights
485 * @throws ValidationPoemException
486 * if the value is not valid
487 */
488 public void setDatefield(Date cooked)
489 throws AccessPoemException, ValidationPoemException {
490 _getEverythingAbstractTable().getDatefieldColumn().
491 getType().assertValidCooked(cooked);
492 writeLock();
493 setDatefield_unsafe(cooked);
494 }
495
496
497 /**
498 * Retrieves the <code>Datefield</code> value as a <code>Field</code>
499 * from this <code>EverythingAbstract</code> <code>Persistent</code>.
500 *
501 * see org.melati.poem.prepro.FieldDef#generateFieldCreator
502 * @throws AccessPoemException
503 * if the current <code>AccessToken</code>
504 * does not confer write access rights
505 * @return the Date datefield
506 */
507 public Field<Date> getDatefieldField() throws AccessPoemException {
508 Column<Date> c = _getEverythingAbstractTable().getDatefieldColumn();
509 return new Field<Date>((Date)c.getRaw(this), c);
510 }
511
512
513 /**
514 * Retrieves the <code>Doublefield</code> value, without locking,
515 * for this <code>EverythingAbstract</code> <code>Persistent</code>.
516 *
517 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
518 * @return the Double doublefield
519 */
520 public Double getDoublefield_unsafe() {
521 return doublefield;
522 }
523
524
525 /**
526 * Sets the <code>Doublefield</code> value directly, without checking,
527 * for this EverythingAbstract <code>Persistent</code>.
528 *
529 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
530 * @param cooked the pre-validated value to set
531 */
532 public void setDoublefield_unsafe(Double cooked) {
533 doublefield = cooked;
534 }
535
536 /**
537 * Retrieves the Doublefield value, with locking, for this
538 * <code>EverythingAbstract</code> <code>Persistent</code>.
539 *
540 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
541 * @throws AccessPoemException
542 * if the current <code>AccessToken</code>
543 * does not confer write access rights
544 * @return the value of the field <code>Doublefield</code> for this
545 * <code>EverythingAbstract</code> <code>Persistent</code>
546 */
547
548 public Double getDoublefield()
549 throws AccessPoemException {
550 readLock();
551 return getDoublefield_unsafe();
552 }
553
554
555 /**
556 * Sets the <code>Doublefield</code> value, with checking, for this
557 * <code>EverythingAbstract</code> <code>Persistent</code>.
558 *
559 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
560 * @param cooked a validated <code>int</code>
561 * @throws AccessPoemException
562 * if the current <code>AccessToken</code>
563 * does not confer write access rights
564 * @throws ValidationPoemException
565 * if the value is not valid
566 */
567 public void setDoublefield(Double cooked)
568 throws AccessPoemException, ValidationPoemException {
569 _getEverythingAbstractTable().getDoublefieldColumn().
570 getType().assertValidCooked(cooked);
571 writeLock();
572 setDoublefield_unsafe(cooked);
573 }
574
575 /**
576 * Sets the <code>Doublefield</code> value, with checking, for this <code>EverythingAbstract</code> <code>Persistent</code>.
577 *
578 * Generated by org.melati.poem.prepro.DoubleFieldDef#generateBaseMethods
579 * @param cooked a validated <code>int</code>
580 * @throws AccessPoemException
581 * if the current <code>AccessToken</code>
582 * does not confer write access rights
583 * @throws ValidationPoemException
584 * if the value is not valid
585 */
586
587 public final void setDoublefield(double cooked)
588 throws AccessPoemException, ValidationPoemException {
589 setDoublefield(new Double(cooked));
590 }
591
592
593 /**
594 * Retrieves the <code>Doublefield</code> value as a <code>Field</code>
595 * from this <code>EverythingAbstract</code> <code>Persistent</code>.
596 *
597 * see org.melati.poem.prepro.FieldDef#generateFieldCreator
598 * @throws AccessPoemException
599 * if the current <code>AccessToken</code>
600 * does not confer write access rights
601 * @return the Double doublefield
602 */
603 public Field<Double> getDoublefieldField() throws AccessPoemException {
604 Column<Double> c = _getEverythingAbstractTable().getDoublefieldColumn();
605 return new Field<Double>((Double)c.getRaw(this), c);
606 }
607
608
609 /**
610 * Retrieves the <code>Integerfield</code> value, without locking,
611 * for this <code>EverythingAbstract</code> <code>Persistent</code>.
612 *
613 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
614 * @return the Integer integerfield
615 */
616 public Integer getIntegerfield_unsafe() {
617 return integerfield;
618 }
619
620
621 /**
622 * Sets the <code>Integerfield</code> value directly, without checking,
623 * for this EverythingAbstract <code>Persistent</code>.
624 *
625 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
626 * @param cooked the pre-validated value to set
627 */
628 public void setIntegerfield_unsafe(Integer cooked) {
629 integerfield = cooked;
630 }
631
632 /**
633 * Retrieves the Integerfield value, with locking, for this
634 * <code>EverythingAbstract</code> <code>Persistent</code>.
635 *
636 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
637 * @throws AccessPoemException
638 * if the current <code>AccessToken</code>
639 * does not confer write access rights
640 * @return the value of the field <code>Integerfield</code> for this
641 * <code>EverythingAbstract</code> <code>Persistent</code>
642 */
643
644 public Integer getIntegerfield()
645 throws AccessPoemException {
646 readLock();
647 return getIntegerfield_unsafe();
648 }
649
650
651 /**
652 * Sets the <code>Integerfield</code> value, with checking, for this
653 * <code>EverythingAbstract</code> <code>Persistent</code>.
654 *
655 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
656 * @param cooked a validated <code>int</code>
657 * @throws AccessPoemException
658 * if the current <code>AccessToken</code>
659 * does not confer write access rights
660 * @throws ValidationPoemException
661 * if the value is not valid
662 */
663 public void setIntegerfield(Integer cooked)
664 throws AccessPoemException, ValidationPoemException {
665 _getEverythingAbstractTable().getIntegerfieldColumn().
666 getType().assertValidCooked(cooked);
667 writeLock();
668 setIntegerfield_unsafe(cooked);
669 }
670
671 /**
672 * Sets the <code>Integerfield</code> value, with checking, for this
673 * <code>EverythingAbstract</code> <code>Persistent</code>.
674 *
675 * Generated by org.melati.poem.prepro.IntegerFieldDef#generateBaseMethods
676 * @param cooked a validated <code>int</code>
677 * @throws AccessPoemException
678 * if the current <code>AccessToken</code>
679 * does not confer write access rights
680 * @throws ValidationPoemException
681 * if the value is not valid
682 */
683
684 public final void setIntegerfield(int cooked)
685 throws AccessPoemException, ValidationPoemException {
686 setIntegerfield(new Integer(cooked));
687 }
688
689
690 /**
691 * Retrieves the <code>Integerfield</code> value as a <code>Field</code>
692 * from this <code>EverythingAbstract</code> <code>Persistent</code>.
693 *
694 * see org.melati.poem.prepro.FieldDef#generateFieldCreator
695 * @throws AccessPoemException
696 * if the current <code>AccessToken</code>
697 * does not confer write access rights
698 * @return the Integer integerfield
699 */
700 public Field<Integer> getIntegerfieldField() throws AccessPoemException {
701 Column<Integer> c = _getEverythingAbstractTable().getIntegerfieldColumn();
702 return new Field<Integer>((Integer)c.getRaw(this), c);
703 }
704
705
706 /**
707 * Retrieves the <code>Longfield</code> value, without locking,
708 * for this <code>EverythingAbstract</code> <code>Persistent</code>.
709 *
710 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
711 * @return the Long longfield
712 */
713 public Long getLongfield_unsafe() {
714 return longfield;
715 }
716
717
718 /**
719 * Sets the <code>Longfield</code> value directly, without checking,
720 * for this EverythingAbstract <code>Persistent</code>.
721 *
722 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
723 * @param cooked the pre-validated value to set
724 */
725 public void setLongfield_unsafe(Long cooked) {
726 longfield = cooked;
727 }
728
729 /**
730 * Retrieves the Longfield value, with locking, for this
731 * <code>EverythingAbstract</code> <code>Persistent</code>.
732 *
733 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
734 * @throws AccessPoemException
735 * if the current <code>AccessToken</code>
736 * does not confer write access rights
737 * @return the value of the field <code>Longfield</code> for this
738 * <code>EverythingAbstract</code> <code>Persistent</code>
739 */
740
741 public Long getLongfield()
742 throws AccessPoemException {
743 readLock();
744 return getLongfield_unsafe();
745 }
746
747
748 /**
749 * Sets the <code>Longfield</code> value, with checking, for this
750 * <code>EverythingAbstract</code> <code>Persistent</code>.
751 *
752 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
753 * @param cooked a validated <code>int</code>
754 * @throws AccessPoemException
755 * if the current <code>AccessToken</code>
756 * does not confer write access rights
757 * @throws ValidationPoemException
758 * if the value is not valid
759 */
760 public void setLongfield(Long cooked)
761 throws AccessPoemException, ValidationPoemException {
762 _getEverythingAbstractTable().getLongfieldColumn().
763 getType().assertValidCooked(cooked);
764 writeLock();
765 setLongfield_unsafe(cooked);
766 }
767
768 /**
769 * Sets the <code>Longfield</code> value, with checking, for this
770 * <code>EverythingAbstract</code> <code>Persistent</code>.
771 *
772 * Generated by org.melati.poem.prepro.LongFieldDef#generateBaseMethods
773 * @param cooked a validated <code>int</code>
774 * @throws AccessPoemException
775 * if the current <code>AccessToken</code>
776 * does not confer write access rights
777 * @throws ValidationPoemException
778 * if the value is not valid
779 */
780
781 public final void setLongfield(long cooked)
782 throws AccessPoemException, ValidationPoemException {
783 setLongfield(new Long(cooked));
784 }
785
786
787 /**
788 * Retrieves the <code>Longfield</code> value as a <code>Field</code>
789 * from this <code>EverythingAbstract</code> <code>Persistent</code>.
790 *
791 * see org.melati.poem.prepro.FieldDef#generateFieldCreator
792 * @throws AccessPoemException
793 * if the current <code>AccessToken</code>
794 * does not confer write access rights
795 * @return the Long longfield
796 */
797 public Field<Long> getLongfieldField() throws AccessPoemException {
798 Column<Long> c = _getEverythingAbstractTable().getLongfieldColumn();
799 return new Field<Long>((Long)c.getRaw(this), c);
800 }
801
802
803 /**
804 * Retrieves the <code>Bigdecimalfield</code> value, without locking,
805 * for this <code>EverythingAbstract</code> <code>Persistent</code>.
806 *
807 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
808 * @return the BigDecimal bigdecimalfield
809 */
810 public BigDecimal getBigdecimalfield_unsafe() {
811 return bigdecimalfield;
812 }
813
814
815 /**
816 * Sets the <code>Bigdecimalfield</code> value directly, without checking,
817 * for this EverythingAbstract <code>Persistent</code>.
818 *
819 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
820 * @param cooked the pre-validated value to set
821 */
822 public void setBigdecimalfield_unsafe(BigDecimal cooked) {
823 bigdecimalfield = cooked;
824 }
825
826 /**
827 * Retrieves the Bigdecimalfield value, with locking, for this
828 * <code>EverythingAbstract</code> <code>Persistent</code>.
829 *
830 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
831 * @throws AccessPoemException
832 * if the current <code>AccessToken</code>
833 * does not confer write access rights
834 * @return the value of the field <code>Bigdecimalfield</code> for this
835 * <code>EverythingAbstract</code> <code>Persistent</code>
836 */
837
838 public BigDecimal getBigdecimalfield()
839 throws AccessPoemException {
840 readLock();
841 return getBigdecimalfield_unsafe();
842 }
843
844
845 /**
846 * Sets the <code>Bigdecimalfield</code> value, with checking, for this
847 * <code>EverythingAbstract</code> <code>Persistent</code>.
848 *
849 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
850 * @param cooked a validated <code>int</code>
851 * @throws AccessPoemException
852 * if the current <code>AccessToken</code>
853 * does not confer write access rights
854 * @throws ValidationPoemException
855 * if the value is not valid
856 */
857 public void setBigdecimalfield(BigDecimal cooked)
858 throws AccessPoemException, ValidationPoemException {
859 _getEverythingAbstractTable().getBigdecimalfieldColumn().
860 getType().assertValidCooked(cooked);
861 writeLock();
862 setBigdecimalfield_unsafe(cooked);
863 }
864
865
866 /**
867 * Retrieves the <code>Bigdecimalfield</code> value as a <code>Field</code>
868 * from this <code>EverythingAbstract</code> <code>Persistent</code>.
869 *
870 * see org.melati.poem.prepro.FieldDef#generateFieldCreator
871 * @throws AccessPoemException
872 * if the current <code>AccessToken</code>
873 * does not confer write access rights
874 * @return the BigDecimal bigdecimalfield
875 */
876 public Field<BigDecimal> getBigdecimalfieldField() throws AccessPoemException {
877 Column<BigDecimal> c = _getEverythingAbstractTable().getBigdecimalfieldColumn();
878 return new Field<BigDecimal>((BigDecimal)c.getRaw(this), c);
879 }
880
881
882 /**
883 * Retrieves the <code>Timestampfield</code> value, without locking,
884 * for this <code>EverythingAbstract</code> <code>Persistent</code>.
885 *
886 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
887 * @return the Timestamp timestampfield
888 */
889 public Timestamp getTimestampfield_unsafe() {
890 return timestampfield;
891 }
892
893
894 /**
895 * Sets the <code>Timestampfield</code> value directly, without checking,
896 * for this EverythingAbstract <code>Persistent</code>.
897 *
898 * see org.melati.poem.prepro.FieldDef#generateBaseMethods
899 * @param cooked the pre-validated value to set
900 */
901 public void setTimestampfield_unsafe(Timestamp cooked) {
902 timestampfield = cooked;
903 }
904
905 /**
906 * Retrieves the Timestampfield value, with locking, for this
907 * <code>EverythingAbstract</code> <code>Persistent</code>.
908 *
909 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
910 * @throws AccessPoemException
911 * if the current <code>AccessToken</code>
912 * does not confer write access rights
913 * @return the value of the field <code>Timestampfield</code> for this
914 * <code>EverythingAbstract</code> <code>Persistent</code>
915 */
916
917 public Timestamp getTimestampfield()
918 throws AccessPoemException {
919 readLock();
920 return getTimestampfield_unsafe();
921 }
922
923
924 /**
925 * Sets the <code>Timestampfield</code> value, with checking, for this
926 * <code>EverythingAbstract</code> <code>Persistent</code>.
927 *
928 * Generated by org.melati.poem.prepro.AtomFieldDef#generateBaseMethods
929 * @param cooked a validated <code>int</code>
930 * @throws AccessPoemException
931 * if the current <code>AccessToken</code>
932 * does not confer write access rights
933 * @throws ValidationPoemException
934 * if the value is not valid
935 */
936 public void setTimestampfield(Timestamp cooked)
937 throws AccessPoemException, ValidationPoemException {
938 _getEverythingAbstractTable().getTimestampfieldColumn().
939 getType().assertValidCooked(cooked);
940 writeLock();
941 setTimestampfield_unsafe(cooked);
942 }
943
944
945 /**
946 * Retrieves the <code>Timestampfield</code> value as a <code>Field</code>
947 * from this <code>EverythingAbstract</code> <code>Persistent</code>.
948 *
949 * see org.melati.poem.prepro.FieldDef#generateFieldCreator
950 * @throws AccessPoemException
951 * if the current <code>AccessToken</code>
952 * does not confer write access rights
953 * @return the Timestamp timestampfield
954 */
955 public Field<Timestamp> getTimestampfieldField() throws AccessPoemException {
956 Column<Timestamp> c = _getEverythingAbstractTable().getTimestampfieldColumn();
957 return new Field<Timestamp>((Timestamp)c.getRaw(this), c);
958 }
959
960 }
961