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_I_ElementValue extends PO 11 { 12 13 public X_I_ElementValue (Properties ctx, int I_ElementValue_ID) 14 { 15 super (ctx, I_ElementValue_ID); 16 23 } 24 25 public X_I_ElementValue (Properties ctx, ResultSet rs) 26 { 27 super (ctx, rs); 28 } 29 30 protected POInfo initPO (Properties ctx) 31 { 32 int AD_Table_ID = 534; 33 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 34 return poi; 35 } 36 public String toString() 37 { 38 StringBuffer sb = new StringBuffer ("X_I_ElementValue[").append(getID()).append("]"); 39 return sb.toString(); 40 } 41 public void setAD_Column_ID (int AD_Column_ID) 42 { 43 if (AD_Column_ID == 0) setValue ("AD_Column_ID", null); 44 else 45 setValue ("AD_Column_ID", new Integer (AD_Column_ID)); 46 } 47 public int getAD_Column_ID() 48 { 49 Integer ii = (Integer )getValue("AD_Column_ID"); 50 if (ii == null) return 0; 51 return ii.intValue(); 52 } 53 public static final String ACCOUNTSIGN_Natural = "N"; 54 public static final String ACCOUNTSIGN_Debit = "D"; 55 public static final String ACCOUNTSIGN_Credit = "C"; 56 public void setAccountSign (String AccountSign) 57 { 58 if (AccountSign.equals("N") || AccountSign.equals("D") || AccountSign.equals("C")); 59 else throw new IllegalArgumentException ("AccountSign Invalid value - Reference_ID=118 - N - D - C"); 60 setValue ("AccountSign", AccountSign); 61 } 62 public String getAccountSign() 63 { 64 return (String )getValue("AccountSign"); 65 } 66 public static final String ACCOUNTTYPE_Asset = "A"; 67 public static final String ACCOUNTTYPE_Liability = "L"; 68 public static final String ACCOUNTTYPE_Revenue = "R"; 69 public static final String ACCOUNTTYPE_Expense = "E"; 70 public static final String ACCOUNTTYPE_OwnerSEquity = "O"; 71 public static final String ACCOUNTTYPE_Memo = "M"; 72 public void setAccountType (String AccountType) 73 { 74 if (AccountType.equals("A") || AccountType.equals("L") || AccountType.equals("R") || AccountType.equals("E") || AccountType.equals("O") || AccountType.equals("M")); 75 else throw new IllegalArgumentException ("AccountType Invalid value - Reference_ID=117 - A - L - R - E - O - M"); 76 setValue ("AccountType", AccountType); 77 } 78 public String getAccountType() 79 { 80 return (String )getValue("AccountType"); 81 } 82 public void setC_ElementValue_ID (int C_ElementValue_ID) 83 { 84 if (C_ElementValue_ID == 0) setValue ("C_ElementValue_ID", null); 85 else 86 setValue ("C_ElementValue_ID", new Integer (C_ElementValue_ID)); 87 } 88 public int getC_ElementValue_ID() 89 { 90 Integer ii = (Integer )getValue("C_ElementValue_ID"); 91 if (ii == null) return 0; 92 return ii.intValue(); 93 } 94 public void setC_Element_ID (int C_Element_ID) 95 { 96 if (C_Element_ID == 0) setValue ("C_Element_ID", null); 97 else 98 setValue ("C_Element_ID", new Integer (C_Element_ID)); 99 } 100 public int getC_Element_ID() 101 { 102 Integer ii = (Integer )getValue("C_Element_ID"); 103 if (ii == null) return 0; 104 return ii.intValue(); 105 } 106 public void setDefault_Account (String Default_Account) 107 { 108 setValue ("Default_Account", Default_Account); 109 } 110 public String getDefault_Account() 111 { 112 return (String )getValue("Default_Account"); 113 } 114 public void setDescription (String Description) 115 { 116 setValue ("Description", Description); 117 } 118 public String getDescription() 119 { 120 return (String )getValue("Description"); 121 } 122 public void setElementName (String ElementName) 123 { 124 setValue ("ElementName", ElementName); 125 } 126 public String getElementName() 127 { 128 return (String )getValue("ElementName"); 129 } 130 void setI_ElementValue_ID (int I_ElementValue_ID) 131 { 132 setValueNoCheck ("I_ElementValue_ID", new Integer (I_ElementValue_ID)); 133 } 134 public int getI_ElementValue_ID() 135 { 136 Integer ii = (Integer )getValue("I_ElementValue_ID"); 137 if (ii == null) return 0; 138 return ii.intValue(); 139 } 140 void setI_ErrorMsg (String I_ErrorMsg) 141 { 142 setValueNoCheck ("I_ErrorMsg", I_ErrorMsg); 143 } 144 public String getI_ErrorMsg() 145 { 146 return (String )getValue("I_ErrorMsg"); 147 } 148 void setI_IsImported (boolean I_IsImported) 149 { 150 setValueNoCheck ("I_IsImported", new Boolean (I_IsImported)); 151 } 152 public boolean isI_IsImported() 153 { 154 Boolean bb = (Boolean )getValue("I_IsImported"); 155 if (bb != null) return bb.booleanValue(); 156 return false; 157 } 158 public void setIsDocControlled (boolean IsDocControlled) 159 { 160 setValue ("IsDocControlled", new Boolean (IsDocControlled)); 161 } 162 public boolean isDocControlled() 163 { 164 Boolean bb = (Boolean )getValue("IsDocControlled"); 165 if (bb != null) return bb.booleanValue(); 166 return false; 167 } 168 public void setIsSummary (boolean IsSummary) 169 { 170 setValue ("IsSummary", new Boolean (IsSummary)); 171 } 172 public boolean isSummary() 173 { 174 Boolean bb = (Boolean )getValue("IsSummary"); 175 if (bb != null) return bb.booleanValue(); 176 return false; 177 } 178 public void setName (String Name) 179 { 180 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 181 setValue ("Name", Name); 182 } 183 public String getName() 184 { 185 return (String )getValue("Name"); 186 } 187 public void setParentElementValue_ID (int ParentElementValue_ID) 188 { 189 if (ParentElementValue_ID == 0) setValue ("ParentElementValue_ID", null); 190 else 191 setValue ("ParentElementValue_ID", new Integer (ParentElementValue_ID)); 192 } 193 public int getParentElementValue_ID() 194 { 195 Integer ii = (Integer )getValue("ParentElementValue_ID"); 196 if (ii == null) return 0; 197 return ii.intValue(); 198 } 199 public void setParentValue (String ParentValue) 200 { 201 setValue ("ParentValue", ParentValue); 202 } 203 public String getParentValue() 204 { 205 return (String )getValue("ParentValue"); 206 } 207 public void setPostActual (boolean PostActual) 208 { 209 setValue ("PostActual", new Boolean (PostActual)); 210 } 211 public boolean isPostActual() 212 { 213 Boolean bb = (Boolean )getValue("PostActual"); 214 if (bb != null) return bb.booleanValue(); 215 return false; 216 } 217 public void setPostBudget (boolean PostBudget) 218 { 219 setValue ("PostBudget", new Boolean (PostBudget)); 220 } 221 public boolean isPostBudget() 222 { 223 Boolean bb = (Boolean )getValue("PostBudget"); 224 if (bb != null) return bb.booleanValue(); 225 return false; 226 } 227 public void setPostEncumbrance (boolean PostEncumbrance) 228 { 229 setValue ("PostEncumbrance", new Boolean (PostEncumbrance)); 230 } 231 public boolean isPostEncumbrance() 232 { 233 Boolean bb = (Boolean )getValue("PostEncumbrance"); 234 if (bb != null) return bb.booleanValue(); 235 return false; 236 } 237 public void setPostStatistical (boolean PostStatistical) 238 { 239 setValue ("PostStatistical", new Boolean (PostStatistical)); 240 } 241 public boolean isPostStatistical() 242 { 243 Boolean bb = (Boolean )getValue("PostStatistical"); 244 if (bb != null) return bb.booleanValue(); 245 return false; 246 } 247 void setProcessed (boolean Processed) 248 { 249 setValueNoCheck ("Processed", new Boolean (Processed)); 250 } 251 public boolean isProcessed() 252 { 253 Boolean bb = (Boolean )getValue("Processed"); 254 if (bb != null) return bb.booleanValue(); 255 return false; 256 } 257 public void setProcessing (String Processing) 258 { 259 setValue ("Processing", Processing); 260 } 261 public String getProcessing() 262 { 263 return (String )getValue("Processing"); 264 } 265 public void setValue (String Value) 266 { 267 if (Value == null) throw new IllegalArgumentException ("Value is mandatory"); 268 setValue ("Value", Value); 269 } 270 public String getValue() 271 { 272 return (String )getValue("Value"); 273 } 274 } 275
| Popular Tags
|