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_ValidCombination extends PO 11 { 12 13 public X_C_ValidCombination (Properties ctx, int C_ValidCombination_ID) 14 { 15 super (ctx, C_ValidCombination_ID); 16 24 } 25 26 public X_C_ValidCombination (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 176; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_C_ValidCombination[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 void setAD_OrgTrx_ID (int AD_OrgTrx_ID) 43 { 44 if (AD_OrgTrx_ID == 0) setValueNoCheck ("AD_OrgTrx_ID", null); 45 else 46 setValueNoCheck ("AD_OrgTrx_ID", new Integer (AD_OrgTrx_ID)); 47 } 48 public int getAD_OrgTrx_ID() 49 { 50 Integer ii = (Integer )getValue("AD_OrgTrx_ID"); 51 if (ii == null) return 0; 52 return ii.intValue(); 53 } 54 void setAccount_ID (int Account_ID) 55 { 56 setValueNoCheck ("Account_ID", new Integer (Account_ID)); 57 } 58 public int getAccount_ID() 59 { 60 Integer ii = (Integer )getValue("Account_ID"); 61 if (ii == null) return 0; 62 return ii.intValue(); 63 } 64 public void setAlias (String Alias) 65 { 66 setValue ("Alias", Alias); 67 } 68 public String getAlias() 69 { 70 return (String )getValue("Alias"); 71 } 72 void setC_AcctSchema_ID (int C_AcctSchema_ID) 73 { 74 setValueNoCheck ("C_AcctSchema_ID", new Integer (C_AcctSchema_ID)); 75 } 76 public int getC_AcctSchema_ID() 77 { 78 Integer ii = (Integer )getValue("C_AcctSchema_ID"); 79 if (ii == null) return 0; 80 return ii.intValue(); 81 } 82 void setC_Activity_ID (int C_Activity_ID) 83 { 84 if (C_Activity_ID == 0) setValueNoCheck ("C_Activity_ID", null); 85 else 86 setValueNoCheck ("C_Activity_ID", new Integer (C_Activity_ID)); 87 } 88 public int getC_Activity_ID() 89 { 90 Integer ii = (Integer )getValue("C_Activity_ID"); 91 if (ii == null) return 0; 92 return ii.intValue(); 93 } 94 void setC_BPartner_ID (int C_BPartner_ID) 95 { 96 if (C_BPartner_ID == 0) setValueNoCheck ("C_BPartner_ID", null); 97 else 98 setValueNoCheck ("C_BPartner_ID", new Integer (C_BPartner_ID)); 99 } 100 public int getC_BPartner_ID() 101 { 102 Integer ii = (Integer )getValue("C_BPartner_ID"); 103 if (ii == null) return 0; 104 return ii.intValue(); 105 } 106 void setC_Campaign_ID (int C_Campaign_ID) 107 { 108 if (C_Campaign_ID == 0) setValueNoCheck ("C_Campaign_ID", null); 109 else 110 setValueNoCheck ("C_Campaign_ID", new Integer (C_Campaign_ID)); 111 } 112 public int getC_Campaign_ID() 113 { 114 Integer ii = (Integer )getValue("C_Campaign_ID"); 115 if (ii == null) return 0; 116 return ii.intValue(); 117 } 118 void setC_LocFrom_ID (int C_LocFrom_ID) 119 { 120 if (C_LocFrom_ID == 0) setValueNoCheck ("C_LocFrom_ID", null); 121 else 122 setValueNoCheck ("C_LocFrom_ID", new Integer (C_LocFrom_ID)); 123 } 124 public int getC_LocFrom_ID() 125 { 126 Integer ii = (Integer )getValue("C_LocFrom_ID"); 127 if (ii == null) return 0; 128 return ii.intValue(); 129 } 130 void setC_LocTo_ID (int C_LocTo_ID) 131 { 132 if (C_LocTo_ID == 0) setValueNoCheck ("C_LocTo_ID", null); 133 else 134 setValueNoCheck ("C_LocTo_ID", new Integer (C_LocTo_ID)); 135 } 136 public int getC_LocTo_ID() 137 { 138 Integer ii = (Integer )getValue("C_LocTo_ID"); 139 if (ii == null) return 0; 140 return ii.intValue(); 141 } 142 void setC_Project_ID (int C_Project_ID) 143 { 144 if (C_Project_ID == 0) setValueNoCheck ("C_Project_ID", null); 145 else 146 setValueNoCheck ("C_Project_ID", new Integer (C_Project_ID)); 147 } 148 public int getC_Project_ID() 149 { 150 Integer ii = (Integer )getValue("C_Project_ID"); 151 if (ii == null) return 0; 152 return ii.intValue(); 153 } 154 void setC_SalesRegion_ID (int C_SalesRegion_ID) 155 { 156 if (C_SalesRegion_ID == 0) setValueNoCheck ("C_SalesRegion_ID", null); 157 else 158 setValueNoCheck ("C_SalesRegion_ID", new Integer (C_SalesRegion_ID)); 159 } 160 public int getC_SalesRegion_ID() 161 { 162 Integer ii = (Integer )getValue("C_SalesRegion_ID"); 163 if (ii == null) return 0; 164 return ii.intValue(); 165 } 166 void setC_ValidCombination_ID (int C_ValidCombination_ID) 167 { 168 setValueNoCheck ("C_ValidCombination_ID", new Integer (C_ValidCombination_ID)); 169 } 170 public int getC_ValidCombination_ID() 171 { 172 Integer ii = (Integer )getValue("C_ValidCombination_ID"); 173 if (ii == null) return 0; 174 return ii.intValue(); 175 } 176 void setCombination (String Combination) 177 { 178 setValueNoCheck ("Combination", Combination); 179 } 180 public String getCombination() 181 { 182 return (String )getValue("Combination"); 183 } 184 void setDescription (String Description) 185 { 186 setValueNoCheck ("Description", Description); 187 } 188 public String getDescription() 189 { 190 return (String )getValue("Description"); 191 } 192 void setIsFullyQualified (boolean IsFullyQualified) 193 { 194 setValueNoCheck ("IsFullyQualified", new Boolean (IsFullyQualified)); 195 } 196 public boolean isFullyQualified() 197 { 198 Boolean bb = (Boolean )getValue("IsFullyQualified"); 199 if (bb != null) return bb.booleanValue(); 200 return false; 201 } 202 void setM_Product_ID (int M_Product_ID) 203 { 204 if (M_Product_ID == 0) setValueNoCheck ("M_Product_ID", null); 205 else 206 setValueNoCheck ("M_Product_ID", new Integer (M_Product_ID)); 207 } 208 public int getM_Product_ID() 209 { 210 Integer ii = (Integer )getValue("M_Product_ID"); 211 if (ii == null) return 0; 212 return ii.intValue(); 213 } 214 void setUser1_ID (int User1_ID) 215 { 216 if (User1_ID == 0) setValueNoCheck ("User1_ID", null); 217 else 218 setValueNoCheck ("User1_ID", new Integer (User1_ID)); 219 } 220 public int getUser1_ID() 221 { 222 Integer ii = (Integer )getValue("User1_ID"); 223 if (ii == null) return 0; 224 return ii.intValue(); 225 } 226 void setUser2_ID (int User2_ID) 227 { 228 if (User2_ID == 0) setValueNoCheck ("User2_ID", null); 229 else 230 setValueNoCheck ("User2_ID", new Integer (User2_ID)); 231 } 232 public int getUser2_ID() 233 { 234 Integer ii = (Integer )getValue("User2_ID"); 235 if (ii == null) return 0; 236 return ii.intValue(); 237 } 238 } 239 | Popular Tags |