Source code: com/the/test/Test2Core.java
1 package com.the.test;
2 import java.util.*;
3 import java.math.*;
4 import java.sql.*;
5 import com.gopas.rt.util.*;
6 import com.gopas.rt.model.*;
7 import com.gopas.tangox.pers.reldb.*;
8 public abstract class Test2Core extends EntityImpl
9 implements Test2, RT
10 {
11 public Test2Core()
12 {
13 super(Test2.typeDesc);
14 }
15 public Test2Core(Object uid)
16 {
17 super(uid, CREATED_STATUS, Test2.typeDesc);
18 }
19 public Test2Core(Object uid, int status)
20 {
21 super(uid, status, Test2.typeDesc);
22 }
23 public Test2Core(Object uid, int status, TypeDesc pTypeDesc)
24 {
25 super(uid, status, pTypeDesc);
26 }
27
28 // --- attr2 attr2 ---
29 private Attr iaAttr2 = null;
30 public Attr getAttrAttr2() {
31 if (iaAttr2 == null) {
32 iaAttr2 = attr2_DESC.getAttr(this, true);
33 }
34 return iaAttr2;
35 }
36 public BigDecimal getAttr2() {
37 return getAttrAttr2().getBigDecimal();
38 }
39 public void setAttr2Gui(BigDecimal p) {
40 setObjectModified();
41 getAttrAttr2().setValGui(p);
42 }
43 public void setAttr2Comp(BigDecimal p) {
44 setObjectModified();
45 getAttrAttr2().setValComp(p);
46 }
47
48 // --- attr valTest1 ---
49 private Object iaValTest1;
50 public Test1 getValTest1() {
51 if (iaValTest1 instanceof EntityRef) {
52 iaValTest1 = ((EntityRef)iaValTest1).getEntity();
53 }
54 return (Test1)iaValTest1;
55 }
56 public void setValTest1(Test1 p) {
57 Object oldVal = this.iaValTest1;
58 this.iaValTest1 = p;
59 Object newVal = this.iaValTest1;
60 setObjectModified();
61 firePropertyChange(valTest1_ATTR, oldVal, newVal);
62 }
63
64 // --- attr valEntity ---
65 private Object iaValEntity;
66 public Entity getValEntity() {
67 if (iaValEntity instanceof EntityRef) {
68 iaValEntity = ((EntityRef)iaValEntity).getEntity();
69 }
70 return (Entity)iaValEntity;
71 }
72 public void setValEntity(Entity p) {
73 Object oldVal = this.iaValEntity;
74 this.iaValEntity = p;
75 Object newVal = this.iaValEntity;
76 setObjectModified();
77 firePropertyChange(valEntity_ATTR, oldVal, newVal);
78 }
79
80 // --- aggr valAggrEntity ---
81 private java.util.List iaValAggrEntity = new BOList("valAggrEntity", this, true, true);
82 public java.util.List getValAggrEntity() {
83 return iaValAggrEntity;
84 }
85
86 // --- aggr valAggrTest1 ---
87 private java.util.List iaValAggrTest1 = new BOList("valAggrTest1", this, true, true);
88 public java.util.List getValAggrTest1() {
89 return iaValAggrTest1;
90 }
91
92 // --- aggr valAggrString ---
93 private java.util.List iaValAggrString = new BOList("valAggrString", this, true, true);
94 public java.util.List getValAggrString() {
95 return iaValAggrString;
96 }
97
98 // --- aggr valAggrBD ---
99 private java.util.List iaValAggrBD = new BOList("valAggrBD", this, true, true);
100 public java.util.List getValAggrBD() {
101 return iaValAggrBD;
102 }
103 public static ColumnDesc[] getColumnDescArr() {
104 return ColumnDesc.concat(
105 EntityImpl.getColumnDescArr(),
106 Test2.columnDescArr);
107 }
108 public TypeDesc getTypeDesc() { return Test2.typeDesc; }
109 }