1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kfs.coa.businessobject;
17
18 import java.util.LinkedHashMap;
19
20 import org.kuali.rice.core.api.mo.common.active.Inactivatable;
21 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
22
23
24
25
26 public class SubAccount extends PersistableBusinessObjectBase implements Inactivatable {
27
28 private static final long serialVersionUID = 6853259976912014273L;
29
30 private String chartOfAccountsCode;
31 private String accountNumber;
32 private String subAccountNumber;
33 private String subAccountName;
34 private boolean active;
35 private Account account;
36 private Chart chart;
37 private Organization org;
38
39
40
41
42
43 public SubAccount() {
44 }
45
46
47
48
49
50
51 public String getAccountNumber() {
52 return accountNumber;
53 }
54
55
56
57
58 public void setAccountNumber(String accountNumber) {
59 this.accountNumber = accountNumber;
60 }
61
62
63
64
65
66
67 public String getChartOfAccountsCode() {
68 return chartOfAccountsCode;
69 }
70
71
72
73
74
75
76 public void setChartOfAccountsCode(String chartOfAccountsCode) {
77 this.chartOfAccountsCode = chartOfAccountsCode;
78 }
79
80
81
82
83
84
85
86 public String getSubAccountName() {
87 return subAccountName;
88 }
89
90
91
92
93
94
95 public void setSubAccountName(String subAccountName) {
96 this.subAccountName = subAccountName;
97 }
98
99
100
101
102
103
104 public boolean isActive() {
105 return active;
106 }
107
108
109
110
111
112
113 public void setActive(boolean active) {
114 this.active = active;
115 }
116
117
118
119
120
121
122 public Account getAccount() {
123 return account;
124 }
125
126
127
128
129
130
131 public void setAccount(Account account) {
132 this.account = account;
133 }
134
135
136
137
138
139
140 public String getSubAccountNumber() {
141 return subAccountNumber;
142 }
143
144
145
146
147
148
149 public void setSubAccountNumber(String subAccountNumber) {
150 this.subAccountNumber = subAccountNumber;
151 }
152
153
154
155
156
157
158 public Chart getChart() {
159 return chart;
160 }
161
162
163
164
165
166 public void setChart(Chart chart) {
167 this.chart = chart;
168 }
169
170
171
172
173
174 public Organization getOrg() {
175 return org;
176 }
177
178
179
180
181
182 public void setOrg(Organization org) {
183 this.org = org;
184 }
185
186
187
188
189 protected LinkedHashMap toStringMapper() {
190 LinkedHashMap m = new LinkedHashMap();
191 m.put("chartCode", this.chartOfAccountsCode);
192 m.put("account", this.accountNumber);
193 m.put("subAccountNumber", this.subAccountNumber);
194 return m;
195 }
196
197 }