KickJava   Java API By Example, From Geeks To Geeks.

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


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 C_BankStatementLine
9  ** @version $Id: X_C_BankStatementLine.java,v 1.27 2003/10/31 05:30:53 jjanke Exp $ **/

10 public class X_C_BankStatementLine extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_BankStatementLine (Properties ctx, int C_BankStatementLine_ID)
14 {
15 super (ctx, C_BankStatementLine_ID);
16 /** if (C_BankStatementLine_ID == 0)
17 {
18 setC_BankStatementLine_ID (0);
19 setC_BankStatement_ID (0);
20 setC_Charge_ID (0);
21 setC_Currency_ID (0);
22 setChargeAmt (Env.ZERO);
23 setDateAcct (new Timestamp(System.currentTimeMillis()));
24 setInterestAmt (Env.ZERO);
25 setIsReversal (false);
26 setLine (0);
27 setStmtAmt (Env.ZERO);
28 setTrxAmt (Env.ZERO);
29 setValutaDate (new Timestamp(System.currentTimeMillis()));
30 }
31  **/

32 }
33 /** Load Constructor **/
34 public X_C_BankStatementLine (Properties ctx, ResultSet rs)
35 {
36 super (ctx, rs);
37 }
38 /** Load Meta Data **/
39 protected POInfo initPO (Properties ctx)
40 {
41 int AD_Table_ID = 393;
42 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
43 return poi;
44 }
45 public String JavaDoc toString()
46 {
47 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_C_BankStatementLine[").append(getID()).append("]");
48 return sb.toString();
49 }
50 void setC_BankStatementLine_ID (int C_BankStatementLine_ID)
51 {
52 setValueNoCheck ("C_BankStatementLine_ID", new Integer JavaDoc(C_BankStatementLine_ID));
53 }
54 public int getC_BankStatementLine_ID()
55 {
56 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BankStatementLine_ID");
57 if (ii == null) return 0;
58 return ii.intValue();
59 }
60 void setC_BankStatement_ID (int C_BankStatement_ID)
61 {
62 setValueNoCheck ("C_BankStatement_ID", new Integer JavaDoc(C_BankStatement_ID));
63 }
64 public int getC_BankStatement_ID()
65 {
66 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BankStatement_ID");
67 if (ii == null) return 0;
68 return ii.intValue();
69 }
70 public void setC_Charge_ID (int C_Charge_ID)
71 {
72 setValue ("C_Charge_ID", new Integer JavaDoc(C_Charge_ID));
73 }
74 public int getC_Charge_ID()
75 {
76 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Charge_ID");
77 if (ii == null) return 0;
78 return ii.intValue();
79 }
80 public void setC_Currency_ID (int C_Currency_ID)
81 {
82 setValue ("C_Currency_ID", new Integer JavaDoc(C_Currency_ID));
83 }
84 public int getC_Currency_ID()
85 {
86 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Currency_ID");
87 if (ii == null) return 0;
88 return ii.intValue();
89 }
90 public void setC_Payment_ID (int C_Payment_ID)
91 {
92 if (C_Payment_ID == 0) setValue ("C_Payment_ID", null);
93  else
94 setValue ("C_Payment_ID", new Integer JavaDoc(C_Payment_ID));
95 }
96 public int getC_Payment_ID()
97 {
98 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Payment_ID");
99 if (ii == null) return 0;
100 return ii.intValue();
101 }
102 public void setChargeAmt (BigDecimal ChargeAmt)
103 {
104 if (ChargeAmt == null) throw new IllegalArgumentException JavaDoc ("ChargeAmt is mandatory");
105 setValue ("ChargeAmt", ChargeAmt);
106 }
107 public BigDecimal getChargeAmt()
108 {
109 BigDecimal bd = (BigDecimal)getValue("ChargeAmt");
110 if (bd == null) return Env.ZERO;
111 return bd;
112 }
113 public void setDateAcct (Timestamp DateAcct)
114 {
115 if (DateAcct == null) throw new IllegalArgumentException JavaDoc ("DateAcct is mandatory");
116 setValue ("DateAcct", DateAcct);
117 }
118 public Timestamp getDateAcct()
119 {
120 return (Timestamp)getValue("DateAcct");
121 }
122 public void setDescription (String JavaDoc Description)
123 {
124 setValue ("Description", Description);
125 }
126 public String JavaDoc getDescription()
127 {
128 return (String JavaDoc)getValue("Description");
129 }
130 public void setInterestAmt (BigDecimal InterestAmt)
131 {
132 if (InterestAmt == null) throw new IllegalArgumentException JavaDoc ("InterestAmt is mandatory");
133 setValue ("InterestAmt", InterestAmt);
134 }
135 public BigDecimal getInterestAmt()
136 {
137 BigDecimal bd = (BigDecimal)getValue("InterestAmt");
138 if (bd == null) return Env.ZERO;
139 return bd;
140 }
141 public void setIsReversal (boolean IsReversal)
142 {
143 setValue ("IsReversal", new Boolean JavaDoc(IsReversal));
144 }
145 public boolean isReversal()
146 {
147 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsReversal");
148 if (bb != null) return bb.booleanValue();
149 return false;
150 }
151 public void setLine (int Line)
152 {
153 setValue ("Line", new Integer JavaDoc(Line));
154 }
155 public int getLine()
156 {
157 Integer JavaDoc ii = (Integer JavaDoc)getValue("Line");
158 if (ii == null) return 0;
159 return ii.intValue();
160 }
161 public void setMemo (String JavaDoc Memo)
162 {
163 setValue ("Memo", Memo);
164 }
165 public String JavaDoc getMemo()
166 {
167 return (String JavaDoc)getValue("Memo");
168 }
169 public void setReferenceNo (String JavaDoc ReferenceNo)
170 {
171 setValue ("ReferenceNo", ReferenceNo);
172 }
173 public String JavaDoc getReferenceNo()
174 {
175 return (String JavaDoc)getValue("ReferenceNo");
176 }
177 public void setStmtAmt (BigDecimal StmtAmt)
178 {
179 if (StmtAmt == null) throw new IllegalArgumentException JavaDoc ("StmtAmt is mandatory");
180 setValue ("StmtAmt", StmtAmt);
181 }
182 public BigDecimal getStmtAmt()
183 {
184 BigDecimal bd = (BigDecimal)getValue("StmtAmt");
185 if (bd == null) return Env.ZERO;
186 return bd;
187 }
188 public void setTrxAmt (BigDecimal TrxAmt)
189 {
190 if (TrxAmt == null) throw new IllegalArgumentException JavaDoc ("TrxAmt is mandatory");
191 setValue ("TrxAmt", TrxAmt);
192 }
193 public BigDecimal getTrxAmt()
194 {
195 BigDecimal bd = (BigDecimal)getValue("TrxAmt");
196 if (bd == null) return Env.ZERO;
197 return bd;
198 }
199 public void setValutaDate (Timestamp ValutaDate)
200 {
201 if (ValutaDate == null) throw new IllegalArgumentException JavaDoc ("ValutaDate is mandatory");
202 setValue ("ValutaDate", ValutaDate);
203 }
204 public Timestamp getValutaDate()
205 {
206 return (Timestamp)getValue("ValutaDate");
207 }
208 }
209
Popular Tags