1 2 package org.compiere.model; 3 import java.util.*; 4 import java.sql.*; 5 import java.math.*; 6 import java.io.Serializable ; 7 import org.compiere.util.*; 8 10 public class X_C_BankStatementLine extends PO 11 { 12 13 public X_C_BankStatementLine (Properties ctx, int C_BankStatementLine_ID) 14 { 15 super (ctx, C_BankStatementLine_ID); 16 32 } 33 34 public X_C_BankStatementLine (Properties ctx, ResultSet rs) 35 { 36 super (ctx, rs); 37 } 38 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 toString() 46 { 47 StringBuffer sb = new StringBuffer ("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 (C_BankStatementLine_ID)); 53 } 54 public int getC_BankStatementLine_ID() 55 { 56 Integer ii = (Integer )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 (C_BankStatement_ID)); 63 } 64 public int getC_BankStatement_ID() 65 { 66 Integer ii = (Integer )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 (C_Charge_ID)); 73 } 74 public int getC_Charge_ID() 75 { 76 Integer ii = (Integer )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 (C_Currency_ID)); 83 } 84 public int getC_Currency_ID() 85 { 86 Integer ii = (Integer )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 (C_Payment_ID)); 95 } 96 public int getC_Payment_ID() 97 { 98 Integer ii = (Integer )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 ("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 ("DateAcct is mandatory"); 116 setValue ("DateAcct", DateAcct); 117 } 118 public Timestamp getDateAcct() 119 { 120 return (Timestamp)getValue("DateAcct"); 121 } 122 public void setDescription (String Description) 123 { 124 setValue ("Description", Description); 125 } 126 public String getDescription() 127 { 128 return (String )getValue("Description"); 129 } 130 public void setInterestAmt (BigDecimal InterestAmt) 131 { 132 if (InterestAmt == null) throw new IllegalArgumentException ("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 (IsReversal)); 144 } 145 public boolean isReversal() 146 { 147 Boolean bb = (Boolean )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 (Line)); 154 } 155 public int getLine() 156 { 157 Integer ii = (Integer )getValue("Line"); 158 if (ii == null) return 0; 159 return ii.intValue(); 160 } 161 public void setMemo (String Memo) 162 { 163 setValue ("Memo", Memo); 164 } 165 public String getMemo() 166 { 167 return (String )getValue("Memo"); 168 } 169 public void setReferenceNo (String ReferenceNo) 170 { 171 setValue ("ReferenceNo", ReferenceNo); 172 } 173 public String getReferenceNo() 174 { 175 return (String )getValue("ReferenceNo"); 176 } 177 public void setStmtAmt (BigDecimal StmtAmt) 178 { 179 if (StmtAmt == null) throw new IllegalArgumentException ("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 ("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 ("ValutaDate is mandatory"); 202 setValue ("ValutaDate", ValutaDate); 203 } 204 public Timestamp getValutaDate() 205 { 206 return (Timestamp)getValue("ValutaDate"); 207 } 208 } 209 | Popular Tags |