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_ElementValue extends PO 11 { 12 13 public X_C_ElementValue (Properties ctx, int C_ElementValue_ID) 14 { 15 super (ctx, C_ElementValue_ID); 16 31 } 32 33 public X_C_ElementValue (Properties ctx, ResultSet rs) 34 { 35 super (ctx, rs); 36 } 37 38 protected POInfo initPO (Properties ctx) 39 { 40 int AD_Table_ID = 188; 41 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 42 return poi; 43 } 44 public String toString() 45 { 46 StringBuffer sb = new StringBuffer ("X_C_ElementValue[").append(getID()).append("]"); 47 return sb.toString(); 48 } 49 public static final String ACCOUNTSIGN_Natural = "N"; 50 public static final String ACCOUNTSIGN_Debit = "D"; 51 public static final String ACCOUNTSIGN_Credit = "C"; 52 public void setAccountSign (String AccountSign) 53 { 54 if (AccountSign.equals("N") || AccountSign.equals("D") || AccountSign.equals("C")); 55 else throw new IllegalArgumentException ("AccountSign Invalid value - Reference_ID=118 - N - D - C"); 56 if (AccountSign == null) throw new IllegalArgumentException ("AccountSign is mandatory"); 57 setValue ("AccountSign", AccountSign); 58 } 59 public String getAccountSign() 60 { 61 return (String )getValue("AccountSign"); 62 } 63 public static final String ACCOUNTTYPE_Asset = "A"; 64 public static final String ACCOUNTTYPE_Liability = "L"; 65 public static final String ACCOUNTTYPE_Revenue = "R"; 66 public static final String ACCOUNTTYPE_Expense = "E"; 67 public static final String ACCOUNTTYPE_OwnerSEquity = "O"; 68 public static final String ACCOUNTTYPE_Memo = "M"; 69 public void setAccountType (String AccountType) 70 { 71 if (AccountType.equals("A") || AccountType.equals("L") || AccountType.equals("R") || AccountType.equals("E") || AccountType.equals("O") || AccountType.equals("M")); 72 else throw new IllegalArgumentException ("AccountType Invalid value - Reference_ID=117 - A - L - R - E - O - M"); 73 if (AccountType == null) throw new IllegalArgumentException ("AccountType is mandatory"); 74 setValue ("AccountType", AccountType); 75 } 76 public String getAccountType() 77 { 78 return (String )getValue("AccountType"); 79 } 80 public void setC_BankAccount_ID (int C_BankAccount_ID) 81 { 82 if (C_BankAccount_ID == 0) setValue ("C_BankAccount_ID", null); 83 else 84 setValue ("C_BankAccount_ID", new Integer (C_BankAccount_ID)); 85 } 86 public int getC_BankAccount_ID() 87 { 88 Integer ii = (Integer )getValue("C_BankAccount_ID"); 89 if (ii == null) return 0; 90 return ii.intValue(); 91 } 92 public void setC_Currency_ID (int C_Currency_ID) 93 { 94 if (C_Currency_ID == 0) setValue ("C_Currency_ID", null); 95 else 96 setValue ("C_Currency_ID", new Integer (C_Currency_ID)); 97 } 98 public int getC_Currency_ID() 99 { 100 Integer ii = (Integer )getValue("C_Currency_ID"); 101 if (ii == null) return 0; 102 return ii.intValue(); 103 } 104 void setC_ElementValue_ID (int C_ElementValue_ID) 105 { 106 setValueNoCheck ("C_ElementValue_ID", new Integer (C_ElementValue_ID)); 107 } 108 public int getC_ElementValue_ID() 109 { 110 Integer ii = (Integer )getValue("C_ElementValue_ID"); 111 if (ii == null) return 0; 112 return ii.intValue(); 113 } 114 void setC_Element_ID (int C_Element_ID) 115 { 116 setValueNoCheck ("C_Element_ID", new Integer (C_Element_ID)); 117 } 118 public int getC_Element_ID() 119 { 120 Integer ii = (Integer )getValue("C_Element_ID"); 121 if (ii == null) return 0; 122 return ii.intValue(); 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 setIsBankAccount (boolean IsBankAccount) 133 { 134 setValue ("IsBankAccount", new Boolean (IsBankAccount)); 135 } 136 public boolean isBankAccount() 137 { 138 Boolean bb = (Boolean )getValue("IsBankAccount"); 139 if (bb != null) return bb.booleanValue(); 140 return false; 141 } 142 public void setIsDocControlled (boolean IsDocControlled) 143 { 144 setValue ("IsDocControlled", new Boolean (IsDocControlled)); 145 } 146 public boolean isDocControlled() 147 { 148 Boolean bb = (Boolean )getValue("IsDocControlled"); 149 if (bb != null) return bb.booleanValue(); 150 return false; 151 } 152 public void setIsForeignCurrency (boolean IsForeignCurrency) 153 { 154 setValue ("IsForeignCurrency", new Boolean (IsForeignCurrency)); 155 } 156 public boolean isForeignCurrency() 157 { 158 Boolean bb = (Boolean )getValue("IsForeignCurrency"); 159 if (bb != null) return bb.booleanValue(); 160 return false; 161 } 162 public void setIsSummary (boolean IsSummary) 163 { 164 setValue ("IsSummary", new Boolean (IsSummary)); 165 } 166 public boolean isSummary() 167 { 168 Boolean bb = (Boolean )getValue("IsSummary"); 169 if (bb != null) return bb.booleanValue(); 170 return false; 171 } 172 public void setName (String Name) 173 { 174 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 175 setValue ("Name", Name); 176 } 177 public String getName() 178 { 179 return (String )getValue("Name"); 180 } 181 public void setPostActual (boolean PostActual) 182 { 183 setValue ("PostActual", new Boolean (PostActual)); 184 } 185 public boolean isPostActual() 186 { 187 Boolean bb = (Boolean )getValue("PostActual"); 188 if (bb != null) return bb.booleanValue(); 189 return false; 190 } 191 public void setPostBudget (boolean PostBudget) 192 { 193 setValue ("PostBudget", new Boolean (PostBudget)); 194 } 195 public boolean isPostBudget() 196 { 197 Boolean bb = (Boolean )getValue("PostBudget"); 198 if (bb != null) return bb.booleanValue(); 199 return false; 200 } 201 public void setPostEncumbrance (boolean PostEncumbrance) 202 { 203 setValue ("PostEncumbrance", new Boolean (PostEncumbrance)); 204 } 205 public boolean isPostEncumbrance() 206 { 207 Boolean bb = (Boolean )getValue("PostEncumbrance"); 208 if (bb != null) return bb.booleanValue(); 209 return false; 210 } 211 public void setPostStatistical (boolean PostStatistical) 212 { 213 setValue ("PostStatistical", new Boolean (PostStatistical)); 214 } 215 public boolean isPostStatistical() 216 { 217 Boolean bb = (Boolean )getValue("PostStatistical"); 218 if (bb != null) return bb.booleanValue(); 219 return false; 220 } 221 public void setValidFrom (Timestamp ValidFrom) 222 { 223 setValue ("ValidFrom", ValidFrom); 224 } 225 public Timestamp getValidFrom() 226 { 227 return (Timestamp)getValue("ValidFrom"); 228 } 229 public void setValidTo (Timestamp ValidTo) 230 { 231 setValue ("ValidTo", ValidTo); 232 } 233 public Timestamp getValidTo() 234 { 235 return (Timestamp)getValue("ValidTo"); 236 } 237 public void setValue (String Value) 238 { 239 if (Value == null) throw new IllegalArgumentException ("Value is mandatory"); 240 setValue ("Value", Value); 241 } 242 public String getValue() 243 { 244 return (String )getValue("Value"); 245 } 246 } 247
| Popular Tags
|