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_Cash extends PO 11 { 12 13 public X_C_Cash (Properties ctx, int C_Cash_ID) 14 { 15 super (ctx, C_Cash_ID); 16 29 } 30 31 public X_C_Cash (Properties ctx, ResultSet rs) 32 { 33 super (ctx, rs); 34 } 35 36 protected POInfo initPO (Properties ctx) 37 { 38 int AD_Table_ID = 407; 39 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 40 return poi; 41 } 42 public String toString() 43 { 44 StringBuffer sb = new StringBuffer ("X_C_Cash[").append(getID()).append("]"); 45 return sb.toString(); 46 } 47 public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) 48 { 49 if (AD_OrgTrx_ID == 0) setValue ("AD_OrgTrx_ID", null); 50 else 51 setValue ("AD_OrgTrx_ID", new Integer (AD_OrgTrx_ID)); 52 } 53 public int getAD_OrgTrx_ID() 54 { 55 Integer ii = (Integer )getValue("AD_OrgTrx_ID"); 56 if (ii == null) return 0; 57 return ii.intValue(); 58 } 59 public void setBeginningBalance (BigDecimal BeginningBalance) 60 { 61 if (BeginningBalance == null) throw new IllegalArgumentException ("BeginningBalance is mandatory"); 62 setValue ("BeginningBalance", BeginningBalance); 63 } 64 public BigDecimal getBeginningBalance() 65 { 66 BigDecimal bd = (BigDecimal)getValue("BeginningBalance"); 67 if (bd == null) return Env.ZERO; 68 return bd; 69 } 70 public void setC_Activity_ID (int C_Activity_ID) 71 { 72 if (C_Activity_ID == 0) setValue ("C_Activity_ID", null); 73 else 74 setValue ("C_Activity_ID", new Integer (C_Activity_ID)); 75 } 76 public int getC_Activity_ID() 77 { 78 Integer ii = (Integer )getValue("C_Activity_ID"); 79 if (ii == null) return 0; 80 return ii.intValue(); 81 } 82 public void setC_Campaign_ID (int C_Campaign_ID) 83 { 84 if (C_Campaign_ID == 0) setValue ("C_Campaign_ID", null); 85 else 86 setValue ("C_Campaign_ID", new Integer (C_Campaign_ID)); 87 } 88 public int getC_Campaign_ID() 89 { 90 Integer ii = (Integer )getValue("C_Campaign_ID"); 91 if (ii == null) return 0; 92 return ii.intValue(); 93 } 94 void setC_CashBook_ID (int C_CashBook_ID) 95 { 96 setValueNoCheck ("C_CashBook_ID", new Integer (C_CashBook_ID)); 97 } 98 public int getC_CashBook_ID() 99 { 100 Integer ii = (Integer )getValue("C_CashBook_ID"); 101 if (ii == null) return 0; 102 return ii.intValue(); 103 } 104 void setC_Cash_ID (int C_Cash_ID) 105 { 106 setValueNoCheck ("C_Cash_ID", new Integer (C_Cash_ID)); 107 } 108 public int getC_Cash_ID() 109 { 110 Integer ii = (Integer )getValue("C_Cash_ID"); 111 if (ii == null) return 0; 112 return ii.intValue(); 113 } 114 public void setC_Project_ID (int C_Project_ID) 115 { 116 if (C_Project_ID == 0) setValue ("C_Project_ID", null); 117 else 118 setValue ("C_Project_ID", new Integer (C_Project_ID)); 119 } 120 public int getC_Project_ID() 121 { 122 Integer ii = (Integer )getValue("C_Project_ID"); 123 if (ii == null) return 0; 124 return ii.intValue(); 125 } 126 public void setDateAcct (Timestamp DateAcct) 127 { 128 if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory"); 129 setValue ("DateAcct", DateAcct); 130 } 131 public Timestamp getDateAcct() 132 { 133 return (Timestamp)getValue("DateAcct"); 134 } 135 public void setDescription (String Description) 136 { 137 setValue ("Description", Description); 138 } 139 public String getDescription() 140 { 141 return (String )getValue("Description"); 142 } 143 public void setEndingBalance (BigDecimal EndingBalance) 144 { 145 if (EndingBalance == null) throw new IllegalArgumentException ("EndingBalance is mandatory"); 146 setValue ("EndingBalance", EndingBalance); 147 } 148 public BigDecimal getEndingBalance() 149 { 150 BigDecimal bd = (BigDecimal)getValue("EndingBalance"); 151 if (bd == null) return Env.ZERO; 152 return bd; 153 } 154 public void setName (String Name) 155 { 156 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 157 setValue ("Name", Name); 158 } 159 public String getName() 160 { 161 return (String )getValue("Name"); 162 } 163 public void setPosted (boolean Posted) 164 { 165 setValue ("Posted", new Boolean (Posted)); 166 } 167 public boolean isPosted() 168 { 169 Boolean bb = (Boolean )getValue("Posted"); 170 if (bb != null) return bb.booleanValue(); 171 return false; 172 } 173 public void setProcessed (boolean Processed) 174 { 175 setValue ("Processed", new Boolean (Processed)); 176 } 177 public boolean isProcessed() 178 { 179 Boolean bb = (Boolean )getValue("Processed"); 180 if (bb != null) return bb.booleanValue(); 181 return false; 182 } 183 public void setProcessing (String Processing) 184 { 185 setValue ("Processing", Processing); 186 } 187 public String getProcessing() 188 { 189 return (String )getValue("Processing"); 190 } 191 public void setStatementDate (Timestamp StatementDate) 192 { 193 if (StatementDate == null) throw new IllegalArgumentException ("StatementDate is mandatory"); 194 setValue ("StatementDate", StatementDate); 195 } 196 public Timestamp getStatementDate() 197 { 198 return (Timestamp)getValue("StatementDate"); 199 } 200 public void setStatementDifference (BigDecimal StatementDifference) 201 { 202 setValue ("StatementDifference", StatementDifference); 203 } 204 public BigDecimal getStatementDifference() 205 { 206 BigDecimal bd = (BigDecimal)getValue("StatementDifference"); 207 if (bd == null) return Env.ZERO; 208 return bd; 209 } 210 public void setUser1_ID (int User1_ID) 211 { 212 if (User1_ID == 0) setValue ("User1_ID", null); 213 else 214 setValue ("User1_ID", new Integer (User1_ID)); 215 } 216 public int getUser1_ID() 217 { 218 Integer ii = (Integer )getValue("User1_ID"); 219 if (ii == null) return 0; 220 return ii.intValue(); 221 } 222 public void setUser2_ID (int User2_ID) 223 { 224 if (User2_ID == 0) setValue ("User2_ID", null); 225 else 226 setValue ("User2_ID", new Integer (User2_ID)); 227 } 228 public int getUser2_ID() 229 { 230 Integer ii = (Integer )getValue("User2_ID"); 231 if (ii == null) return 0; 232 return ii.intValue(); 233 } 234 } 235 | Popular Tags |