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