1 | |
|
2 | |
|
3 | |
package org.paneris.jammyjoes.model.generated; |
4 | |
|
5 | |
import java.sql.Date; |
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.DatePoemType; |
11 | |
import org.melati.poem.DefinitionSource; |
12 | |
import org.melati.poem.DisplayLevel; |
13 | |
import org.melati.poem.DoublePoemType; |
14 | |
import org.melati.poem.Field; |
15 | |
import org.melati.poem.IntegerPoemType; |
16 | |
import org.melati.poem.JdbcPersistent; |
17 | |
import org.melati.poem.Persistent; |
18 | |
import org.melati.poem.PoemException; |
19 | |
import org.melati.poem.ReferencePoemType; |
20 | |
import org.melati.poem.Searchability; |
21 | |
import org.melati.poem.StringPoemType; |
22 | |
import org.melati.poem.TroidPoemType; |
23 | |
import org.melati.poem.ValidationPoemException; |
24 | |
import org.paneris.jammyjoes.model.JammyjoesDatabaseTables; |
25 | |
import org.paneris.jammyjoes.model.JammyjoesTable; |
26 | |
import org.paneris.jammyjoes.model.Product; |
27 | |
import org.paneris.jammyjoes.model.StockTransaction; |
28 | |
import org.paneris.jammyjoes.model.StockTransactionType; |
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
public class StockTransactionTableBase extends JammyjoesTable { |
39 | |
|
40 | 0 | private Column col_id = null; |
41 | 0 | private Column col_type = null; |
42 | 0 | private Column col_date = null; |
43 | 0 | private Column col_product = null; |
44 | 0 | private Column col_quantity = null; |
45 | 0 | private Column col_costprice = null; |
46 | 0 | private Column col_retailpriceincvat = null; |
47 | 0 | private Column col_vatexempt = null; |
48 | 0 | private Column col_comment = null; |
49 | |
|
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
|
58 | |
|
59 | |
|
60 | |
public StockTransactionTableBase( |
61 | |
Database database, String name, |
62 | |
DefinitionSource definitionSource) throws PoemException { |
63 | 0 | super(database, name, definitionSource); |
64 | 0 | } |
65 | |
|
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
|
73 | |
public JammyjoesDatabaseTables getJammyjoesDatabaseTables() { |
74 | 0 | return (JammyjoesDatabaseTables)getDatabase(); |
75 | |
} |
76 | |
|
77 | |
public void init() throws PoemException { |
78 | 0 | super.init(); |
79 | 0 | defineColumn(col_id = |
80 | |
new Column(this, "id", |
81 | |
new TroidPoemType(), |
82 | |
DefinitionSource.dsd) { |
83 | |
public Object getCooked(Persistent g) |
84 | |
throws AccessPoemException, PoemException { |
85 | 0 | return ((StockTransaction)g).getId(); |
86 | |
} |
87 | |
|
88 | |
public void setCooked(Persistent g, Object cooked) |
89 | |
throws AccessPoemException, ValidationPoemException { |
90 | 0 | ((StockTransaction)g).setId((Integer)cooked); |
91 | 0 | } |
92 | |
|
93 | |
public Field asField(Persistent g) { |
94 | 0 | return ((StockTransaction)g).getIdField(); |
95 | |
} |
96 | |
|
97 | |
protected boolean defaultUserEditable() { |
98 | 0 | return false; |
99 | |
} |
100 | |
|
101 | |
protected boolean defaultUserCreateable() { |
102 | 0 | return false; |
103 | |
} |
104 | |
|
105 | |
protected DisplayLevel defaultDisplayLevel() { |
106 | 0 | return DisplayLevel.record; |
107 | |
} |
108 | |
|
109 | |
protected Searchability defaultSearchability() { |
110 | 0 | return Searchability.no; |
111 | |
} |
112 | |
|
113 | |
protected int defaultDisplayOrder() { |
114 | 0 | return 0; |
115 | |
} |
116 | |
|
117 | |
public Object getRaw_unsafe(Persistent g) |
118 | |
throws AccessPoemException { |
119 | 0 | return ((StockTransaction)g).getId_unsafe(); |
120 | |
} |
121 | |
|
122 | |
public void setRaw_unsafe(Persistent g, Object raw) |
123 | |
throws AccessPoemException { |
124 | 0 | ((StockTransaction)g).setId_unsafe((Integer)raw); |
125 | 0 | } |
126 | |
|
127 | |
public Object getRaw(Persistent g) |
128 | |
throws AccessPoemException { |
129 | 0 | return ((StockTransaction)g).getId(); |
130 | |
} |
131 | |
|
132 | 0 | public void setRaw(Persistent g, Object raw) |
133 | |
throws AccessPoemException { |
134 | 0 | ((StockTransaction)g).setId((Integer)raw); |
135 | 0 | } |
136 | |
}); |
137 | |
|
138 | 0 | defineColumn(col_type = |
139 | |
new Column(this, "type", |
140 | |
new ReferencePoemType(getJammyjoesDatabaseTables(). |
141 | |
getStockTransactionTypeTable(), false), |
142 | |
DefinitionSource.dsd) { |
143 | |
public Object getCooked(Persistent g) |
144 | |
throws AccessPoemException, PoemException { |
145 | 0 | return ((StockTransaction)g).getType(); |
146 | |
} |
147 | |
|
148 | |
public void setCooked(Persistent g, Object cooked) |
149 | |
throws AccessPoemException, ValidationPoemException { |
150 | 0 | ((StockTransaction)g).setType((StockTransactionType)cooked); |
151 | 0 | } |
152 | |
|
153 | |
public Field asField(Persistent g) { |
154 | 0 | return ((StockTransaction)g).getTypeField(); |
155 | |
} |
156 | |
|
157 | |
protected DisplayLevel defaultDisplayLevel() { |
158 | 0 | return DisplayLevel.summary; |
159 | |
} |
160 | |
|
161 | |
protected Searchability defaultSearchability() { |
162 | 0 | return Searchability.primary; |
163 | |
} |
164 | |
|
165 | |
protected Integer defaultDisplayOrderPriority() { |
166 | 0 | return new Integer(1); |
167 | |
} |
168 | |
|
169 | |
protected int defaultDisplayOrder() { |
170 | 0 | return 1; |
171 | |
} |
172 | |
|
173 | |
public Object getRaw_unsafe(Persistent g) |
174 | |
throws AccessPoemException { |
175 | 0 | return ((StockTransaction)g).getType_unsafe(); |
176 | |
} |
177 | |
|
178 | |
public void setRaw_unsafe(Persistent g, Object raw) |
179 | |
throws AccessPoemException { |
180 | 0 | ((StockTransaction)g).setType_unsafe((Integer)raw); |
181 | 0 | } |
182 | |
|
183 | |
public Object getRaw(Persistent g) |
184 | |
throws AccessPoemException { |
185 | 0 | return ((StockTransaction)g).getTypeTroid(); |
186 | |
} |
187 | |
|
188 | 0 | public void setRaw(Persistent g, Object raw) |
189 | |
throws AccessPoemException { |
190 | 0 | ((StockTransaction)g).setTypeTroid((Integer)raw); |
191 | 0 | } |
192 | |
}); |
193 | |
|
194 | 0 | defineColumn(col_date = |
195 | |
new Column(this, "date", |
196 | |
new DatePoemType(true), |
197 | |
DefinitionSource.dsd) { |
198 | |
public Object getCooked(Persistent g) |
199 | |
throws AccessPoemException, PoemException { |
200 | 0 | return ((StockTransaction)g).getDate(); |
201 | |
} |
202 | |
|
203 | |
public void setCooked(Persistent g, Object cooked) |
204 | |
throws AccessPoemException, ValidationPoemException { |
205 | 0 | ((StockTransaction)g).setDate((Date)cooked); |
206 | 0 | } |
207 | |
|
208 | |
public Field asField(Persistent g) { |
209 | 0 | return ((StockTransaction)g).getDateField(); |
210 | |
} |
211 | |
|
212 | |
protected DisplayLevel defaultDisplayLevel() { |
213 | 0 | return DisplayLevel.summary; |
214 | |
} |
215 | |
|
216 | |
protected Searchability defaultSearchability() { |
217 | 0 | return Searchability.yes; |
218 | |
} |
219 | |
|
220 | |
protected Integer defaultDisplayOrderPriority() { |
221 | 0 | return new Integer(0); |
222 | |
} |
223 | |
|
224 | |
protected boolean defaultSortDescending() { |
225 | 0 | return true; |
226 | |
} |
227 | |
|
228 | |
protected String defaultDisplayName() { |
229 | 0 | return "Date"; |
230 | |
} |
231 | |
|
232 | |
protected int defaultDisplayOrder() { |
233 | 0 | return 2; |
234 | |
} |
235 | |
|
236 | |
protected String defaultDescription() { |
237 | 0 | return "Leave blank for today's date"; |
238 | |
} |
239 | |
|
240 | |
public Object getRaw_unsafe(Persistent g) |
241 | |
throws AccessPoemException { |
242 | 0 | return ((StockTransaction)g).getDate_unsafe(); |
243 | |
} |
244 | |
|
245 | |
public void setRaw_unsafe(Persistent g, Object raw) |
246 | |
throws AccessPoemException { |
247 | 0 | ((StockTransaction)g).setDate_unsafe((Date)raw); |
248 | 0 | } |
249 | |
|
250 | |
public Object getRaw(Persistent g) |
251 | |
throws AccessPoemException { |
252 | 0 | return ((StockTransaction)g).getDate(); |
253 | |
} |
254 | |
|
255 | 0 | public void setRaw(Persistent g, Object raw) |
256 | |
throws AccessPoemException { |
257 | 0 | ((StockTransaction)g).setDate((Date)raw); |
258 | 0 | } |
259 | |
}); |
260 | |
|
261 | 0 | defineColumn(col_product = |
262 | |
new Column(this, "product", |
263 | |
new ReferencePoemType(getJammyjoesDatabaseTables(). |
264 | |
getProductTable(), false), |
265 | |
DefinitionSource.dsd) { |
266 | |
public Object getCooked(Persistent g) |
267 | |
throws AccessPoemException, PoemException { |
268 | 0 | return ((StockTransaction)g).getProduct(); |
269 | |
} |
270 | |
|
271 | |
public void setCooked(Persistent g, Object cooked) |
272 | |
throws AccessPoemException, ValidationPoemException { |
273 | 0 | ((StockTransaction)g).setProduct((Product)cooked); |
274 | 0 | } |
275 | |
|
276 | |
public Field asField(Persistent g) { |
277 | 0 | return ((StockTransaction)g).getProductField(); |
278 | |
} |
279 | |
|
280 | |
protected DisplayLevel defaultDisplayLevel() { |
281 | 0 | return DisplayLevel.summary; |
282 | |
} |
283 | |
|
284 | |
protected Searchability defaultSearchability() { |
285 | 0 | return Searchability.yes; |
286 | |
} |
287 | |
|
288 | |
protected Integer defaultDisplayOrderPriority() { |
289 | 0 | return new Integer(2); |
290 | |
} |
291 | |
|
292 | |
protected int defaultDisplayOrder() { |
293 | 0 | return 3; |
294 | |
} |
295 | |
|
296 | |
protected String defaultRenderinfo() { |
297 | 0 | return "SelectionWindow"; |
298 | |
} |
299 | |
|
300 | |
public Object getRaw_unsafe(Persistent g) |
301 | |
throws AccessPoemException { |
302 | 0 | return ((StockTransaction)g).getProduct_unsafe(); |
303 | |
} |
304 | |
|
305 | |
public void setRaw_unsafe(Persistent g, Object raw) |
306 | |
throws AccessPoemException { |
307 | 0 | ((StockTransaction)g).setProduct_unsafe((Integer)raw); |
308 | 0 | } |
309 | |
|
310 | |
public Object getRaw(Persistent g) |
311 | |
throws AccessPoemException { |
312 | 0 | return ((StockTransaction)g).getProductTroid(); |
313 | |
} |
314 | |
|
315 | 0 | public void setRaw(Persistent g, Object raw) |
316 | |
throws AccessPoemException { |
317 | 0 | ((StockTransaction)g).setProductTroid((Integer)raw); |
318 | 0 | } |
319 | |
}); |
320 | |
|
321 | 0 | defineColumn(col_quantity = |
322 | |
new Column(this, "quantity", |
323 | |
new IntegerPoemType(false), |
324 | |
DefinitionSource.dsd) { |
325 | |
public Object getCooked(Persistent g) |
326 | |
throws AccessPoemException, PoemException { |
327 | 0 | return ((StockTransaction)g).getQuantity(); |
328 | |
} |
329 | |
|
330 | |
public void setCooked(Persistent g, Object cooked) |
331 | |
throws AccessPoemException, ValidationPoemException { |
332 | 0 | ((StockTransaction)g).setQuantity((Integer)cooked); |
333 | 0 | } |
334 | |
|
335 | |
public Field asField(Persistent g) { |
336 | 0 | return ((StockTransaction)g).getQuantityField(); |
337 | |
} |
338 | |
|
339 | |
protected DisplayLevel defaultDisplayLevel() { |
340 | 0 | return DisplayLevel.summary; |
341 | |
} |
342 | |
|
343 | |
protected Searchability defaultSearchability() { |
344 | 0 | return Searchability.no; |
345 | |
} |
346 | |
|
347 | |
protected String defaultDisplayName() { |
348 | 0 | return "Quantity"; |
349 | |
} |
350 | |
|
351 | |
protected int defaultDisplayOrder() { |
352 | 0 | return 4; |
353 | |
} |
354 | |
|
355 | |
public Object getRaw_unsafe(Persistent g) |
356 | |
throws AccessPoemException { |
357 | 0 | return ((StockTransaction)g).getQuantity_unsafe(); |
358 | |
} |
359 | |
|
360 | |
public void setRaw_unsafe(Persistent g, Object raw) |
361 | |
throws AccessPoemException { |
362 | 0 | ((StockTransaction)g).setQuantity_unsafe((Integer)raw); |
363 | 0 | } |
364 | |
|
365 | |
public Object getRaw(Persistent g) |
366 | |
throws AccessPoemException { |
367 | 0 | return ((StockTransaction)g).getQuantity(); |
368 | |
} |
369 | |
|
370 | 0 | public void setRaw(Persistent g, Object raw) |
371 | |
throws AccessPoemException { |
372 | 0 | ((StockTransaction)g).setQuantity((Integer)raw); |
373 | 0 | } |
374 | |
}); |
375 | |
|
376 | 0 | defineColumn(col_costprice = |
377 | |
new Column(this, "costprice", |
378 | |
new DoublePoemType(true), |
379 | |
DefinitionSource.dsd) { |
380 | |
public Object getCooked(Persistent g) |
381 | |
throws AccessPoemException, PoemException { |
382 | 0 | return ((StockTransaction)g).getCostprice(); |
383 | |
} |
384 | |
|
385 | |
public void setCooked(Persistent g, Object cooked) |
386 | |
throws AccessPoemException, ValidationPoemException { |
387 | 0 | ((StockTransaction)g).setCostprice((Double)cooked); |
388 | 0 | } |
389 | |
|
390 | |
public Field asField(Persistent g) { |
391 | 0 | return ((StockTransaction)g).getCostpriceField(); |
392 | |
} |
393 | |
|
394 | |
protected DisplayLevel defaultDisplayLevel() { |
395 | 0 | return DisplayLevel.record; |
396 | |
} |
397 | |
|
398 | |
protected Searchability defaultSearchability() { |
399 | 0 | return Searchability.no; |
400 | |
} |
401 | |
|
402 | |
protected String defaultDisplayName() { |
403 | 0 | return "Cost Price"; |
404 | |
} |
405 | |
|
406 | |
protected int defaultDisplayOrder() { |
407 | 0 | return 5; |
408 | |
} |
409 | |
|
410 | |
protected String defaultDescription() { |
411 | 0 | return "Leave blank for purchases and stock ajustments"; |
412 | |
} |
413 | |
|
414 | |
public Object getRaw_unsafe(Persistent g) |
415 | |
throws AccessPoemException { |
416 | 0 | return ((StockTransaction)g).getCostprice_unsafe(); |
417 | |
} |
418 | |
|
419 | |
public void setRaw_unsafe(Persistent g, Object raw) |
420 | |
throws AccessPoemException { |
421 | 0 | ((StockTransaction)g).setCostprice_unsafe((Double)raw); |
422 | 0 | } |
423 | |
|
424 | |
public Object getRaw(Persistent g) |
425 | |
throws AccessPoemException { |
426 | 0 | return ((StockTransaction)g).getCostprice(); |
427 | |
} |
428 | |
|
429 | 0 | public void setRaw(Persistent g, Object raw) |
430 | |
throws AccessPoemException { |
431 | 0 | ((StockTransaction)g).setCostprice((Double)raw); |
432 | 0 | } |
433 | |
}); |
434 | |
|
435 | 0 | defineColumn(col_retailpriceincvat = |
436 | |
new Column(this, "retailpriceincvat", |
437 | |
new DoublePoemType(true), |
438 | |
DefinitionSource.dsd) { |
439 | |
public Object getCooked(Persistent g) |
440 | |
throws AccessPoemException, PoemException { |
441 | 0 | return ((StockTransaction)g).getRetailpriceincvat(); |
442 | |
} |
443 | |
|
444 | |
public void setCooked(Persistent g, Object cooked) |
445 | |
throws AccessPoemException, ValidationPoemException { |
446 | 0 | ((StockTransaction)g).setRetailpriceincvat((Double)cooked); |
447 | 0 | } |
448 | |
|
449 | |
public Field asField(Persistent g) { |
450 | 0 | return ((StockTransaction)g).getRetailpriceincvatField(); |
451 | |
} |
452 | |
|
453 | |
protected DisplayLevel defaultDisplayLevel() { |
454 | 0 | return DisplayLevel.record; |
455 | |
} |
456 | |
|
457 | |
protected Searchability defaultSearchability() { |
458 | 0 | return Searchability.no; |
459 | |
} |
460 | |
|
461 | |
protected String defaultDisplayName() { |
462 | 0 | return "Retail Price inc VAT (if VAT is payable)"; |
463 | |
} |
464 | |
|
465 | |
protected int defaultDisplayOrder() { |
466 | 0 | return 6; |
467 | |
} |
468 | |
|
469 | |
protected String defaultDescription() { |
470 | 0 | return "Leave blank for purchases and stock ajustments"; |
471 | |
} |
472 | |
|
473 | |
public Object getRaw_unsafe(Persistent g) |
474 | |
throws AccessPoemException { |
475 | 0 | return ((StockTransaction)g).getRetailpriceincvat_unsafe(); |
476 | |
} |
477 | |
|
478 | |
public void setRaw_unsafe(Persistent g, Object raw) |
479 | |
throws AccessPoemException { |
480 | 0 | ((StockTransaction)g).setRetailpriceincvat_unsafe((Double)raw); |
481 | 0 | } |
482 | |
|
483 | |
public Object getRaw(Persistent g) |
484 | |
throws AccessPoemException { |
485 | 0 | return ((StockTransaction)g).getRetailpriceincvat(); |
486 | |
} |
487 | |
|
488 | 0 | public void setRaw(Persistent g, Object raw) |
489 | |
throws AccessPoemException { |
490 | 0 | ((StockTransaction)g).setRetailpriceincvat((Double)raw); |
491 | 0 | } |
492 | |
}); |
493 | |
|
494 | 0 | defineColumn(col_vatexempt = |
495 | |
new Column(this, "vatexempt", |
496 | |
new BooleanPoemType(false), |
497 | |
DefinitionSource.dsd) { |
498 | |
public Object getCooked(Persistent g) |
499 | |
throws AccessPoemException, PoemException { |
500 | 0 | return ((StockTransaction)g).getVatexempt(); |
501 | |
} |
502 | |
|
503 | |
public void setCooked(Persistent g, Object cooked) |
504 | |
throws AccessPoemException, ValidationPoemException { |
505 | 0 | ((StockTransaction)g).setVatexempt((Boolean)cooked); |
506 | 0 | } |
507 | |
|
508 | |
public Field asField(Persistent g) { |
509 | 0 | return ((StockTransaction)g).getVatexemptField(); |
510 | |
} |
511 | |
|
512 | |
protected DisplayLevel defaultDisplayLevel() { |
513 | 0 | return DisplayLevel.record; |
514 | |
} |
515 | |
|
516 | |
protected Searchability defaultSearchability() { |
517 | 0 | return Searchability.yes; |
518 | |
} |
519 | |
|
520 | |
protected String defaultDisplayName() { |
521 | 0 | return "Exempt from VAT?"; |
522 | |
} |
523 | |
|
524 | |
protected int defaultDisplayOrder() { |
525 | 0 | return 7; |
526 | |
} |
527 | |
|
528 | |
protected String defaultDescription() { |
529 | 0 | return "Leave blank for purchases and stock ajustments"; |
530 | |
} |
531 | |
|
532 | |
public Object getRaw_unsafe(Persistent g) |
533 | |
throws AccessPoemException { |
534 | 0 | return ((StockTransaction)g).getVatexempt_unsafe(); |
535 | |
} |
536 | |
|
537 | |
public void setRaw_unsafe(Persistent g, Object raw) |
538 | |
throws AccessPoemException { |
539 | 0 | ((StockTransaction)g).setVatexempt_unsafe((Boolean)raw); |
540 | 0 | } |
541 | |
|
542 | |
public Object getRaw(Persistent g) |
543 | |
throws AccessPoemException { |
544 | 0 | return ((StockTransaction)g).getVatexempt(); |
545 | |
} |
546 | |
|
547 | 0 | public void setRaw(Persistent g, Object raw) |
548 | |
throws AccessPoemException { |
549 | 0 | ((StockTransaction)g).setVatexempt((Boolean)raw); |
550 | 0 | } |
551 | |
}); |
552 | |
|
553 | 0 | defineColumn(col_comment = |
554 | |
new Column(this, "comment", |
555 | |
new StringPoemType(true, -1), |
556 | |
DefinitionSource.dsd) { |
557 | |
public Object getCooked(Persistent g) |
558 | |
throws AccessPoemException, PoemException { |
559 | 0 | return ((StockTransaction)g).getComment(); |
560 | |
} |
561 | |
|
562 | |
public void setCooked(Persistent g, Object cooked) |
563 | |
throws AccessPoemException, ValidationPoemException { |
564 | 0 | ((StockTransaction)g).setComment((String)cooked); |
565 | 0 | } |
566 | |
|
567 | |
public Field asField(Persistent g) { |
568 | 0 | return ((StockTransaction)g).getCommentField(); |
569 | |
} |
570 | |
|
571 | |
protected DisplayLevel defaultDisplayLevel() { |
572 | 0 | return DisplayLevel.record; |
573 | |
} |
574 | |
|
575 | |
protected Searchability defaultSearchability() { |
576 | 0 | return Searchability.no; |
577 | |
} |
578 | |
|
579 | |
protected int defaultDisplayOrder() { |
580 | 0 | return 8; |
581 | |
} |
582 | |
|
583 | |
protected String defaultDescription() { |
584 | 0 | return "Comment"; |
585 | |
} |
586 | |
|
587 | |
protected int defaultWidth() { |
588 | 0 | return 40; |
589 | |
} |
590 | |
|
591 | |
protected int defaultHeight() { |
592 | 0 | return 3; |
593 | |
} |
594 | |
|
595 | |
public Object getRaw_unsafe(Persistent g) |
596 | |
throws AccessPoemException { |
597 | 0 | return ((StockTransaction)g).getComment_unsafe(); |
598 | |
} |
599 | |
|
600 | |
public void setRaw_unsafe(Persistent g, Object raw) |
601 | |
throws AccessPoemException { |
602 | 0 | ((StockTransaction)g).setComment_unsafe((String)raw); |
603 | 0 | } |
604 | |
|
605 | |
public Object getRaw(Persistent g) |
606 | |
throws AccessPoemException { |
607 | 0 | return ((StockTransaction)g).getComment(); |
608 | |
} |
609 | |
|
610 | 0 | public void setRaw(Persistent g, Object raw) |
611 | |
throws AccessPoemException { |
612 | 0 | ((StockTransaction)g).setComment((String)raw); |
613 | 0 | } |
614 | |
}); |
615 | 0 | } |
616 | |
|
617 | |
|
618 | |
|
619 | |
|
620 | |
|
621 | |
|
622 | |
|
623 | |
|
624 | |
|
625 | |
public final Column getIdColumn() { |
626 | 0 | return col_id; |
627 | |
} |
628 | |
|
629 | |
|
630 | |
|
631 | |
|
632 | |
|
633 | |
|
634 | |
|
635 | |
|
636 | |
|
637 | |
public final Column getTypeColumn() { |
638 | 0 | return col_type; |
639 | |
} |
640 | |
|
641 | |
|
642 | |
|
643 | |
|
644 | |
|
645 | |
|
646 | |
|
647 | |
|
648 | |
|
649 | |
public final Column getDateColumn() { |
650 | 0 | return col_date; |
651 | |
} |
652 | |
|
653 | |
|
654 | |
|
655 | |
|
656 | |
|
657 | |
|
658 | |
|
659 | |
|
660 | |
|
661 | |
public final Column getProductColumn() { |
662 | 0 | return col_product; |
663 | |
} |
664 | |
|
665 | |
|
666 | |
|
667 | |
|
668 | |
|
669 | |
|
670 | |
|
671 | |
|
672 | |
|
673 | |
public final Column getQuantityColumn() { |
674 | 0 | return col_quantity; |
675 | |
} |
676 | |
|
677 | |
|
678 | |
|
679 | |
|
680 | |
|
681 | |
|
682 | |
|
683 | |
|
684 | |
|
685 | |
public final Column getCostpriceColumn() { |
686 | 0 | return col_costprice; |
687 | |
} |
688 | |
|
689 | |
|
690 | |
|
691 | |
|
692 | |
|
693 | |
|
694 | |
|
695 | |
|
696 | |
|
697 | |
public final Column getRetailpriceincvatColumn() { |
698 | 0 | return col_retailpriceincvat; |
699 | |
} |
700 | |
|
701 | |
|
702 | |
|
703 | |
|
704 | |
|
705 | |
|
706 | |
|
707 | |
|
708 | |
|
709 | |
public final Column getVatexemptColumn() { |
710 | 0 | return col_vatexempt; |
711 | |
} |
712 | |
|
713 | |
|
714 | |
|
715 | |
|
716 | |
|
717 | |
|
718 | |
|
719 | |
|
720 | |
|
721 | |
public final Column getCommentColumn() { |
722 | 0 | return col_comment; |
723 | |
} |
724 | |
|
725 | |
|
726 | |
|
727 | |
|
728 | |
|
729 | |
|
730 | |
|
731 | |
|
732 | |
|
733 | |
public StockTransaction getStockTransactionObject(Integer troid) { |
734 | 0 | return (StockTransaction)getObject(troid); |
735 | |
} |
736 | |
|
737 | |
|
738 | |
|
739 | |
|
740 | |
|
741 | |
|
742 | |
|
743 | |
|
744 | |
|
745 | |
public StockTransaction getStockTransactionObject(int troid) { |
746 | 0 | return (StockTransaction)getObject(troid); |
747 | |
} |
748 | |
|
749 | |
protected JdbcPersistent _newPersistent() { |
750 | 0 | return new StockTransaction(); |
751 | |
} |
752 | |
protected String defaultDisplayName() { |
753 | 0 | return "Stock Transaction"; |
754 | |
} |
755 | |
|
756 | |
protected String defaultDescription() { |
757 | 0 | return "Stock Transaction"; |
758 | |
} |
759 | |
|
760 | |
protected boolean defaultRememberAllTroids() { |
761 | 0 | return true; |
762 | |
} |
763 | |
|
764 | |
protected String defaultCategory() { |
765 | 0 | return "Data"; |
766 | |
} |
767 | |
|
768 | |
protected int defaultDisplayOrder() { |
769 | 0 | return 40; |
770 | |
} |
771 | |
} |
772 | |
|