1 | |
|
2 | |
|
3 | |
package org.paneris.jammyjoes.model.generated; |
4 | |
|
5 | |
import java.sql.Timestamp; |
6 | |
import org.melati.poem.AccessPoemException; |
7 | |
import org.melati.poem.BooleanPoemType; |
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.jammyjoes.model.Affiliate; |
24 | |
import org.paneris.jammyjoes.model.DeliveryZone; |
25 | |
import org.paneris.jammyjoes.model.JammyjoesDatabaseTables; |
26 | |
import org.paneris.jammyjoes.model.JammyjoesTable; |
27 | |
import org.paneris.jammyjoes.model.OrderStatus; |
28 | |
import org.paneris.jammyjoes.model.OrderType; |
29 | |
import org.paneris.jammyjoes.model.ShopCurrency; |
30 | |
import org.paneris.jammyjoes.model.ShopOrder; |
31 | |
import org.paneris.jammyjoes.model.User; |
32 | |
import org.paneris.jammyjoes.model.Wrapping; |
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
public class ShopOrderTableBase extends JammyjoesTable { |
43 | |
|
44 | 0 | private Column col_id = null; |
45 | 0 | private Column col_user = null; |
46 | 0 | private Column col_operator = null; |
47 | 0 | private Column col_status = null; |
48 | 0 | private Column col_type = null; |
49 | 0 | private Column col_date = null; |
50 | 0 | private Column col_fufilleddate = null; |
51 | 0 | private Column col_comment = null; |
52 | 0 | private Column col_customerComment = null; |
53 | 0 | private Column col_alert = null; |
54 | 0 | private Column col_message = null; |
55 | 0 | private Column col_amount = null; |
56 | 0 | private Column col_delivery = null; |
57 | 0 | private Column col_amountUK = null; |
58 | 0 | private Column col_deliveryUK = null; |
59 | 0 | private Column col_name = null; |
60 | 0 | private Column col_deliveryName = null; |
61 | 0 | private Column col_email = null; |
62 | 0 | private Column col_address = null; |
63 | 0 | private Column col_town = null; |
64 | 0 | private Column col_tel = null; |
65 | 0 | private Column col_postcode = null; |
66 | 0 | private Column col_country = null; |
67 | 0 | private Column col_currency = null; |
68 | 0 | private Column col_zone = null; |
69 | 0 | private Column col_wrapping = null; |
70 | 0 | private Column col_affiliate = null; |
71 | 0 | private Column col_affiliatepaid = null; |
72 | 0 | private Column col_comission = null; |
73 | 0 | private Column col_spam = null; |
74 | |
|
75 | |
|
76 | |
|
77 | |
|
78 | |
|
79 | |
|
80 | |
|
81 | |
|
82 | |
|
83 | |
|
84 | |
|
85 | |
public ShopOrderTableBase( |
86 | |
Database database, String name, |
87 | |
DefinitionSource definitionSource) throws PoemException { |
88 | 0 | super(database, name, definitionSource); |
89 | 0 | } |
90 | |
|
91 | |
|
92 | |
|
93 | |
|
94 | |
|
95 | |
|
96 | |
|
97 | |
|
98 | |
public JammyjoesDatabaseTables getJammyjoesDatabaseTables() { |
99 | 0 | return (JammyjoesDatabaseTables)getDatabase(); |
100 | |
} |
101 | |
|
102 | |
public void init() throws PoemException { |
103 | 0 | super.init(); |
104 | 0 | defineColumn(col_id = |
105 | |
new Column(this, "id", |
106 | |
new TroidPoemType(), |
107 | |
DefinitionSource.dsd) { |
108 | |
public Object getCooked(Persistent g) |
109 | |
throws AccessPoemException, PoemException { |
110 | 0 | return ((ShopOrder)g).getId(); |
111 | |
} |
112 | |
|
113 | |
public void setCooked(Persistent g, Object cooked) |
114 | |
throws AccessPoemException, ValidationPoemException { |
115 | 0 | ((ShopOrder)g).setId((Integer)cooked); |
116 | 0 | } |
117 | |
|
118 | |
public Field asField(Persistent g) { |
119 | 0 | return ((ShopOrder)g).getIdField(); |
120 | |
} |
121 | |
|
122 | |
protected boolean defaultUserEditable() { |
123 | 0 | return false; |
124 | |
} |
125 | |
|
126 | |
protected boolean defaultUserCreateable() { |
127 | 0 | return false; |
128 | |
} |
129 | |
|
130 | |
protected DisplayLevel defaultDisplayLevel() { |
131 | 0 | return DisplayLevel.summary; |
132 | |
} |
133 | |
|
134 | |
protected Searchability defaultSearchability() { |
135 | 0 | return Searchability.primary; |
136 | |
} |
137 | |
|
138 | |
protected int defaultDisplayOrder() { |
139 | 0 | return 0; |
140 | |
} |
141 | |
|
142 | |
public Object getRaw_unsafe(Persistent g) |
143 | |
throws AccessPoemException { |
144 | 0 | return ((ShopOrder)g).getId_unsafe(); |
145 | |
} |
146 | |
|
147 | |
public void setRaw_unsafe(Persistent g, Object raw) |
148 | |
throws AccessPoemException { |
149 | 0 | ((ShopOrder)g).setId_unsafe((Integer)raw); |
150 | 0 | } |
151 | |
|
152 | |
public Object getRaw(Persistent g) |
153 | |
throws AccessPoemException { |
154 | 0 | return ((ShopOrder)g).getId(); |
155 | |
} |
156 | |
|
157 | 0 | public void setRaw(Persistent g, Object raw) |
158 | |
throws AccessPoemException { |
159 | 0 | ((ShopOrder)g).setId((Integer)raw); |
160 | 0 | } |
161 | |
}); |
162 | |
|
163 | 0 | defineColumn(col_user = |
164 | |
new Column(this, "user", |
165 | |
new ReferencePoemType(getJammyjoesDatabaseTables(). |
166 | |
getUserTable(), false), |
167 | |
DefinitionSource.dsd) { |
168 | |
public Object getCooked(Persistent g) |
169 | |
throws AccessPoemException, PoemException { |
170 | 0 | return ((ShopOrder)g).getUser(); |
171 | |
} |
172 | |
|
173 | |
public void setCooked(Persistent g, Object cooked) |
174 | |
throws AccessPoemException, ValidationPoemException { |
175 | 0 | ((ShopOrder)g).setUser((User)cooked); |
176 | 0 | } |
177 | |
|
178 | |
public Field asField(Persistent g) { |
179 | 0 | return ((ShopOrder)g).getUserField(); |
180 | |
} |
181 | |
|
182 | |
protected DisplayLevel defaultDisplayLevel() { |
183 | 0 | return DisplayLevel.summary; |
184 | |
} |
185 | |
|
186 | |
protected Searchability defaultSearchability() { |
187 | 0 | return Searchability.yes; |
188 | |
} |
189 | |
|
190 | |
protected String defaultDisplayName() { |
191 | 0 | return "User"; |
192 | |
} |
193 | |
|
194 | |
protected int defaultDisplayOrder() { |
195 | 0 | return 1; |
196 | |
} |
197 | |
|
198 | |
protected String defaultDescription() { |
199 | 0 | return "The Customer"; |
200 | |
} |
201 | |
|
202 | |
protected boolean defaultIndexed() { |
203 | 0 | return true; |
204 | |
} |
205 | |
|
206 | |
protected String defaultRenderinfo() { |
207 | 0 | return "SelectionWindow"; |
208 | |
} |
209 | |
|
210 | |
public Object getRaw_unsafe(Persistent g) |
211 | |
throws AccessPoemException { |
212 | 0 | return ((ShopOrder)g).getUser_unsafe(); |
213 | |
} |
214 | |
|
215 | |
public void setRaw_unsafe(Persistent g, Object raw) |
216 | |
throws AccessPoemException { |
217 | 0 | ((ShopOrder)g).setUser_unsafe((Integer)raw); |
218 | 0 | } |
219 | |
|
220 | |
public Object getRaw(Persistent g) |
221 | |
throws AccessPoemException { |
222 | 0 | return ((ShopOrder)g).getUserTroid(); |
223 | |
} |
224 | |
|
225 | 0 | public void setRaw(Persistent g, Object raw) |
226 | |
throws AccessPoemException { |
227 | 0 | ((ShopOrder)g).setUserTroid((Integer)raw); |
228 | 0 | } |
229 | |
}); |
230 | |
|
231 | 0 | defineColumn(col_operator = |
232 | |
new Column(this, "operator", |
233 | |
new ReferencePoemType(getJammyjoesDatabaseTables(). |
234 | |
getUserTable(), true), |
235 | |
DefinitionSource.dsd) { |
236 | |
public Object getCooked(Persistent g) |
237 | |
throws AccessPoemException, PoemException { |
238 | 0 | return ((ShopOrder)g).getOperator(); |
239 | |
} |
240 | |
|
241 | |
public void setCooked(Persistent g, Object cooked) |
242 | |
throws AccessPoemException, ValidationPoemException { |
243 | 0 | ((ShopOrder)g).setOperator((User)cooked); |
244 | 0 | } |
245 | |
|
246 | |
public Field asField(Persistent g) { |
247 | 0 | return ((ShopOrder)g).getOperatorField(); |
248 | |
} |
249 | |
|
250 | |
protected DisplayLevel defaultDisplayLevel() { |
251 | 0 | return DisplayLevel.record; |
252 | |
} |
253 | |
|
254 | |
protected Searchability defaultSearchability() { |
255 | 0 | return Searchability.yes; |
256 | |
} |
257 | |
|
258 | |
protected String defaultDisplayName() { |
259 | 0 | return "Operator"; |
260 | |
} |
261 | |
|
262 | |
protected int defaultDisplayOrder() { |
263 | 0 | return 2; |
264 | |
} |
265 | |
|
266 | |
protected String defaultDescription() { |
267 | 0 | return "The Operator who took this Order"; |
268 | |
} |
269 | |
|
270 | |
protected boolean defaultIndexed() { |
271 | 0 | return true; |
272 | |
} |
273 | |
|
274 | |
protected String defaultRenderinfo() { |
275 | 0 | return "SelectionWindow"; |
276 | |
} |
277 | |
|
278 | |
public Object getRaw_unsafe(Persistent g) |
279 | |
throws AccessPoemException { |
280 | 0 | return ((ShopOrder)g).getOperator_unsafe(); |
281 | |
} |
282 | |
|
283 | |
public void setRaw_unsafe(Persistent g, Object raw) |
284 | |
throws AccessPoemException { |
285 | 0 | ((ShopOrder)g).setOperator_unsafe((Integer)raw); |
286 | 0 | } |
287 | |
|
288 | |
public Object getRaw(Persistent g) |
289 | |
throws AccessPoemException { |
290 | 0 | return ((ShopOrder)g).getOperatorTroid(); |
291 | |
} |
292 | |
|
293 | 0 | public void setRaw(Persistent g, Object raw) |
294 | |
throws AccessPoemException { |
295 | 0 | ((ShopOrder)g).setOperatorTroid((Integer)raw); |
296 | 0 | } |
297 | |
}); |
298 | |
|
299 | 0 | defineColumn(col_status = |
300 | |
new Column(this, "status", |
301 | |
new ReferencePoemType(getJammyjoesDatabaseTables(). |
302 | |
getOrderStatusTable(), false), |
303 | |
DefinitionSource.dsd) { |
304 | |
public Object getCooked(Persistent g) |
305 | |
throws AccessPoemException, PoemException { |
306 | 0 | return ((ShopOrder)g).getStatus(); |
307 | |
} |
308 | |
|
309 | |
public void setCooked(Persistent g, Object cooked) |
310 | |
throws AccessPoemException, ValidationPoemException { |
311 | 0 | ((ShopOrder)g).setStatus((OrderStatus)cooked); |
312 | 0 | } |
313 | |
|
314 | |
public Field asField(Persistent g) { |
315 | 0 | return ((ShopOrder)g).getStatusField(); |
316 | |
} |
317 | |
|
318 | |
protected DisplayLevel defaultDisplayLevel() { |
319 | 0 | return DisplayLevel.summary; |
320 | |
} |
321 | |
|
322 | |
protected Searchability defaultSearchability() { |
323 | 0 | return Searchability.yes; |
324 | |
} |
325 | |
|
326 | |
protected String defaultDisplayName() { |
327 | 0 | return "Status"; |
328 | |
} |
329 | |
|
330 | |
protected int defaultDisplayOrder() { |
331 | 0 | return 3; |
332 | |
} |
333 | |
|
334 | |
protected String defaultDescription() { |
335 | 0 | return "The status of this order"; |
336 | |
} |
337 | |
|
338 | |
protected boolean defaultIndexed() { |
339 | 0 | return true; |
340 | |
} |
341 | |
|
342 | |
public Object getRaw_unsafe(Persistent g) |
343 | |
throws AccessPoemException { |
344 | 0 | return ((ShopOrder)g).getStatus_unsafe(); |
345 | |
} |
346 | |
|
347 | |
public void setRaw_unsafe(Persistent g, Object raw) |
348 | |
throws AccessPoemException { |
349 | 0 | ((ShopOrder)g).setStatus_unsafe((Integer)raw); |
350 | 0 | } |
351 | |
|
352 | |
public Object getRaw(Persistent g) |
353 | |
throws AccessPoemException { |
354 | 0 | return ((ShopOrder)g).getStatusTroid(); |
355 | |
} |
356 | |
|
357 | 0 | public void setRaw(Persistent g, Object raw) |
358 | |
throws AccessPoemException { |
359 | 0 | ((ShopOrder)g).setStatusTroid((Integer)raw); |
360 | 0 | } |
361 | |
}); |
362 | |
|
363 | 0 | defineColumn(col_type = |
364 | |
new Column(this, "type", |
365 | |
new ReferencePoemType(getJammyjoesDatabaseTables(). |
366 | |
getOrderTypeTable(), false), |
367 | |
DefinitionSource.dsd) { |
368 | |
public Object getCooked(Persistent g) |
369 | |
throws AccessPoemException, PoemException { |
370 | 0 | return ((ShopOrder)g).getType(); |
371 | |
} |
372 | |
|
373 | |
public void setCooked(Persistent g, Object cooked) |
374 | |
throws AccessPoemException, ValidationPoemException { |
375 | 0 | ((ShopOrder)g).setType((OrderType)cooked); |
376 | 0 | } |
377 | |
|
378 | |
public Field asField(Persistent g) { |
379 | 0 | return ((ShopOrder)g).getTypeField(); |
380 | |
} |
381 | |
|
382 | |
protected DisplayLevel defaultDisplayLevel() { |
383 | 0 | return DisplayLevel.record; |
384 | |
} |
385 | |
|
386 | |
protected Searchability defaultSearchability() { |
387 | 0 | return Searchability.yes; |
388 | |
} |
389 | |
|
390 | |
protected String defaultDisplayName() { |
391 | 0 | return "Type"; |
392 | |
} |
393 | |
|
394 | |
protected int defaultDisplayOrder() { |
395 | 0 | return 4; |
396 | |
} |
397 | |
|
398 | |
protected String defaultDescription() { |
399 | 0 | return "The type of this order"; |
400 | |
} |
401 | |
|
402 | |
protected boolean defaultIndexed() { |
403 | 0 | return true; |
404 | |
} |
405 | |
|
406 | |
public Object getRaw_unsafe(Persistent g) |
407 | |
throws AccessPoemException { |
408 | 0 | return ((ShopOrder)g).getType_unsafe(); |
409 | |
} |
410 | |
|
411 | |
public void setRaw_unsafe(Persistent g, Object raw) |
412 | |
throws AccessPoemException { |
413 | 0 | ((ShopOrder)g).setType_unsafe((Integer)raw); |
414 | 0 | } |
415 | |
|
416 | |
public Object getRaw(Persistent g) |
417 | |
throws AccessPoemException { |
418 | 0 | return ((ShopOrder)g).getTypeTroid(); |
419 | |
} |
420 | |
|
421 | 0 | public void setRaw(Persistent g, Object raw) |
422 | |
throws AccessPoemException { |
423 | 0 | ((ShopOrder)g).setTypeTroid((Integer)raw); |
424 | 0 | } |
425 | |
}); |
426 | |
|
427 | 0 | defineColumn(col_date = |
428 | |
new Column(this, "date", |
429 | |
new TimestampPoemType(true), |
430 | |
DefinitionSource.dsd) { |
431 | |
public Object getCooked(Persistent g) |
432 | |
throws AccessPoemException, PoemException { |
433 | 0 | return ((ShopOrder)g).getDate(); |
434 | |
} |
435 | |
|
436 | |
public void setCooked(Persistent g, Object cooked) |
437 | |
throws AccessPoemException, ValidationPoemException { |
438 | 0 | ((ShopOrder)g).setDate((Timestamp)cooked); |
439 | 0 | } |
440 | |
|
441 | |
public Field asField(Persistent g) { |
442 | 0 | return ((ShopOrder)g).getDateField(); |
443 | |
} |
444 | |
|
445 | |
protected DisplayLevel defaultDisplayLevel() { |
446 | 0 | return DisplayLevel.summary; |
447 | |
} |
448 | |
|
449 | |
protected Searchability defaultSearchability() { |
450 | 0 | return Searchability.yes; |
451 | |
} |
452 | |
|
453 | |
protected Integer defaultDisplayOrderPriority() { |
454 | 0 | return new Integer(1); |
455 | |
} |
456 | |
|
457 | |
protected boolean defaultSortDescending() { |
458 | 0 | return true; |
459 | |
} |
460 | |
|
461 | |
protected String defaultDisplayName() { |
462 | 0 | return "Date"; |
463 | |
} |
464 | |
|
465 | |
protected int defaultDisplayOrder() { |
466 | 0 | return 5; |
467 | |
} |
468 | |
|
469 | |
protected String defaultDescription() { |
470 | 0 | return "The date that this order was placed (leave blank to autocomplete)"; |
471 | |
} |
472 | |
|
473 | |
public Object getRaw_unsafe(Persistent g) |
474 | |
throws AccessPoemException { |
475 | 0 | return ((ShopOrder)g).getDate_unsafe(); |
476 | |
} |
477 | |
|
478 | |
public void setRaw_unsafe(Persistent g, Object raw) |
479 | |
throws AccessPoemException { |
480 | 0 | ((ShopOrder)g).setDate_unsafe((Timestamp)raw); |
481 | 0 | } |
482 | |
|
483 | |
public Object getRaw(Persistent g) |
484 | |
throws AccessPoemException { |
485 | 0 | return ((ShopOrder)g).getDate(); |
486 | |
} |
487 | |
|
488 | 0 | public void setRaw(Persistent g, Object raw) |
489 | |
throws AccessPoemException { |
490 | 0 | ((ShopOrder)g).setDate((Timestamp)raw); |
491 | 0 | } |
492 | |
}); |
493 | |
|
494 | 0 | defineColumn(col_fufilleddate = |
495 | |
new Column(this, "fufilleddate", |
496 | |
new TimestampPoemType(true), |
497 | |
DefinitionSource.dsd) { |
498 | |
public Object getCooked(Persistent g) |
499 | |
throws AccessPoemException, PoemException { |
500 | 0 | return ((ShopOrder)g).getFufilleddate(); |
501 | |
} |
502 | |
|
503 | |
public void setCooked(Persistent g, Object cooked) |
504 | |
throws AccessPoemException, ValidationPoemException { |
505 | 0 | ((ShopOrder)g).setFufilleddate((Timestamp)cooked); |
506 | 0 | } |
507 | |
|
508 | |
public Field asField(Persistent g) { |
509 | 0 | return ((ShopOrder)g).getFufilleddateField(); |
510 | |
} |
511 | |
|
512 | |
protected DisplayLevel defaultDisplayLevel() { |
513 | 0 | return DisplayLevel.record; |
514 | |
} |
515 | |
|
516 | |
protected Searchability defaultSearchability() { |
517 | 0 | return Searchability.no; |
518 | |
} |
519 | |
|
520 | |
protected boolean defaultSortDescending() { |
521 | 0 | return true; |
522 | |
} |
523 | |
|
524 | |
protected String defaultDisplayName() { |
525 | 0 | return "Fufilled Date"; |
526 | |
} |
527 | |
|
528 | |
protected int defaultDisplayOrder() { |
529 | 0 | return 6; |
530 | |
} |
531 | |
|
532 | |
protected String defaultDescription() { |
533 | 0 | return "The date that this order was fufilled (leave blank to autocomplete)"; |
534 | |
} |
535 | |
|
536 | |
public Object getRaw_unsafe(Persistent g) |
537 | |
throws AccessPoemException { |
538 | 0 | return ((ShopOrder)g).getFufilleddate_unsafe(); |
539 | |
} |
540 | |
|
541 | |
public void setRaw_unsafe(Persistent g, Object raw) |
542 | |
throws AccessPoemException { |
543 | 0 | ((ShopOrder)g).setFufilleddate_unsafe((Timestamp)raw); |
544 | 0 | } |
545 | |
|
546 | |
public Object getRaw(Persistent g) |
547 | |
throws AccessPoemException { |
548 | 0 | return ((ShopOrder)g).getFufilleddate(); |
549 | |
} |
550 | |
|
551 | 0 | public void setRaw(Persistent g, Object raw) |
552 | |
throws AccessPoemException { |
553 | 0 | ((ShopOrder)g).setFufilleddate((Timestamp)raw); |
554 | 0 | } |
555 | |
}); |
556 | |
|
557 | 0 | defineColumn(col_comment = |
558 | |
new Column(this, "comment", |
559 | |
new StringPoemType(true, -1), |
560 | |
DefinitionSource.dsd) { |
561 | |
public Object getCooked(Persistent g) |
562 | |
throws AccessPoemException, PoemException { |
563 | 0 | return ((ShopOrder)g).getComment(); |
564 | |
} |
565 | |
|
566 | |
public void setCooked(Persistent g, Object cooked) |
567 | |
throws AccessPoemException, ValidationPoemException { |
568 | 0 | ((ShopOrder)g).setComment((String)cooked); |
569 | 0 | } |
570 | |
|
571 | |
public Field asField(Persistent g) { |
572 | 0 | return ((ShopOrder)g).getCommentField(); |
573 | |
} |
574 | |
|
575 | |
protected DisplayLevel defaultDisplayLevel() { |
576 | 0 | return DisplayLevel.record; |
577 | |
} |
578 | |
|
579 | |
protected Searchability defaultSearchability() { |
580 | 0 | return Searchability.yes; |
581 | |
} |
582 | |
|
583 | |
protected String defaultDisplayName() { |
584 | 0 | return "Comment"; |
585 | |
} |
586 | |
|
587 | |
protected int defaultDisplayOrder() { |
588 | 0 | return 7; |
589 | |
} |
590 | |
|
591 | |
protected String defaultDescription() { |
592 | 0 | return "Any comments by JammyJoes people reguarding this order"; |
593 | |
} |
594 | |
|
595 | |
protected int defaultWidth() { |
596 | 0 | return 30; |
597 | |
} |
598 | |
|
599 | |
protected int defaultHeight() { |
600 | 0 | return 5; |
601 | |
} |
602 | |
|
603 | |
public Object getRaw_unsafe(Persistent g) |
604 | |
throws AccessPoemException { |
605 | 0 | return ((ShopOrder)g).getComment_unsafe(); |
606 | |
} |
607 | |
|
608 | |
public void setRaw_unsafe(Persistent g, Object raw) |
609 | |
throws AccessPoemException { |
610 | 0 | ((ShopOrder)g).setComment_unsafe((String)raw); |
611 | 0 | } |
612 | |
|
613 | |
public Object getRaw(Persistent g) |
614 | |
throws AccessPoemException { |
615 | 0 | return ((ShopOrder)g).getComment(); |
616 | |
} |
617 | |
|
618 | 0 | public void setRaw(Persistent g, Object raw) |
619 | |
throws AccessPoemException { |
620 | 0 | ((ShopOrder)g).setComment((String)raw); |
621 | 0 | } |
622 | |
}); |
623 | |
|
624 | 0 | defineColumn(col_customerComment = |
625 | |
new Column(this, "customerComment", |
626 | |
new StringPoemType(true, -1), |
627 | |
DefinitionSource.dsd) { |
628 | |
public Object getCooked(Persistent g) |
629 | |
throws AccessPoemException, PoemException { |
630 | 0 | return ((ShopOrder)g).getCustomerComment(); |
631 | |
} |
632 | |
|
633 | |
public void setCooked(Persistent g, Object cooked) |
634 | |
throws AccessPoemException, ValidationPoemException { |
635 | 0 | ((ShopOrder)g).setCustomerComment((String)cooked); |
636 | 0 | } |
637 | |
|
638 | |
public Field asField(Persistent g) { |
639 | 0 | return ((ShopOrder)g).getCustomerCommentField(); |
640 | |
} |
641 | |
|
642 | |
protected DisplayLevel defaultDisplayLevel() { |
643 | 0 | return DisplayLevel.record; |
644 | |
} |
645 | |
|
646 | |
protected Searchability defaultSearchability() { |
647 | 0 | return Searchability.no; |
648 | |
} |
649 | |
|
650 | |
protected String defaultDisplayName() { |
651 | 0 | return "Comment"; |
652 | |
} |
653 | |
|
654 | |
protected int defaultDisplayOrder() { |
655 | 0 | return 8; |
656 | |
} |
657 | |
|
658 | |
protected String defaultDescription() { |
659 | 0 | return "Commends by the customer reguarding this order"; |
660 | |
} |
661 | |
|
662 | |
protected int defaultWidth() { |
663 | 0 | return 30; |
664 | |
} |
665 | |
|
666 | |
protected int defaultHeight() { |
667 | 0 | return 5; |
668 | |
} |
669 | |
|
670 | |
public Object getRaw_unsafe(Persistent g) |
671 | |
throws AccessPoemException { |
672 | 0 | return ((ShopOrder)g).getCustomerComment_unsafe(); |
673 | |
} |
674 | |
|
675 | |
public void setRaw_unsafe(Persistent g, Object raw) |
676 | |
throws AccessPoemException { |
677 | 0 | ((ShopOrder)g).setCustomerComment_unsafe((String)raw); |
678 | 0 | } |
679 | |
|
680 | |
public Object getRaw(Persistent g) |
681 | |
throws AccessPoemException { |
682 | 0 | return ((ShopOrder)g).getCustomerComment(); |
683 | |
} |
684 | |
|
685 | 0 | public void setRaw(Persistent g, Object raw) |
686 | |
throws AccessPoemException { |
687 | 0 | ((ShopOrder)g).setCustomerComment((String)raw); |
688 | 0 | } |
689 | |
}); |
690 | |
|
691 | 0 | defineColumn(col_alert = |
692 | |
new Column(this, "alert", |
693 | |
new BooleanPoemType(false), |
694 | |
DefinitionSource.dsd) { |
695 | |
public Object getCooked(Persistent g) |
696 | |
throws AccessPoemException, PoemException { |
697 | 0 | return ((ShopOrder)g).getAlert(); |
698 | |
} |
699 | |
|
700 | |
public void setCooked(Persistent g, Object cooked) |
701 | |
throws AccessPoemException, ValidationPoemException { |
702 | 0 | ((ShopOrder)g).setAlert((Boolean)cooked); |
703 | 0 | } |
704 | |
|
705 | |
public Field asField(Persistent g) { |
706 | 0 | return ((ShopOrder)g).getAlertField(); |
707 | |
} |
708 | |
|
709 | |
protected DisplayLevel defaultDisplayLevel() { |
710 | 0 | return DisplayLevel.record; |
711 | |
} |
712 | |
|
713 | |
protected Searchability defaultSearchability() { |
714 | 0 | return Searchability.yes; |
715 | |
} |
716 | |
|
717 | |
protected Integer defaultDisplayOrderPriority() { |
718 | 0 | return new Integer(0); |
719 | |
} |
720 | |
|
721 | |
protected boolean defaultSortDescending() { |
722 | 0 | return true; |
723 | |
} |
724 | |
|
725 | |
protected String defaultDisplayName() { |
726 | 0 | return "Alert!"; |
727 | |
} |
728 | |
|
729 | |
protected int defaultDisplayOrder() { |
730 | 0 | return 9; |
731 | |
} |
732 | |
|
733 | |
protected String defaultDescription() { |
734 | 0 | return "Please read the comments to find out new actions for this order"; |
735 | |
} |
736 | |
|
737 | |
public Object getRaw_unsafe(Persistent g) |
738 | |
throws AccessPoemException { |
739 | 0 | return ((ShopOrder)g).getAlert_unsafe(); |
740 | |
} |
741 | |
|
742 | |
public void setRaw_unsafe(Persistent g, Object raw) |
743 | |
throws AccessPoemException { |
744 | 0 | ((ShopOrder)g).setAlert_unsafe((Boolean)raw); |
745 | 0 | } |
746 | |
|
747 | |
public Object getRaw(Persistent g) |
748 | |
throws AccessPoemException { |
749 | 0 | return ((ShopOrder)g).getAlert(); |
750 | |
} |
751 | |
|
752 | 0 | public void setRaw(Persistent g, Object raw) |
753 | |
throws AccessPoemException { |
754 | 0 | ((ShopOrder)g).setAlert((Boolean)raw); |
755 | 0 | } |
756 | |
}); |
757 | |
|
758 | 0 | defineColumn(col_message = |
759 | |
new Column(this, "message", |
760 | |
new StringPoemType(true, -1), |
761 | |
DefinitionSource.dsd) { |
762 | |
public Object getCooked(Persistent g) |
763 | |
throws AccessPoemException, PoemException { |
764 | 0 | return ((ShopOrder)g).getMessage(); |
765 | |
} |
766 | |
|
767 | |
public void setCooked(Persistent g, Object cooked) |
768 | |
throws AccessPoemException, ValidationPoemException { |
769 | 0 | ((ShopOrder)g).setMessage((String)cooked); |
770 | 0 | } |
771 | |
|
772 | |
public Field asField(Persistent g) { |
773 | 0 | return ((ShopOrder)g).getMessageField(); |
774 | |
} |
775 | |
|
776 | |
protected DisplayLevel defaultDisplayLevel() { |
777 | 0 | return DisplayLevel.record; |
778 | |
} |
779 | |
|
780 | |
protected Searchability defaultSearchability() { |
781 | 0 | return Searchability.yes; |
782 | |
} |
783 | |
|
784 | |
protected String defaultDisplayName() { |
785 | 0 | return "Message"; |
786 | |
} |
787 | |
|
788 | |
protected int defaultDisplayOrder() { |
789 | 0 | return 10; |
790 | |
} |
791 | |
|
792 | |
protected String defaultDescription() { |
793 | 0 | return "A message to be included with this order"; |
794 | |
} |
795 | |
|
796 | |
protected int defaultWidth() { |
797 | 0 | return 30; |
798 | |
} |
799 | |
|
800 | |
protected int defaultHeight() { |
801 | 0 | return 5; |
802 | |
} |
803 | |
|
804 | |
public Object getRaw_unsafe(Persistent g) |
805 | |
throws AccessPoemException { |
806 | 0 | return ((ShopOrder)g).getMessage_unsafe(); |
807 | |
} |
808 | |
|
809 | |
public void setRaw_unsafe(Persistent g, Object raw) |
810 | |
throws AccessPoemException { |
811 | 0 | ((ShopOrder)g).setMessage_unsafe((String)raw); |
812 | 0 | } |
813 | |
|
814 | |
public Object getRaw(Persistent g) |
815 | |
throws AccessPoemException { |
816 | 0 | return ((ShopOrder)g).getMessage(); |
817 | |
} |
818 | |
|
819 | 0 | public void setRaw(Persistent g, Object raw) |
820 | |
throws AccessPoemException { |
821 | 0 | ((ShopOrder)g).setMessage((String)raw); |
822 | 0 | } |
823 | |
}); |
824 | |
|
825 | 0 | defineColumn(col_amount = |
826 | |
new Column(this, "amount", |
827 | |
new DoublePoemType(false), |
828 | |
DefinitionSource.dsd) { |
829 | |
public Object getCooked(Persistent g) |
830 | |
throws AccessPoemException, PoemException { |
831 | 0 | return ((ShopOrder)g).getAmount(); |
832 | |
} |
833 | |
|
834 | |
public void setCooked(Persistent g, Object cooked) |
835 | |
throws AccessPoemException, ValidationPoemException { |
836 | 0 | ((ShopOrder)g).setAmount((Double)cooked); |
837 | 0 | } |
838 | |
|
839 | |
public Field asField(Persistent g) { |
840 | 0 | return ((ShopOrder)g).getAmountField(); |
841 | |
} |
842 | |
|
843 | |
protected DisplayLevel defaultDisplayLevel() { |
844 | 0 | return DisplayLevel.record; |
845 | |
} |
846 | |
|
847 | |
protected Searchability defaultSearchability() { |
848 | 0 | return Searchability.no; |
849 | |
} |
850 | |
|
851 | |
protected String defaultDisplayName() { |
852 | 0 | return "Total Amount (in customer's currency)"; |
853 | |
} |
854 | |
|
855 | |
protected int defaultDisplayOrder() { |
856 | 0 | return 11; |
857 | |
} |
858 | |
|
859 | |
protected String defaultDescription() { |
860 | 0 | return "The total amount of the order (in customer's currency)"; |
861 | |
} |
862 | |
|
863 | |
public Object getRaw_unsafe(Persistent g) |
864 | |
throws AccessPoemException { |
865 | 0 | return ((ShopOrder)g).getAmount_unsafe(); |
866 | |
} |
867 | |
|
868 | |
public void setRaw_unsafe(Persistent g, Object raw) |
869 | |
throws AccessPoemException { |
870 | 0 | ((ShopOrder)g).setAmount_unsafe((Double)raw); |
871 | 0 | } |
872 | |
|
873 | |
public Object getRaw(Persistent g) |
874 | |
throws AccessPoemException { |
875 | 0 | return ((ShopOrder)g).getAmount(); |
876 | |
} |
877 | |
|
878 | 0 | public void setRaw(Persistent g, Object raw) |
879 | |
throws AccessPoemException { |
880 | 0 | ((ShopOrder)g).setAmount((Double)raw); |
881 | 0 | } |
882 | |
}); |
883 | |
|
884 | 0 | defineColumn(col_delivery = |
885 | |
new Column(this, "delivery", |
886 | |
new DoublePoemType(false), |
887 | |
DefinitionSource.dsd) { |
888 | |
public Object getCooked(Persistent g) |
889 | |
throws AccessPoemException, PoemException { |
890 | 0 | return ((ShopOrder)g).getDelivery(); |
891 | |
} |
892 | |
|
893 | |
public void setCooked(Persistent g, Object cooked) |
894 | |
throws AccessPoemException, ValidationPoemException { |
895 | 0 | ((ShopOrder)g).setDelivery((Double)cooked); |
896 | 0 | } |
897 | |
|
898 | |
public Field asField(Persistent g) { |
899 | 0 | return ((ShopOrder)g).getDeliveryField(); |
900 | |
} |
901 | |
|
902 | |
protected DisplayLevel defaultDisplayLevel() { |
903 | 0 | return DisplayLevel.record; |
904 | |
} |
905 | |
|
906 | |
protected Searchability defaultSearchability() { |
907 | 0 | return Searchability.no; |
908 | |
} |
909 | |
|
910 | |
protected String defaultDisplayName() { |
911 | 0 | return "Total Delivery (in customer's currency)"; |
912 | |
} |
913 | |
|
914 | |
protected int defaultDisplayOrder() { |
915 | 0 | return 12; |
916 | |
} |
917 | |
|
918 | |
protected String defaultDescription() { |
919 | 0 | return "The total delivery charge for the order (in customer's currency)"; |
920 | |
} |
921 | |
|
922 | |
public Object getRaw_unsafe(Persistent g) |
923 | |
throws AccessPoemException { |
924 | 0 | return ((ShopOrder)g).getDelivery_unsafe(); |
925 | |
} |
926 | |
|
927 | |
public void setRaw_unsafe(Persistent g, Object raw) |
928 | |
throws AccessPoemException { |
929 | 0 | ((ShopOrder)g).setDelivery_unsafe((Double)raw); |
930 | 0 | } |
931 | |
|
932 | |
public Object getRaw(Persistent g) |
933 | |
throws AccessPoemException { |
934 | 0 | return ((ShopOrder)g).getDelivery(); |
935 | |
} |
936 | |
|
937 | 0 | public void setRaw(Persistent g, Object raw) |
938 | |
throws AccessPoemException { |
939 | 0 | ((ShopOrder)g).setDelivery((Double)raw); |
940 | 0 | } |
941 | |
}); |
942 | |
|
943 | 0 | defineColumn(col_amountUK = |
944 | |
new Column(this, "amountUK", |
945 | |
new DoublePoemType(false), |
946 | |
DefinitionSource.dsd) { |
947 | |
public Object getCooked(Persistent g) |
948 | |
throws AccessPoemException, PoemException { |
949 | 0 | return ((ShopOrder)g).getAmountUK(); |
950 | |
} |
951 | |
|
952 | |
public void setCooked(Persistent g, Object cooked) |
953 | |
throws AccessPoemException, ValidationPoemException { |
954 | 0 | ((ShopOrder)g).setAmountUK((Double)cooked); |
955 | 0 | } |
956 | |
|
957 | |
public Field asField(Persistent g) { |
958 | 0 | return ((ShopOrder)g).getAmountUKField(); |
959 | |
} |
960 | |
|
961 | |
protected DisplayLevel defaultDisplayLevel() { |
962 | 0 | return DisplayLevel.summary; |
963 | |
} |
964 | |
|
965 | |
protected Searchability defaultSearchability() { |
966 | 0 | return Searchability.no; |
967 | |
} |
968 | |
|
969 | |
protected String defaultDisplayName() { |
970 | 0 | return "Total Amount"; |
971 | |
} |
972 | |
|
973 | |
protected int defaultDisplayOrder() { |
974 | 0 | return 13; |
975 | |
} |
976 | |
|
977 | |
protected String defaultDescription() { |
978 | 0 | return "The total amount of the order (UK Sterling Equivalent)"; |
979 | |
} |
980 | |
|
981 | |
public Object getRaw_unsafe(Persistent g) |
982 | |
throws AccessPoemException { |
983 | 0 | return ((ShopOrder)g).getAmountUK_unsafe(); |
984 | |
} |
985 | |
|
986 | |
public void setRaw_unsafe(Persistent g, Object raw) |
987 | |
throws AccessPoemException { |
988 | 0 | ((ShopOrder)g).setAmountUK_unsafe((Double)raw); |
989 | 0 | } |
990 | |
|
991 | |
public Object getRaw(Persistent g) |
992 | |
throws AccessPoemException { |
993 | 0 | return ((ShopOrder)g).getAmountUK(); |
994 | |
} |
995 | |
|
996 | 0 | public void setRaw(Persistent g, Object raw) |
997 | |
throws AccessPoemException { |
998 | 0 | ((ShopOrder)g).setAmountUK((Double)raw); |
999 | 0 | } |
1000 | |
}); |
1001 | |
|
1002 | 0 | defineColumn(col_deliveryUK = |
1003 | |
new Column(this, "deliveryUK", |
1004 | |
new DoublePoemType(false), |
1005 | |
DefinitionSource.dsd) { |
1006 | |
public Object getCooked(Persistent g) |
1007 | |
throws AccessPoemException, PoemException { |
1008 | 0 | return ((ShopOrder)g).getDeliveryUK(); |
1009 | |
} |
1010 | |
|
1011 | |
public void setCooked(Persistent g, Object cooked) |
1012 | |
throws AccessPoemException, ValidationPoemException { |
1013 | 0 | ((ShopOrder)g).setDeliveryUK((Double)cooked); |
1014 | 0 | } |
1015 | |
|
1016 | |
public Field asField(Persistent g) { |
1017 | 0 | return ((ShopOrder)g).getDeliveryUKField(); |
1018 | |
} |
1019 | |
|
1020 | |
protected DisplayLevel defaultDisplayLevel() { |
1021 | 0 | return DisplayLevel.record; |
1022 | |
} |
1023 | |
|
1024 | |
protected Searchability defaultSearchability() { |
1025 | 0 | return Searchability.no; |
1026 | |
} |
1027 | |
|
1028 | |
protected String defaultDisplayName() { |
1029 | 0 | return "Total Delivery (UK Sterling Equivalent)"; |
1030 | |
} |
1031 | |
|
1032 | |
protected int defaultDisplayOrder() { |
1033 | 0 | return 14; |
1034 | |
} |
1035 | |
|
1036 | |
protected String defaultDescription() { |
1037 | 0 | return "The total delivery charge for the order (UK Sterling Equivalent)"; |
1038 | |
} |
1039 | |
|
1040 | |
public Object getRaw_unsafe(Persistent g) |
1041 | |
throws AccessPoemException { |
1042 | 0 | return ((ShopOrder)g).getDeliveryUK_unsafe(); |
1043 | |
} |
1044 | |
|
1045 | |
public void setRaw_unsafe(Persistent g, Object raw) |
1046 | |
throws AccessPoemException { |
1047 | 0 | ((ShopOrder)g).setDeliveryUK_unsafe((Double)raw); |
1048 | 0 | } |
1049 | |
|
1050 | |
public Object getRaw(Persistent g) |
1051 | |
throws AccessPoemException { |
1052 | 0 | return ((ShopOrder)g).getDeliveryUK(); |
1053 | |
} |
1054 | |
|
1055 | 0 | public void setRaw(Persistent g, Object raw) |
1056 | |
throws AccessPoemException { |
1057 | 0 | ((ShopOrder)g).setDeliveryUK((Double)raw); |
1058 | 0 | } |
1059 | |
}); |
1060 | |
|
1061 | 0 | defineColumn(col_name = |
1062 | |
new Column(this, "name", |
1063 | |
new StringPoemType(false, -1), |
1064 | |
DefinitionSource.dsd) { |
1065 | |
public Object getCooked(Persistent g) |
1066 | |
throws AccessPoemException, PoemException { |
1067 | 0 | return ((ShopOrder)g).getName(); |
1068 | |
} |
1069 | |
|
1070 | |
public void setCooked(Persistent g, Object cooked) |
1071 | |
throws AccessPoemException, ValidationPoemException { |
1072 | 0 | ((ShopOrder)g).setName((String)cooked); |
1073 | 0 | } |
1074 | |
|
1075 | |
public Field asField(Persistent g) { |
1076 | 0 | return ((ShopOrder)g).getNameField(); |
1077 | |
} |
1078 | |
|
1079 | |
protected DisplayLevel defaultDisplayLevel() { |
1080 | 0 | return DisplayLevel.record; |
1081 | |
} |
1082 | |
|
1083 | |
protected String defaultDisplayName() { |
1084 | 0 | return "Full name"; |
1085 | |
} |
1086 | |
|
1087 | |
protected int defaultDisplayOrder() { |
1088 | 0 | return 15; |
1089 | |
} |
1090 | |
|
1091 | |
protected String defaultDescription() { |
1092 | 0 | return "The user's real name"; |
1093 | |
} |
1094 | |
|
1095 | |
public Object getRaw_unsafe(Persistent g) |
1096 | |
throws AccessPoemException { |
1097 | 0 | return ((ShopOrder)g).getName_unsafe(); |
1098 | |
} |
1099 | |
|
1100 | |
public void setRaw_unsafe(Persistent g, Object raw) |
1101 | |
throws AccessPoemException { |
1102 | 0 | ((ShopOrder)g).setName_unsafe((String)raw); |
1103 | 0 | } |
1104 | |
|
1105 | |
public Object getRaw(Persistent g) |
1106 | |
throws AccessPoemException { |
1107 | 0 | return ((ShopOrder)g).getName(); |
1108 | |
} |
1109 | |
|
1110 | 0 | public void setRaw(Persistent g, Object raw) |
1111 | |
throws AccessPoemException { |
1112 | 0 | ((ShopOrder)g).setName((String)raw); |
1113 | 0 | } |
1114 | |
}); |
1115 | |
|
1116 | 0 | defineColumn(col_deliveryName = |
1117 | |
new Column(this, "deliveryName", |
1118 | |
new StringPoemType(true, -1), |
1119 | |
DefinitionSource.dsd) { |
1120 | |
public Object getCooked(Persistent g) |
1121 | |
throws AccessPoemException, PoemException { |
1122 | 0 | return ((ShopOrder)g).getDeliveryName(); |
1123 | |
} |
1124 | |
|
1125 | |
public void setCooked(Persistent g, Object cooked) |
1126 | |
throws AccessPoemException, ValidationPoemException { |
1127 | 0 | ((ShopOrder)g).setDeliveryName((String)cooked); |
1128 | 0 | } |
1129 | |
|
1130 | |
public Field asField(Persistent g) { |
1131 | 0 | return ((ShopOrder)g).getDeliveryNameField(); |
1132 | |
} |
1133 | |
|
1134 | |
protected DisplayLevel defaultDisplayLevel() { |
1135 | 0 | return DisplayLevel.record; |
1136 | |
} |
1137 | |
|
1138 | |
protected String defaultDisplayName() { |
1139 | 0 | return "Delivery name"; |
1140 | |
} |
1141 | |
|
1142 | |
protected int defaultDisplayOrder() { |
1143 | 0 | return 16; |
1144 | |
} |
1145 | |
|
1146 | |
protected String defaultDescription() { |
1147 | 0 | return "The name of the persone to whom we are delivering"; |
1148 | |
} |
1149 | |
|
1150 | |
public Object getRaw_unsafe(Persistent g) |
1151 | |
throws AccessPoemException { |
1152 | 0 | return ((ShopOrder)g).getDeliveryName_unsafe(); |
1153 | |
} |
1154 | |
|
1155 | |
public void setRaw_unsafe(Persistent g, Object raw) |
1156 | |
throws AccessPoemException { |
1157 | 0 | ((ShopOrder)g).setDeliveryName_unsafe((String)raw); |
1158 | 0 | } |
1159 | |
|
1160 | |
public Object getRaw(Persistent g) |
1161 | |
throws AccessPoemException { |
1162 | 0 | return ((ShopOrder)g).getDeliveryName(); |
1163 | |
} |
1164 | |
|
1165 | 0 | public void setRaw(Persistent g, Object raw) |
1166 | |
throws AccessPoemException { |
1167 | 0 | ((ShopOrder)g).setDeliveryName((String)raw); |
1168 | 0 | } |
1169 | |
}); |
1170 | |
|
1171 | 0 | defineColumn(col_email = |
1172 | |
new Column(this, "email", |
1173 | |
new StringPoemType(true, -1), |
1174 | |
DefinitionSource.dsd) { |
1175 | |
public Object getCooked(Persistent g) |
1176 | |
throws AccessPoemException, PoemException { |
1177 | 0 | return ((ShopOrder)g).getEmail(); |
1178 | |
} |
1179 | |
|
1180 | |
public void setCooked(Persistent g, Object cooked) |
1181 | |
throws AccessPoemException, ValidationPoemException { |
1182 | 0 | ((ShopOrder)g).setEmail((String)cooked); |
1183 | 0 | } |
1184 | |
|
1185 | |
public Field asField(Persistent g) { |
1186 | 0 | return ((ShopOrder)g).getEmailField(); |
1187 | |
} |
1188 | |
|
1189 | |
protected DisplayLevel defaultDisplayLevel() { |
1190 | 0 | return DisplayLevel.record; |
1191 | |
} |
1192 | |
|
1193 | |
protected Searchability defaultSearchability() { |
1194 | 0 | return Searchability.no; |
1195 | |
} |
1196 | |
|
1197 | |
protected int defaultDisplayOrder() { |
1198 | 0 | return 17; |
1199 | |
} |
1200 | |
|
1201 | |
protected String defaultDescription() { |
1202 | 0 | return "email"; |
1203 | |
} |
1204 | |
|
1205 | |
protected int defaultWidth() { |
1206 | 0 | return 40; |
1207 | |
} |
1208 | |
|
1209 | |
public Object getRaw_unsafe(Persistent g) |
1210 | |
throws AccessPoemException { |
1211 | 0 | return ((ShopOrder)g).getEmail_unsafe(); |
1212 | |
} |
1213 | |
|
1214 | |
public void setRaw_unsafe(Persistent g, Object raw) |
1215 | |
throws AccessPoemException { |
1216 | 0 | ((ShopOrder)g).setEmail_unsafe((String)raw); |
1217 | 0 | } |
1218 | |
|
1219 | |
public Object getRaw(Persistent g) |
1220 | |
throws AccessPoemException { |
1221 | 0 | return ((ShopOrder)g).getEmail(); |
1222 | |
} |
1223 | |
|
1224 | 0 | public void setRaw(Persistent g, Object raw) |
1225 | |
throws AccessPoemException { |
1226 | 0 | ((ShopOrder)g).setEmail((String)raw); |
1227 | 0 | } |
1228 | |
}); |
1229 | |
|
1230 | 0 | defineColumn(col_address = |
1231 | |
new Column(this, "address", |
1232 | |
new StringPoemType(false, -1), |
1233 | |
DefinitionSource.dsd) { |
1234 | |
public Object getCooked(Persistent g) |
1235 | |
throws AccessPoemException, PoemException { |
1236 | 0 | return ((ShopOrder)g).getAddress(); |
1237 | |
} |
1238 | |
|
1239 | |
public void setCooked(Persistent g, Object cooked) |
1240 | |
throws AccessPoemException, ValidationPoemException { |
1241 | 0 | ((ShopOrder)g).setAddress((String)cooked); |
1242 | 0 | } |
1243 | |
|
1244 | |
public Field asField(Persistent g) { |
1245 | 0 | return ((ShopOrder)g).getAddressField(); |
1246 | |
} |
1247 | |
|
1248 | |
protected DisplayLevel defaultDisplayLevel() { |
1249 | 0 | return DisplayLevel.record; |
1250 | |
} |
1251 | |
|
1252 | |
protected String defaultDisplayName() { |
1253 | 0 | return "Address"; |
1254 | |
} |
1255 | |
|
1256 | |
protected int defaultDisplayOrder() { |
1257 | 0 | return 18; |
1258 | |
} |
1259 | |
|
1260 | |
protected int defaultWidth() { |
1261 | 0 | return 30; |
1262 | |
} |
1263 | |
|
1264 | |
protected int defaultHeight() { |
1265 | 0 | return 4; |
1266 | |
} |
1267 | |
|
1268 | |
public Object getRaw_unsafe(Persistent g) |
1269 | |
throws AccessPoemException { |
1270 | 0 | return ((ShopOrder)g).getAddress_unsafe(); |
1271 | |
} |
1272 | |
|
1273 | |
public void setRaw_unsafe(Persistent g, Object raw) |
1274 | |
throws AccessPoemException { |
1275 | 0 | ((ShopOrder)g).setAddress_unsafe((String)raw); |
1276 | 0 | } |
1277 | |
|
1278 | |
public Object getRaw(Persistent g) |
1279 | |
throws AccessPoemException { |
1280 | 0 | return ((ShopOrder)g).getAddress(); |
1281 | |
} |
1282 | |
|
1283 | 0 | public void setRaw(Persistent g, Object raw) |
1284 | |
throws AccessPoemException { |
1285 | 0 | ((ShopOrder)g).setAddress((String)raw); |
1286 | 0 | } |
1287 | |
}); |
1288 | |
|
1289 | 0 | defineColumn(col_town = |
1290 | |
new Column(this, "town", |
1291 | |
new StringPoemType(false, -1), |
1292 | |
DefinitionSource.dsd) { |
1293 | |
public Object getCooked(Persistent g) |
1294 | |
throws AccessPoemException, PoemException { |
1295 | 0 | return ((ShopOrder)g).getTown(); |
1296 | |
} |
1297 | |
|
1298 | |
public void setCooked(Persistent g, Object cooked) |
1299 | |
throws AccessPoemException, ValidationPoemException { |
1300 | 0 | ((ShopOrder)g).setTown((String)cooked); |
1301 | 0 | } |
1302 | |
|
1303 | |
public Field asField(Persistent g) { |
1304 | 0 | return ((ShopOrder)g).getTownField(); |
1305 | |
} |
1306 | |
|
1307 | |
protected DisplayLevel defaultDisplayLevel() { |
1308 | 0 | return DisplayLevel.record; |
1309 | |
} |
1310 | |
|
1311 | |
protected String defaultDisplayName() { |
1312 | 0 | return "Town / City"; |
1313 | |
} |
1314 | |
|
1315 | |
protected int defaultDisplayOrder() { |
1316 | 0 | return 19; |
1317 | |
} |
1318 | |
|
1319 | |
protected int defaultWidth() { |
1320 | 0 | return 30; |
1321 | |
} |
1322 | |
|
1323 | |
public Object getRaw_unsafe(Persistent g) |
1324 | |
throws AccessPoemException { |
1325 | 0 | return ((ShopOrder)g).getTown_unsafe(); |
1326 | |
} |
1327 | |
|
1328 | |
public void setRaw_unsafe(Persistent g, Object raw) |
1329 | |
throws AccessPoemException { |
1330 | 0 | ((ShopOrder)g).setTown_unsafe((String)raw); |
1331 | 0 | } |
1332 | |
|
1333 | |
public Object getRaw(Persistent g) |
1334 | |
throws AccessPoemException { |
1335 | 0 | return ((ShopOrder)g).getTown(); |
1336 | |
} |
1337 | |
|
1338 | 0 | public void setRaw(Persistent g, Object raw) |
1339 | |
throws AccessPoemException { |
1340 | 0 | ((ShopOrder)g).setTown((String)raw); |
1341 | 0 | } |
1342 | |
}); |
1343 | |
|
1344 | 0 | defineColumn(col_tel = |
1345 | |
new Column(this, "tel", |
1346 | |
new StringPoemType(false, -1), |
1347 | |
DefinitionSource.dsd) { |
1348 | |
public Object getCooked(Persistent g) |
1349 | |
throws AccessPoemException, PoemException { |
1350 | 0 | return ((ShopOrder)g).getTel(); |
1351 | |
} |
1352 | |
|
1353 | |
public void setCooked(Persistent g, Object cooked) |
1354 | |
throws AccessPoemException, ValidationPoemException { |
1355 | 0 | ((ShopOrder)g).setTel((String)cooked); |
1356 | 0 | } |
1357 | |
|
1358 | |
public Field asField(Persistent g) { |
1359 | 0 | return ((ShopOrder)g).getTelField(); |
1360 | |
} |
1361 | |
|
1362 | |
protected DisplayLevel defaultDisplayLevel() { |
1363 | 0 | return DisplayLevel.record; |
1364 | |
} |
1365 | |
|
1366 | |
protected String defaultDisplayName() { |
1367 | 0 | return "Telephone"; |
1368 | |
} |
1369 | |
|
1370 | |
protected int defaultDisplayOrder() { |
1371 | 0 | return 20; |
1372 | |
} |
1373 | |
|
1374 | |
protected String defaultDescription() { |
1375 | 0 | return "Order telephone number"; |
1376 | |
} |
1377 | |
|
1378 | |
public Object getRaw_unsafe(Persistent g) |
1379 | |
throws AccessPoemException { |
1380 | 0 | return ((ShopOrder)g).getTel_unsafe(); |
1381 | |
} |
1382 | |
|
1383 | |
public void setRaw_unsafe(Persistent g, Object raw) |
1384 | |
throws AccessPoemException { |
1385 | 0 | ((ShopOrder)g).setTel_unsafe((String)raw); |
1386 | 0 | } |
1387 | |
|
1388 | |
public Object getRaw(Persistent g) |
1389 | |
throws AccessPoemException { |
1390 | 0 | return ((ShopOrder)g).getTel(); |
1391 | |
} |
1392 | |
|
1393 | 0 | public void setRaw(Persistent g, Object raw) |
1394 | |
throws AccessPoemException { |
1395 | 0 | ((ShopOrder)g).setTel((String)raw); |
1396 | 0 | } |
1397 | |
}); |
1398 | |
|
1399 | 0 | defineColumn(col_postcode = |
1400 | |
new Column(this, "postcode", |
1401 | |
new StringPoemType(false, -1), |
1402 | |
DefinitionSource.dsd) { |
1403 | |
public Object getCooked(Persistent g) |
1404 | |
throws AccessPoemException, PoemException { |
1405 | 0 | return ((ShopOrder)g).getPostcode(); |
1406 | |
} |
1407 | |
|
1408 | |
public void setCooked(Persistent g, Object cooked) |
1409 | |
throws AccessPoemException, ValidationPoemException { |
1410 | 0 | ((ShopOrder)g).setPostcode((String)cooked); |
1411 | 0 | } |
1412 | |
|
1413 | |
public Field asField(Persistent g) { |
1414 | 0 | return ((ShopOrder)g).getPostcodeField(); |
1415 | |
} |
1416 | |
|
1417 | |
protected DisplayLevel defaultDisplayLevel() { |
1418 | 0 | return DisplayLevel.record; |
1419 | |
} |
1420 | |
|
1421 | |
protected String defaultDisplayName() { |
1422 | 0 | return "Postcode"; |
1423 | |
} |
1424 | |
|
1425 | |
protected int defaultDisplayOrder() { |
1426 | 0 | return 21; |
1427 | |
} |
1428 | |
|
1429 | |
protected String defaultDescription() { |
1430 | 0 | return "Order postcode"; |
1431 | |
} |
1432 | |
|
1433 | |
public Object getRaw_unsafe(Persistent g) |
1434 | |
throws AccessPoemException { |
1435 | 0 | return ((ShopOrder)g).getPostcode_unsafe(); |
1436 | |
} |
1437 | |
|
1438 | |
public void setRaw_unsafe(Persistent g, Object raw) |
1439 | |
throws AccessPoemException { |
1440 | 0 | ((ShopOrder)g).setPostcode_unsafe((String)raw); |
1441 | 0 | } |
1442 | |
|
1443 | |
public Object getRaw(Persistent g) |
1444 | |
throws AccessPoemException { |
1445 | 0 | return ((ShopOrder)g).getPostcode(); |
1446 | |
} |
1447 | |
|
1448 | 0 | public void setRaw(Persistent g, Object raw) |
1449 | |
throws AccessPoemException { |
1450 | 0 | ((ShopOrder)g).setPostcode((String)raw); |
1451 | 0 | } |
1452 | |
}); |
1453 | |
|
1454 | 0 | defineColumn(col_country = |
1455 | |
new Column(this, "country", |
1456 | |
new StringPoemType(false, -1), |
1457 | |
DefinitionSource.dsd) { |
1458 | |
public Object getCooked(Persistent g) |
1459 | |
throws AccessPoemException, PoemException { |
1460 | 0 | return ((ShopOrder)g).getCountry(); |
1461 | |
} |
1462 | |
|
1463 | |
public void setCooked(Persistent g, Object cooked) |
1464 | |
throws AccessPoemException, ValidationPoemException { |
1465 | 0 | ((ShopOrder)g).setCountry((String)cooked); |
1466 | 0 | } |
1467 | |
|
1468 | |
public Field asField(Persistent g) { |
1469 | 0 | return ((ShopOrder)g).getCountryField(); |
1470 | |
} |
1471 | |
|
1472 | |
protected DisplayLevel defaultDisplayLevel() { |
1473 | 0 | return DisplayLevel.record; |
1474 | |
} |
1475 | |
|
1476 | |
protected Searchability defaultSearchability() { |
1477 | 0 | return Searchability.yes; |
1478 | |
} |
1479 | |
|
1480 | |
protected String defaultDisplayName() { |
1481 | 0 | return "Country"; |
1482 | |
} |
1483 | |
|
1484 | |
protected int defaultDisplayOrder() { |
1485 | 0 | return 22; |
1486 | |
} |
1487 | |
|
1488 | |
public Object getRaw_unsafe(Persistent g) |
1489 | |
throws AccessPoemException { |
1490 | 0 | return ((ShopOrder)g).getCountry_unsafe(); |
1491 | |
} |
1492 | |
|
1493 | |
public void setRaw_unsafe(Persistent g, Object raw) |
1494 | |
throws AccessPoemException { |
1495 | 0 | ((ShopOrder)g).setCountry_unsafe((String)raw); |
1496 | 0 | } |
1497 | |
|
1498 | |
public Object getRaw(Persistent g) |
1499 | |
throws AccessPoemException { |
1500 | 0 | return ((ShopOrder)g).getCountry(); |
1501 | |
} |
1502 | |
|
1503 | 0 | public void setRaw(Persistent g, Object raw) |
1504 | |
throws AccessPoemException { |
1505 | 0 | ((ShopOrder)g).setCountry((String)raw); |
1506 | 0 | } |
1507 | |
}); |
1508 | |
|
1509 | 0 | defineColumn(col_currency = |
1510 | |
new Column(this, "currency", |
1511 | |
new ReferencePoemType(getJammyjoesDatabaseTables(). |
1512 | |
getShopCurrencyTable(), false), |
1513 | |
DefinitionSource.dsd) { |
1514 | |
public Object getCooked(Persistent g) |
1515 | |
throws AccessPoemException, PoemException { |
1516 | 0 | return ((ShopOrder)g).getCurrency(); |
1517 | |
} |
1518 | |
|
1519 | |
public void setCooked(Persistent g, Object cooked) |
1520 | |
throws AccessPoemException, ValidationPoemException { |
1521 | 0 | ((ShopOrder)g).setCurrency((ShopCurrency)cooked); |
1522 | 0 | } |
1523 | |
|
1524 | |
public Field asField(Persistent g) { |
1525 | 0 | return ((ShopOrder)g).getCurrencyField(); |
1526 | |
} |
1527 | |
|
1528 | |
protected DisplayLevel defaultDisplayLevel() { |
1529 | 0 | return DisplayLevel.record; |
1530 | |
} |
1531 | |
|
1532 | |
protected int defaultDisplayOrder() { |
1533 | 0 | return 23; |
1534 | |
} |
1535 | |
|
1536 | |
protected String defaultDescription() { |
1537 | 0 | return "The currency for this order"; |
1538 | |
} |
1539 | |
|
1540 | |
public Object getRaw_unsafe(Persistent g) |
1541 | |
throws AccessPoemException { |
1542 | 0 | return ((ShopOrder)g).getCurrency_unsafe(); |
1543 | |
} |
1544 | |
|
1545 | |
public void setRaw_unsafe(Persistent g, Object raw) |
1546 | |
throws AccessPoemException { |
1547 | 0 | ((ShopOrder)g).setCurrency_unsafe((Integer)raw); |
1548 | 0 | } |
1549 | |
|
1550 | |
public Object getRaw(Persistent g) |
1551 | |
throws AccessPoemException { |
1552 | 0 | return ((ShopOrder)g).getCurrencyTroid(); |
1553 | |
} |
1554 | |
|
1555 | 0 | public void setRaw(Persistent g, Object raw) |
1556 | |
throws AccessPoemException { |
1557 | 0 | ((ShopOrder)g).setCurrencyTroid((Integer)raw); |
1558 | 0 | } |
1559 | |
}); |
1560 | |
|
1561 | 0 | defineColumn(col_zone = |
1562 | |
new Column(this, "zone", |
1563 | |
new ReferencePoemType(getJammyjoesDatabaseTables(). |
1564 | |
getDeliveryZoneTable(), false), |
1565 | |
DefinitionSource.dsd) { |
1566 | |
public Object getCooked(Persistent g) |
1567 | |
throws AccessPoemException, PoemException { |
1568 | 0 | return ((ShopOrder)g).getZone(); |
1569 | |
} |
1570 | |
|
1571 | |
public void setCooked(Persistent g, Object cooked) |
1572 | |
throws AccessPoemException, ValidationPoemException { |
1573 | 0 | ((ShopOrder)g).setZone((DeliveryZone)cooked); |
1574 | 0 | } |
1575 | |
|
1576 | |
public Field asField(Persistent g) { |
1577 | 0 | return ((ShopOrder)g).getZoneField(); |
1578 | |
} |
1579 | |
|
1580 | |
protected DisplayLevel defaultDisplayLevel() { |
1581 | 0 | return DisplayLevel.record; |
1582 | |
} |
1583 | |
|
1584 | |
protected int defaultDisplayOrder() { |
1585 | 0 | return 24; |
1586 | |
} |
1587 | |
|
1588 | |
protected String defaultDescription() { |
1589 | 0 | return "The delivery zone for this order"; |
1590 | |
} |
1591 | |
|
1592 | |
public Object getRaw_unsafe(Persistent g) |
1593 | |
throws AccessPoemException { |
1594 | 0 | return ((ShopOrder)g).getZone_unsafe(); |
1595 | |
} |
1596 | |
|
1597 | |
public void setRaw_unsafe(Persistent g, Object raw) |
1598 | |
throws AccessPoemException { |
1599 | 0 | ((ShopOrder)g).setZone_unsafe((Integer)raw); |
1600 | 0 | } |
1601 | |
|
1602 | |
public Object getRaw(Persistent g) |
1603 | |
throws AccessPoemException { |
1604 | 0 | return ((ShopOrder)g).getZoneTroid(); |
1605 | |
} |
1606 | |
|
1607 | 0 | public void setRaw(Persistent g, Object raw) |
1608 | |
throws AccessPoemException { |
1609 | 0 | ((ShopOrder)g).setZoneTroid((Integer)raw); |
1610 | 0 | } |
1611 | |
}); |
1612 | |
|
1613 | 0 | defineColumn(col_wrapping = |
1614 | |
new Column(this, "wrapping", |
1615 | |
new ReferencePoemType(getJammyjoesDatabaseTables(). |
1616 | |
getWrappingTable(), false), |
1617 | |
DefinitionSource.dsd) { |
1618 | |
public Object getCooked(Persistent g) |
1619 | |
throws AccessPoemException, PoemException { |
1620 | 0 | return ((ShopOrder)g).getWrapping(); |
1621 | |
} |
1622 | |
|
1623 | |
public void setCooked(Persistent g, Object cooked) |
1624 | |
throws AccessPoemException, ValidationPoemException { |
1625 | 0 | ((ShopOrder)g).setWrapping((Wrapping)cooked); |
1626 | 0 | } |
1627 | |
|
1628 | |
public Field asField(Persistent g) { |
1629 | 0 | return ((ShopOrder)g).getWrappingField(); |
1630 | |
} |
1631 | |
|
1632 | |
protected DisplayLevel defaultDisplayLevel() { |
1633 | 0 | return DisplayLevel.record; |
1634 | |
} |
1635 | |
|
1636 | |
protected int defaultDisplayOrder() { |
1637 | 0 | return 25; |
1638 | |
} |
1639 | |
|
1640 | |
protected String defaultDescription() { |
1641 | 0 | return "What kind of wrapping paper should be used"; |
1642 | |
} |
1643 | |
|
1644 | |
public Object getRaw_unsafe(Persistent g) |
1645 | |
throws AccessPoemException { |
1646 | 0 | return ((ShopOrder)g).getWrapping_unsafe(); |
1647 | |
} |
1648 | |
|
1649 | |
public void setRaw_unsafe(Persistent g, Object raw) |
1650 | |
throws AccessPoemException { |
1651 | 0 | ((ShopOrder)g).setWrapping_unsafe((Integer)raw); |
1652 | 0 | } |
1653 | |
|
1654 | |
public Object getRaw(Persistent g) |
1655 | |
throws AccessPoemException { |
1656 | 0 | return ((ShopOrder)g).getWrappingTroid(); |
1657 | |
} |
1658 | |
|
1659 | 0 | public void setRaw(Persistent g, Object raw) |
1660 | |
throws AccessPoemException { |
1661 | 0 | ((ShopOrder)g).setWrappingTroid((Integer)raw); |
1662 | 0 | } |
1663 | |
}); |
1664 | |
|
1665 | 0 | defineColumn(col_affiliate = |
1666 | |
new Column(this, "affiliate", |
1667 | |
new ReferencePoemType(getJammyjoesDatabaseTables(). |
1668 | |
getAffiliateTable(), true), |
1669 | |
DefinitionSource.dsd) { |
1670 | |
public Object getCooked(Persistent g) |
1671 | |
throws AccessPoemException, PoemException { |
1672 | 0 | return ((ShopOrder)g).getAffiliate(); |
1673 | |
} |
1674 | |
|
1675 | |
public void setCooked(Persistent g, Object cooked) |
1676 | |
throws AccessPoemException, ValidationPoemException { |
1677 | 0 | ((ShopOrder)g).setAffiliate((Affiliate)cooked); |
1678 | 0 | } |
1679 | |
|
1680 | |
public Field asField(Persistent g) { |
1681 | 0 | return ((ShopOrder)g).getAffiliateField(); |
1682 | |
} |
1683 | |
|
1684 | |
protected DisplayLevel defaultDisplayLevel() { |
1685 | 0 | return DisplayLevel.record; |
1686 | |
} |
1687 | |
|
1688 | |
protected int defaultDisplayOrder() { |
1689 | 0 | return 26; |
1690 | |
} |
1691 | |
|
1692 | |
protected String defaultDescription() { |
1693 | 0 | return "The affiliate for this order (if any)"; |
1694 | |
} |
1695 | |
|
1696 | |
public Object getRaw_unsafe(Persistent g) |
1697 | |
throws AccessPoemException { |
1698 | 0 | return ((ShopOrder)g).getAffiliate_unsafe(); |
1699 | |
} |
1700 | |
|
1701 | |
public void setRaw_unsafe(Persistent g, Object raw) |
1702 | |
throws AccessPoemException { |
1703 | 0 | ((ShopOrder)g).setAffiliate_unsafe((Integer)raw); |
1704 | 0 | } |
1705 | |
|
1706 | |
public Object getRaw(Persistent g) |
1707 | |
throws AccessPoemException { |
1708 | 0 | return ((ShopOrder)g).getAffiliateTroid(); |
1709 | |
} |
1710 | |
|
1711 | 0 | public void setRaw(Persistent g, Object raw) |
1712 | |
throws AccessPoemException { |
1713 | 0 | ((ShopOrder)g).setAffiliateTroid((Integer)raw); |
1714 | 0 | } |
1715 | |
}); |
1716 | |
|
1717 | 0 | defineColumn(col_affiliatepaid = |
1718 | |
new Column(this, "affiliatepaid", |
1719 | |
new BooleanPoemType(false), |
1720 | |
DefinitionSource.dsd) { |
1721 | |
public Object getCooked(Persistent g) |
1722 | |
throws AccessPoemException, PoemException { |
1723 | 0 | return ((ShopOrder)g).getAffiliatepaid(); |
1724 | |
} |
1725 | |
|
1726 | |
public void setCooked(Persistent g, Object cooked) |
1727 | |
throws AccessPoemException, ValidationPoemException { |
1728 | 0 | ((ShopOrder)g).setAffiliatepaid((Boolean)cooked); |
1729 | 0 | } |
1730 | |
|
1731 | |
public Field asField(Persistent g) { |
1732 | 0 | return ((ShopOrder)g).getAffiliatepaidField(); |
1733 | |
} |
1734 | |
|
1735 | |
protected DisplayLevel defaultDisplayLevel() { |
1736 | 0 | return DisplayLevel.record; |
1737 | |
} |
1738 | |
|
1739 | |
protected Searchability defaultSearchability() { |
1740 | 0 | return Searchability.no; |
1741 | |
} |
1742 | |
|
1743 | |
protected String defaultDisplayName() { |
1744 | 0 | return "Affiliate Paid?"; |
1745 | |
} |
1746 | |
|
1747 | |
protected int defaultDisplayOrder() { |
1748 | 0 | return 27; |
1749 | |
} |
1750 | |
|
1751 | |
protected String defaultDescription() { |
1752 | 0 | return "Has the Affiliate been paid for this order?"; |
1753 | |
} |
1754 | |
|
1755 | |
public Object getRaw_unsafe(Persistent g) |
1756 | |
throws AccessPoemException { |
1757 | 0 | return ((ShopOrder)g).getAffiliatepaid_unsafe(); |
1758 | |
} |
1759 | |
|
1760 | |
public void setRaw_unsafe(Persistent g, Object raw) |
1761 | |
throws AccessPoemException { |
1762 | 0 | ((ShopOrder)g).setAffiliatepaid_unsafe((Boolean)raw); |
1763 | 0 | } |
1764 | |
|
1765 | |
public Object getRaw(Persistent g) |
1766 | |
throws AccessPoemException { |
1767 | 0 | return ((ShopOrder)g).getAffiliatepaid(); |
1768 | |
} |
1769 | |
|
1770 | 0 | public void setRaw(Persistent g, Object raw) |
1771 | |
throws AccessPoemException { |
1772 | 0 | ((ShopOrder)g).setAffiliatepaid((Boolean)raw); |
1773 | 0 | } |
1774 | |
}); |
1775 | |
|
1776 | 0 | defineColumn(col_comission = |
1777 | |
new Column(this, "comission", |
1778 | |
new DoublePoemType(false), |
1779 | |
DefinitionSource.dsd) { |
1780 | |
public Object getCooked(Persistent g) |
1781 | |
throws AccessPoemException, PoemException { |
1782 | 0 | return ((ShopOrder)g).getComission(); |
1783 | |
} |
1784 | |
|
1785 | |
public void setCooked(Persistent g, Object cooked) |
1786 | |
throws AccessPoemException, ValidationPoemException { |
1787 | 0 | ((ShopOrder)g).setComission((Double)cooked); |
1788 | 0 | } |
1789 | |
|
1790 | |
public Field asField(Persistent g) { |
1791 | 0 | return ((ShopOrder)g).getComissionField(); |
1792 | |
} |
1793 | |
|
1794 | |
protected DisplayLevel defaultDisplayLevel() { |
1795 | 0 | return DisplayLevel.record; |
1796 | |
} |
1797 | |
|
1798 | |
protected Searchability defaultSearchability() { |
1799 | 0 | return Searchability.no; |
1800 | |
} |
1801 | |
|
1802 | |
protected String defaultDisplayName() { |
1803 | 0 | return "Commission Percentage"; |
1804 | |
} |
1805 | |
|
1806 | |
protected int defaultDisplayOrder() { |
1807 | 0 | return 28; |
1808 | |
} |
1809 | |
|
1810 | |
protected String defaultDescription() { |
1811 | 0 | return "The Commission Percentage to go to the Affiliate"; |
1812 | |
} |
1813 | |
|
1814 | |
public Object getRaw_unsafe(Persistent g) |
1815 | |
throws AccessPoemException { |
1816 | 0 | return ((ShopOrder)g).getComission_unsafe(); |
1817 | |
} |
1818 | |
|
1819 | |
public void setRaw_unsafe(Persistent g, Object raw) |
1820 | |
throws AccessPoemException { |
1821 | 0 | ((ShopOrder)g).setComission_unsafe((Double)raw); |
1822 | 0 | } |
1823 | |
|
1824 | |
public Object getRaw(Persistent g) |
1825 | |
throws AccessPoemException { |
1826 | 0 | return ((ShopOrder)g).getComission(); |
1827 | |
} |
1828 | |
|
1829 | 0 | public void setRaw(Persistent g, Object raw) |
1830 | |
throws AccessPoemException { |
1831 | 0 | ((ShopOrder)g).setComission((Double)raw); |
1832 | 0 | } |
1833 | |
}); |
1834 | |
|
1835 | 0 | defineColumn(col_spam = |
1836 | |
new Column(this, "spam", |
1837 | |
new BooleanPoemType(false), |
1838 | |
DefinitionSource.dsd) { |
1839 | |
public Object getCooked(Persistent g) |
1840 | |
throws AccessPoemException, PoemException { |
1841 | 0 | return ((ShopOrder)g).getSpam(); |
1842 | |
} |
1843 | |
|
1844 | |
public void setCooked(Persistent g, Object cooked) |
1845 | |
throws AccessPoemException, ValidationPoemException { |
1846 | 0 | ((ShopOrder)g).setSpam((Boolean)cooked); |
1847 | 0 | } |
1848 | |
|
1849 | |
public Field asField(Persistent g) { |
1850 | 0 | return ((ShopOrder)g).getSpamField(); |
1851 | |
} |
1852 | |
|
1853 | |
protected DisplayLevel defaultDisplayLevel() { |
1854 | 0 | return DisplayLevel.record; |
1855 | |
} |
1856 | |
|
1857 | |
protected Searchability defaultSearchability() { |
1858 | 0 | return Searchability.no; |
1859 | |
} |
1860 | |
|
1861 | |
protected String defaultDisplayName() { |
1862 | 0 | return "Want Spam?"; |
1863 | |
} |
1864 | |
|
1865 | |
protected int defaultDisplayOrder() { |
1866 | 0 | return 29; |
1867 | |
} |
1868 | |
|
1869 | |
protected String defaultDescription() { |
1870 | 0 | return "Does the user want to receive spam email?"; |
1871 | |
} |
1872 | |
|
1873 | |
public Object getRaw_unsafe(Persistent g) |
1874 | |
throws AccessPoemException { |
1875 | 0 | return ((ShopOrder)g).getSpam_unsafe(); |
1876 | |
} |
1877 | |
|
1878 | |
public void setRaw_unsafe(Persistent g, Object raw) |
1879 | |
throws AccessPoemException { |
1880 | 0 | ((ShopOrder)g).setSpam_unsafe((Boolean)raw); |
1881 | 0 | } |
1882 | |
|
1883 | |
public Object getRaw(Persistent g) |
1884 | |
throws AccessPoemException { |
1885 | 0 | return ((ShopOrder)g).getSpam(); |
1886 | |
} |
1887 | |
|
1888 | 0 | public void setRaw(Persistent g, Object raw) |
1889 | |
throws AccessPoemException { |
1890 | 0 | ((ShopOrder)g).setSpam((Boolean)raw); |
1891 | 0 | } |
1892 | |
}); |
1893 | 0 | } |
1894 | |
|
1895 | |
|
1896 | |
|
1897 | |
|
1898 | |
|
1899 | |
|
1900 | |
|
1901 | |
|
1902 | |
|
1903 | |
public final Column getIdColumn() { |
1904 | 0 | return col_id; |
1905 | |
} |
1906 | |
|
1907 | |
|
1908 | |
|
1909 | |
|
1910 | |
|
1911 | |
|
1912 | |
|
1913 | |
|
1914 | |
|
1915 | |
public final Column getUserColumn() { |
1916 | 0 | return col_user; |
1917 | |
} |
1918 | |
|
1919 | |
|
1920 | |
|
1921 | |
|
1922 | |
|
1923 | |
|
1924 | |
|
1925 | |
|
1926 | |
|
1927 | |
public final Column getOperatorColumn() { |
1928 | 0 | return col_operator; |
1929 | |
} |
1930 | |
|
1931 | |
|
1932 | |
|
1933 | |
|
1934 | |
|
1935 | |
|
1936 | |
|
1937 | |
|
1938 | |
|
1939 | |
public final Column getStatusColumn() { |
1940 | 0 | return col_status; |
1941 | |
} |
1942 | |
|
1943 | |
|
1944 | |
|
1945 | |
|
1946 | |
|
1947 | |
|
1948 | |
|
1949 | |
|
1950 | |
|
1951 | |
public final Column getTypeColumn() { |
1952 | 0 | return col_type; |
1953 | |
} |
1954 | |
|
1955 | |
|
1956 | |
|
1957 | |
|
1958 | |
|
1959 | |
|
1960 | |
|
1961 | |
|
1962 | |
|
1963 | |
public final Column getDateColumn() { |
1964 | 0 | return col_date; |
1965 | |
} |
1966 | |
|
1967 | |
|
1968 | |
|
1969 | |
|
1970 | |
|
1971 | |
|
1972 | |
|
1973 | |
|
1974 | |
|
1975 | |
public final Column getFufilleddateColumn() { |
1976 | 0 | return col_fufilleddate; |
1977 | |
} |
1978 | |
|
1979 | |
|
1980 | |
|
1981 | |
|
1982 | |
|
1983 | |
|
1984 | |
|
1985 | |
|
1986 | |
|
1987 | |
public final Column getCommentColumn() { |
1988 | 0 | return col_comment; |
1989 | |
} |
1990 | |
|
1991 | |
|
1992 | |
|
1993 | |
|
1994 | |
|
1995 | |
|
1996 | |
|
1997 | |
|
1998 | |
|
1999 | |
public final Column getCustomerCommentColumn() { |
2000 | 0 | return col_customerComment; |
2001 | |
} |
2002 | |
|
2003 | |
|
2004 | |
|
2005 | |
|
2006 | |
|
2007 | |
|
2008 | |
|
2009 | |
|
2010 | |
|
2011 | |
public final Column getAlertColumn() { |
2012 | 0 | return col_alert; |
2013 | |
} |
2014 | |
|
2015 | |
|
2016 | |
|
2017 | |
|
2018 | |
|
2019 | |
|
2020 | |
|
2021 | |
|
2022 | |
|
2023 | |
public final Column getMessageColumn() { |
2024 | 0 | return col_message; |
2025 | |
} |
2026 | |
|
2027 | |
|
2028 | |
|
2029 | |
|
2030 | |
|
2031 | |
|
2032 | |
|
2033 | |
|
2034 | |
|
2035 | |
public final Column getAmountColumn() { |
2036 | 0 | return col_amount; |
2037 | |
} |
2038 | |
|
2039 | |
|
2040 | |
|
2041 | |
|
2042 | |
|
2043 | |
|
2044 | |
|
2045 | |
|
2046 | |
|
2047 | |
public final Column getDeliveryColumn() { |
2048 | 0 | return col_delivery; |
2049 | |
} |
2050 | |
|
2051 | |
|
2052 | |
|
2053 | |
|
2054 | |
|
2055 | |
|
2056 | |
|
2057 | |
|
2058 | |
|
2059 | |
public final Column getAmountUKColumn() { |
2060 | 0 | return col_amountUK; |
2061 | |
} |
2062 | |
|
2063 | |
|
2064 | |
|
2065 | |
|
2066 | |
|
2067 | |
|
2068 | |
|
2069 | |
|
2070 | |
|
2071 | |
public final Column getDeliveryUKColumn() { |
2072 | 0 | return col_deliveryUK; |
2073 | |
} |
2074 | |
|
2075 | |
|
2076 | |
|
2077 | |
|
2078 | |
|
2079 | |
|
2080 | |
|
2081 | |
|
2082 | |
|
2083 | |
public final Column getNameColumn() { |
2084 | 0 | return col_name; |
2085 | |
} |
2086 | |
|
2087 | |
|
2088 | |
|
2089 | |
|
2090 | |
|
2091 | |
|
2092 | |
|
2093 | |
|
2094 | |
|
2095 | |
public final Column getDeliveryNameColumn() { |
2096 | 0 | return col_deliveryName; |
2097 | |
} |
2098 | |
|
2099 | |
|
2100 | |
|
2101 | |
|
2102 | |
|
2103 | |
|
2104 | |
|
2105 | |
|
2106 | |
|
2107 | |
public final Column getEmailColumn() { |
2108 | 0 | return col_email; |
2109 | |
} |
2110 | |
|
2111 | |
|
2112 | |
|
2113 | |
|
2114 | |
|
2115 | |
|
2116 | |
|
2117 | |
|
2118 | |
|
2119 | |
public final Column getAddressColumn() { |
2120 | 0 | return col_address; |
2121 | |
} |
2122 | |
|
2123 | |
|
2124 | |
|
2125 | |
|
2126 | |
|
2127 | |
|
2128 | |
|
2129 | |
|
2130 | |
|
2131 | |
public final Column getTownColumn() { |
2132 | 0 | return col_town; |
2133 | |
} |
2134 | |
|
2135 | |
|
2136 | |
|
2137 | |
|
2138 | |
|
2139 | |
|
2140 | |
|
2141 | |
|
2142 | |
|
2143 | |
public final Column getTelColumn() { |
2144 | 0 | return col_tel; |
2145 | |
} |
2146 | |
|
2147 | |
|
2148 | |
|
2149 | |
|
2150 | |
|
2151 | |
|
2152 | |
|
2153 | |
|
2154 | |
|
2155 | |
public final Column getPostcodeColumn() { |
2156 | 0 | return col_postcode; |
2157 | |
} |
2158 | |
|
2159 | |
|
2160 | |
|
2161 | |
|
2162 | |
|
2163 | |
|
2164 | |
|
2165 | |
|
2166 | |
|
2167 | |
public final Column getCountryColumn() { |
2168 | 0 | return col_country; |
2169 | |
} |
2170 | |
|
2171 | |
|
2172 | |
|
2173 | |
|
2174 | |
|
2175 | |
|
2176 | |
|
2177 | |
|
2178 | |
|
2179 | |
public final Column getCurrencyColumn() { |
2180 | 0 | return col_currency; |
2181 | |
} |
2182 | |
|
2183 | |
|
2184 | |
|
2185 | |
|
2186 | |
|
2187 | |
|
2188 | |
|
2189 | |
|
2190 | |
|
2191 | |
public final Column getZoneColumn() { |
2192 | 0 | return col_zone; |
2193 | |
} |
2194 | |
|
2195 | |
|
2196 | |
|
2197 | |
|
2198 | |
|
2199 | |
|
2200 | |
|
2201 | |
|
2202 | |
|
2203 | |
public final Column getWrappingColumn() { |
2204 | 0 | return col_wrapping; |
2205 | |
} |
2206 | |
|
2207 | |
|
2208 | |
|
2209 | |
|
2210 | |
|
2211 | |
|
2212 | |
|
2213 | |
|
2214 | |
|
2215 | |
public final Column getAffiliateColumn() { |
2216 | 0 | return col_affiliate; |
2217 | |
} |
2218 | |
|
2219 | |
|
2220 | |
|
2221 | |
|
2222 | |
|
2223 | |
|
2224 | |
|
2225 | |
|
2226 | |
|
2227 | |
public final Column getAffiliatepaidColumn() { |
2228 | 0 | return col_affiliatepaid; |
2229 | |
} |
2230 | |
|
2231 | |
|
2232 | |
|
2233 | |
|
2234 | |
|
2235 | |
|
2236 | |
|
2237 | |
|
2238 | |
|
2239 | |
public final Column getComissionColumn() { |
2240 | 0 | return col_comission; |
2241 | |
} |
2242 | |
|
2243 | |
|
2244 | |
|
2245 | |
|
2246 | |
|
2247 | |
|
2248 | |
|
2249 | |
|
2250 | |
|
2251 | |
public final Column getSpamColumn() { |
2252 | 0 | return col_spam; |
2253 | |
} |
2254 | |
|
2255 | |
|
2256 | |
|
2257 | |
|
2258 | |
|
2259 | |
|
2260 | |
|
2261 | |
|
2262 | |
|
2263 | |
public ShopOrder getShopOrderObject(Integer troid) { |
2264 | 0 | return (ShopOrder)getObject(troid); |
2265 | |
} |
2266 | |
|
2267 | |
|
2268 | |
|
2269 | |
|
2270 | |
|
2271 | |
|
2272 | |
|
2273 | |
|
2274 | |
|
2275 | |
public ShopOrder getShopOrderObject(int troid) { |
2276 | 0 | return (ShopOrder)getObject(troid); |
2277 | |
} |
2278 | |
|
2279 | |
protected JdbcPersistent _newPersistent() { |
2280 | 0 | return new ShopOrder(); |
2281 | |
} |
2282 | |
protected String defaultDisplayName() { |
2283 | 0 | return "Order"; |
2284 | |
} |
2285 | |
|
2286 | |
protected String defaultDescription() { |
2287 | 0 | return "A Customer's Order"; |
2288 | |
} |
2289 | |
|
2290 | |
protected String defaultCategory() { |
2291 | 0 | return "Data"; |
2292 | |
} |
2293 | |
|
2294 | |
protected int defaultDisplayOrder() { |
2295 | 0 | return 60; |
2296 | |
} |
2297 | |
} |
2298 | |
|