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