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_Test extends PO 11 { 12 13 public X_Test (Properties ctx, int Test_ID) 14 { 15 super (ctx, Test_ID); 16 22 } 23 24 public X_Test (Properties ctx, ResultSet rs) 25 { 26 super (ctx, rs); 27 } 28 29 protected POInfo initPO (Properties ctx) 30 { 31 int AD_Table_ID = 135; 32 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 33 return poi; 34 } 35 public String toString() 36 { 37 StringBuffer sb = new StringBuffer ("X_Test[").append(getID()).append("]"); 38 return sb.toString(); 39 } 40 public void setAccount_Acct (String Account_Acct) 41 { 42 setValue ("Account_Acct", Account_Acct); 43 } 44 public String getAccount_Acct() 45 { 46 return (String )getValue("Account_Acct"); 47 } 48 public void setBinaryData (Object BinaryData) 49 { 50 setValue ("BinaryData", BinaryData); 51 } 52 public Object getBinaryData() 53 { 54 return getValue("BinaryData"); 55 } 56 public void setC_BPartner_ID (int C_BPartner_ID) 57 { 58 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null); 59 else 60 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 61 } 62 public int getC_BPartner_ID() 63 { 64 Integer ii = (Integer )getValue("C_BPartner_ID"); 65 if (ii == null) return 0; 66 return ii.intValue(); 67 } 68 public void setC_Currency_ID (int C_Currency_ID) 69 { 70 if (C_Currency_ID == 0) setValue ("C_Currency_ID", null); 71 else 72 setValue ("C_Currency_ID", new Integer (C_Currency_ID)); 73 } 74 public int getC_Currency_ID() 75 { 76 Integer ii = (Integer )getValue("C_Currency_ID"); 77 if (ii == null) return 0; 78 return ii.intValue(); 79 } 80 public void setC_Location_ID (int C_Location_ID) 81 { 82 if (C_Location_ID == 0) setValue ("C_Location_ID", null); 83 else 84 setValue ("C_Location_ID", new Integer (C_Location_ID)); 85 } 86 public int getC_Location_ID() 87 { 88 Integer ii = (Integer )getValue("C_Location_ID"); 89 if (ii == null) return 0; 90 return ii.intValue(); 91 } 92 public void setC_Payment_ID (int C_Payment_ID) 93 { 94 if (C_Payment_ID == 0) setValue ("C_Payment_ID", null); 95 else 96 setValue ("C_Payment_ID", new Integer (C_Payment_ID)); 97 } 98 public int getC_Payment_ID() 99 { 100 Integer ii = (Integer )getValue("C_Payment_ID"); 101 if (ii == null) return 0; 102 return ii.intValue(); 103 } 104 public void setC_UOM_ID (int C_UOM_ID) 105 { 106 if (C_UOM_ID == 0) setValue ("C_UOM_ID", null); 107 else 108 setValue ("C_UOM_ID", new Integer (C_UOM_ID)); 109 } 110 public int getC_UOM_ID() 111 { 112 Integer ii = (Integer )getValue("C_UOM_ID"); 113 if (ii == null) return 0; 114 return ii.intValue(); 115 } 116 public void setCharacterData (String CharacterData) 117 { 118 setValue ("CharacterData", CharacterData); 119 } 120 public String getCharacterData() 121 { 122 return (String )getValue("CharacterData"); 123 } 124 public void setDescription (String Description) 125 { 126 setValue ("Description", Description); 127 } 128 public String getDescription() 129 { 130 return (String )getValue("Description"); 131 } 132 public void setHelp (String Help) 133 { 134 setValue ("Help", Help); 135 } 136 public String getHelp() 137 { 138 return (String )getValue("Help"); 139 } 140 public void setM_Locator_ID (int M_Locator_ID) 141 { 142 if (M_Locator_ID == 0) setValue ("M_Locator_ID", null); 143 else 144 setValue ("M_Locator_ID", new Integer (M_Locator_ID)); 145 } 146 public int getM_Locator_ID() 147 { 148 Integer ii = (Integer )getValue("M_Locator_ID"); 149 if (ii == null) return 0; 150 return ii.intValue(); 151 } 152 public void setM_Product_ID (int M_Product_ID) 153 { 154 if (M_Product_ID == 0) setValue ("M_Product_ID", null); 155 else 156 setValue ("M_Product_ID", new Integer (M_Product_ID)); 157 } 158 public int getM_Product_ID() 159 { 160 Integer ii = (Integer )getValue("M_Product_ID"); 161 if (ii == null) return 0; 162 return ii.intValue(); 163 } 164 public void setName (String Name) 165 { 166 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 167 setValue ("Name", Name); 168 } 169 public String getName() 170 { 171 return (String )getValue("Name"); 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 setT_Amount (BigDecimal T_Amount) 192 { 193 setValue ("T_Amount", T_Amount); 194 } 195 public BigDecimal getT_Amount() 196 { 197 BigDecimal bd = (BigDecimal)getValue("T_Amount"); 198 if (bd == null) return Env.ZERO; 199 return bd; 200 } 201 public void setT_Date (Timestamp T_Date) 202 { 203 setValue ("T_Date", T_Date); 204 } 205 public Timestamp getT_Date() 206 { 207 return (Timestamp)getValue("T_Date"); 208 } 209 public void setT_DateTime (Timestamp T_DateTime) 210 { 211 setValue ("T_DateTime", T_DateTime); 212 } 213 public Timestamp getT_DateTime() 214 { 215 return (Timestamp)getValue("T_DateTime"); 216 } 217 public void setT_Integer (int T_Integer) 218 { 219 setValue ("T_Integer", new Integer (T_Integer)); 220 } 221 public int getT_Integer() 222 { 223 Integer ii = (Integer )getValue("T_Integer"); 224 if (ii == null) return 0; 225 return ii.intValue(); 226 } 227 public void setT_Number (BigDecimal T_Number) 228 { 229 setValue ("T_Number", T_Number); 230 } 231 public BigDecimal getT_Number() 232 { 233 BigDecimal bd = (BigDecimal)getValue("T_Number"); 234 if (bd == null) return Env.ZERO; 235 return bd; 236 } 237 public void setT_Qty (BigDecimal T_Qty) 238 { 239 setValue ("T_Qty", T_Qty); 240 } 241 public BigDecimal getT_Qty() 242 { 243 BigDecimal bd = (BigDecimal)getValue("T_Qty"); 244 if (bd == null) return Env.ZERO; 245 return bd; 246 } 247 void setTest_ID (int Test_ID) 248 { 249 setValueNoCheck ("Test_ID", new Integer (Test_ID)); 250 } 251 public int getTest_ID() 252 { 253 Integer ii = (Integer )getValue("Test_ID"); 254 if (ii == null) return 0; 255 return ii.intValue(); 256 } 257 } 258 | Popular Tags |