KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > model > X_I_BankStatement


1 /** Generated Model - DO NOT CHANGE - Copyright (C) 1999-2003 Jorg Janke **/
2 package org.compiere.model;
3 import java.util.*;
4 import java.sql.*;
5 import java.math.*;
6 import java.io.Serializable JavaDoc;
7 import org.compiere.util.*;
8 /** Generated Model for I_BankStatement
9  ** @version $Id: X_I_BankStatement.java,v 1.26 2003/10/31 05:30:53 jjanke Exp $ **/

10 public class X_I_BankStatement extends PO
11 {
12 /** Standard Constructor **/
13 public X_I_BankStatement (Properties ctx, int I_BankStatement_ID)
14 {
15 super (ctx, I_BankStatement_ID);
16 /** if (I_BankStatement_ID == 0)
17 {
18 setBankAccountNo (null);
19 setDateAcct (new Timestamp(System.currentTimeMillis()));
20 setI_BankStatement_ID (0);
21 setI_IsImported (false);
22 setProcessed (false);
23 setStatementDate (new Timestamp(System.currentTimeMillis()));
24 setStmtAmt (Env.ZERO);
25 }
26  **/

27 }
28 /** Load Constructor **/
29 public X_I_BankStatement (Properties ctx, ResultSet rs)
30 {
31 super (ctx, rs);
32 }
33 /** Load Meta Data **/
34 protected POInfo initPO (Properties ctx)
35 {
36 int AD_Table_ID = 600;
37 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
38 return poi;
39 }
40 public String JavaDoc toString()
41 {
42 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_I_BankStatement[").append(getID()).append("]");
43 return sb.toString();
44 }
45 public void setBPartnerValue (String JavaDoc BPartnerValue)
46 {
47 setValue ("BPartnerValue", BPartnerValue);
48 }
49 public String JavaDoc getBPartnerValue()
50 {
51 return (String JavaDoc)getValue("BPartnerValue");
52 }
53 public void setBankAccountNo (String JavaDoc BankAccountNo)
54 {
55 if (BankAccountNo == null) throw new IllegalArgumentException JavaDoc ("BankAccountNo is mandatory");
56 setValue ("BankAccountNo", BankAccountNo);
57 }
58 public String JavaDoc getBankAccountNo()
59 {
60 return (String JavaDoc)getValue("BankAccountNo");
61 }
62 public void setC_BPartner_ID (int C_BPartner_ID)
63 {
64 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null);
65  else
66 setValue ("C_BPartner_ID", new Integer JavaDoc(C_BPartner_ID));
67 }
68 public int getC_BPartner_ID()
69 {
70 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BPartner_ID");
71 if (ii == null) return 0;
72 return ii.intValue();
73 }
74 public void setC_BankAccount_ID (int C_BankAccount_ID)
75 {
76 if (C_BankAccount_ID == 0) setValue ("C_BankAccount_ID", null);
77  else
78 setValue ("C_BankAccount_ID", new Integer JavaDoc(C_BankAccount_ID));
79 }
80 public int getC_BankAccount_ID()
81 {
82 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BankAccount_ID");
83 if (ii == null) return 0;
84 return ii.intValue();
85 }
86 public void setC_BankStatementLine_ID (int C_BankStatementLine_ID)
87 {
88 if (C_BankStatementLine_ID == 0) setValue ("C_BankStatementLine_ID", null);
89  else
90 setValue ("C_BankStatementLine_ID", new Integer JavaDoc(C_BankStatementLine_ID));
91 }
92 public int getC_BankStatementLine_ID()
93 {
94 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BankStatementLine_ID");
95 if (ii == null) return 0;
96 return ii.intValue();
97 }
98 public void setC_BankStatement_ID (int C_BankStatement_ID)
99 {
100 if (C_BankStatement_ID == 0) setValue ("C_BankStatement_ID", null);
101  else
102 setValue ("C_BankStatement_ID", new Integer JavaDoc(C_BankStatement_ID));
103 }
104 public int getC_BankStatement_ID()
105 {
106 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BankStatement_ID");
107 if (ii == null) return 0;
108 return ii.intValue();
109 }
110 public void setC_Charge_ID (int C_Charge_ID)
111 {
112 if (C_Charge_ID == 0) setValue ("C_Charge_ID", null);
113  else
114 setValue ("C_Charge_ID", new Integer JavaDoc(C_Charge_ID));
115 }
116 public int getC_Charge_ID()
117 {
118 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Charge_ID");
119 if (ii == null) return 0;
120 return ii.intValue();
121 }
122 public void setC_Invoice_ID (int C_Invoice_ID)
123 {
124 if (C_Invoice_ID == 0) setValue ("C_Invoice_ID", null);
125  else
126 setValue ("C_Invoice_ID", new Integer JavaDoc(C_Invoice_ID));
127 }
128 public int getC_Invoice_ID()
129 {
130 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Invoice_ID");
131 if (ii == null) return 0;
132 return ii.intValue();
133 }
134 public void setC_Payment_ID (int C_Payment_ID)
135 {
136 if (C_Payment_ID == 0) setValue ("C_Payment_ID", null);
137  else
138 setValue ("C_Payment_ID", new Integer JavaDoc(C_Payment_ID));
139 }
140 public int getC_Payment_ID()
141 {
142 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Payment_ID");
143 if (ii == null) return 0;
144 return ii.intValue();
145 }
146 public void setChargeAmt (BigDecimal ChargeAmt)
147 {
148 setValue ("ChargeAmt", ChargeAmt);
149 }
150 public BigDecimal getChargeAmt()
151 {
152 BigDecimal bd = (BigDecimal)getValue("ChargeAmt");
153 if (bd == null) return Env.ZERO;
154 return bd;
155 }
156 public void setChargeName (String JavaDoc ChargeName)
157 {
158 setValue ("ChargeName", ChargeName);
159 }
160 public String JavaDoc getChargeName()
161 {
162 return (String JavaDoc)getValue("ChargeName");
163 }
164 public void setDateAcct (Timestamp DateAcct)
165 {
166 if (DateAcct == null) throw new IllegalArgumentException JavaDoc ("DateAcct is mandatory");
167 setValue ("DateAcct", DateAcct);
168 }
169 public Timestamp getDateAcct()
170 {
171 return (Timestamp)getValue("DateAcct");
172 }
173 public void setDescription (String JavaDoc Description)
174 {
175 setValue ("Description", Description);
176 }
177 public String JavaDoc getDescription()
178 {
179 return (String JavaDoc)getValue("Description");
180 }
181 public void setDocumentNo (String JavaDoc DocumentNo)
182 {
183 setValue ("DocumentNo", DocumentNo);
184 }
185 public String JavaDoc getDocumentNo()
186 {
187 return (String JavaDoc)getValue("DocumentNo");
188 }
189 void setI_BankStatement_ID (int I_BankStatement_ID)
190 {
191 setValueNoCheck ("I_BankStatement_ID", new Integer JavaDoc(I_BankStatement_ID));
192 }
193 public int getI_BankStatement_ID()
194 {
195 Integer JavaDoc ii = (Integer JavaDoc)getValue("I_BankStatement_ID");
196 if (ii == null) return 0;
197 return ii.intValue();
198 }
199 public void setI_ErrorMsg (String JavaDoc I_ErrorMsg)
200 {
201 setValue ("I_ErrorMsg", I_ErrorMsg);
202 }
203 public String JavaDoc getI_ErrorMsg()
204 {
205 return (String JavaDoc)getValue("I_ErrorMsg");
206 }
207 public void setI_IsImported (boolean I_IsImported)
208 {
209 setValue ("I_IsImported", new Boolean JavaDoc(I_IsImported));
210 }
211 public boolean isI_IsImported()
212 {
213 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("I_IsImported");
214 if (bb != null) return bb.booleanValue();
215 return false;
216 }
217 public void setInterestAmt (BigDecimal InterestAmt)
218 {
219 setValue ("InterestAmt", InterestAmt);
220 }
221 public BigDecimal getInterestAmt()
222 {
223 BigDecimal bd = (BigDecimal)getValue("InterestAmt");
224 if (bd == null) return Env.ZERO;
225 return bd;
226 }
227 public void setInvoiceDocumentNo (String JavaDoc InvoiceDocumentNo)
228 {
229 setValue ("InvoiceDocumentNo", InvoiceDocumentNo);
230 }
231 public String JavaDoc getInvoiceDocumentNo()
232 {
233 return (String JavaDoc)getValue("InvoiceDocumentNo");
234 }
235 public void setIsReversal (boolean IsReversal)
236 {
237 setValue ("IsReversal", new Boolean JavaDoc(IsReversal));
238 }
239 public boolean isReversal()
240 {
241 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsReversal");
242 if (bb != null) return bb.booleanValue();
243 return false;
244 }
245 public void setLine (int Line)
246 {
247 setValue ("Line", new Integer JavaDoc(Line));
248 }
249 public int getLine()
250 {
251 Integer JavaDoc ii = (Integer JavaDoc)getValue("Line");
252 if (ii == null) return 0;
253 return ii.intValue();
254 }
255 public void setLineDescription (String JavaDoc LineDescription)
256 {
257 setValue ("LineDescription", LineDescription);
258 }
259 public String JavaDoc getLineDescription()
260 {
261 return (String JavaDoc)getValue("LineDescription");
262 }
263 public void setMemo (String JavaDoc Memo)
264 {
265 setValue ("Memo", Memo);
266 }
267 public String JavaDoc getMemo()
268 {
269 return (String JavaDoc)getValue("Memo");
270 }
271 public void setName (String JavaDoc Name)
272 {
273 setValue ("Name", Name);
274 }
275 public String JavaDoc getName()
276 {
277 return (String JavaDoc)getValue("Name");
278 }
279 public void setProcessed (boolean Processed)
280 {
281 setValue ("Processed", new Boolean JavaDoc(Processed));
282 }
283 public boolean isProcessed()
284 {
285 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("Processed");
286 if (bb != null) return bb.booleanValue();
287 return false;
288 }
289 public void setReferenceNo (String JavaDoc ReferenceNo)
290 {
291 setValue ("ReferenceNo", ReferenceNo);
292 }
293 public String JavaDoc getReferenceNo()
294 {
295 return (String JavaDoc)getValue("ReferenceNo");
296 }
297 public void setRoutingNo (String JavaDoc RoutingNo)
298 {
299 setValue ("RoutingNo", RoutingNo);
300 }
301 public String JavaDoc getRoutingNo()
302 {
303 return (String JavaDoc)getValue("RoutingNo");
304 }
305 public void setStatementDate (Timestamp StatementDate)
306 {
307 if (StatementDate == null) throw new IllegalArgumentException JavaDoc ("StatementDate is mandatory");
308 setValue ("StatementDate", StatementDate);
309 }
310 public Timestamp getStatementDate()
311 {
312 return (Timestamp)getValue("StatementDate");
313 }
314 public void setStmtAmt (BigDecimal StmtAmt)
315 {
316 if (StmtAmt == null) throw new IllegalArgumentException JavaDoc ("StmtAmt is mandatory");
317 setValue ("StmtAmt", StmtAmt);
318 }
319 public BigDecimal getStmtAmt()
320 {
321 BigDecimal bd = (BigDecimal)getValue("StmtAmt");
322 if (bd == null) return Env.ZERO;
323 return bd;
324 }
325 public void setTrxAmt (BigDecimal TrxAmt)
326 {
327 setValue ("TrxAmt", TrxAmt);
328 }
329 public BigDecimal getTrxAmt()
330 {
331 BigDecimal bd = (BigDecimal)getValue("TrxAmt");
332 if (bd == null) return Env.ZERO;
333 return bd;
334 }
335 public static final String JavaDoc TRXTYPE_Sales = "S";
336 public static final String JavaDoc TRXTYPE_DelayedCapture = "D";
337 public static final String JavaDoc TRXTYPE_CreditPayment = "C";
338 public static final String JavaDoc TRXTYPE_VoiceAuthorization = "F";
339 public static final String JavaDoc TRXTYPE_Authorization = "A";
340 public static final String JavaDoc TRXTYPE_Void = "V";
341 public void setTrxType (String JavaDoc TrxType)
342 {
343 if (TrxType.equals("S") || TrxType.equals("D") || TrxType.equals("C") || TrxType.equals("F") || TrxType.equals("A") || TrxType.equals("V"));
344  else throw new IllegalArgumentException JavaDoc ("TrxType Invalid value - Reference_ID=215 - S - D - C - F - A - V");
345 setValue ("TrxType", TrxType);
346 }
347 public String JavaDoc getTrxType()
348 {
349 return (String JavaDoc)getValue("TrxType");
350 }
351 public void setValutaDate (Timestamp ValutaDate)
352 {
353 setValue ("ValutaDate", ValutaDate);
354 }
355 public Timestamp getValutaDate()
356 {
357 return (Timestamp)getValue("ValutaDate");
358 }
359 }
360
Popular Tags