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_BP_BankAccount extends PO 11 { 12 13 public X_C_BP_BankAccount (Properties ctx, int C_BP_BankAccount_ID) 14 { 15 super (ctx, C_BP_BankAccount_ID); 16 24 } 25 26 public X_C_BP_BankAccount (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 298; 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_BP_BankAccount[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 public void setAD_User_ID (int AD_User_ID) 43 { 44 if (AD_User_ID == 0) setValue ("AD_User_ID", null); 45 else 46 setValue ("AD_User_ID", new Integer (AD_User_ID)); 47 } 48 public int getAD_User_ID() 49 { 50 Integer ii = (Integer )getValue("AD_User_ID"); 51 if (ii == null) return 0; 52 return ii.intValue(); 53 } 54 public void setA_City (String A_City) 55 { 56 setValue ("A_City", A_City); 57 } 58 public String getA_City() 59 { 60 return (String )getValue("A_City"); 61 } 62 public void setA_Country (String A_Country) 63 { 64 setValue ("A_Country", A_Country); 65 } 66 public String getA_Country() 67 { 68 return (String )getValue("A_Country"); 69 } 70 public void setA_EMail (String A_EMail) 71 { 72 setValue ("A_EMail", A_EMail); 73 } 74 public String getA_EMail() 75 { 76 return (String )getValue("A_EMail"); 77 } 78 public void setA_Ident_DL (String A_Ident_DL) 79 { 80 setValue ("A_Ident_DL", A_Ident_DL); 81 } 82 public String getA_Ident_DL() 83 { 84 return (String )getValue("A_Ident_DL"); 85 } 86 public void setA_Ident_SSN (String A_Ident_SSN) 87 { 88 setValue ("A_Ident_SSN", A_Ident_SSN); 89 } 90 public String getA_Ident_SSN() 91 { 92 return (String )getValue("A_Ident_SSN"); 93 } 94 public void setA_Name (String A_Name) 95 { 96 if (A_Name == null) throw new IllegalArgumentException ("A_Name is mandatory"); 97 setValue ("A_Name", A_Name); 98 } 99 public String getA_Name() 100 { 101 return (String )getValue("A_Name"); 102 } 103 public void setA_State (String A_State) 104 { 105 setValue ("A_State", A_State); 106 } 107 public String getA_State() 108 { 109 return (String )getValue("A_State"); 110 } 111 public void setA_Street (String A_Street) 112 { 113 setValue ("A_Street", A_Street); 114 } 115 public String getA_Street() 116 { 117 return (String )getValue("A_Street"); 118 } 119 public void setA_Zip (String A_Zip) 120 { 121 setValue ("A_Zip", A_Zip); 122 } 123 public String getA_Zip() 124 { 125 return (String )getValue("A_Zip"); 126 } 127 public void setAccountNo (String AccountNo) 128 { 129 setValue ("AccountNo", AccountNo); 130 } 131 public String getAccountNo() 132 { 133 return (String )getValue("AccountNo"); 134 } 135 public static final String BANKACCOUNTTYPE_Checking = "C"; 136 public static final String BANKACCOUNTTYPE_Savings = "S"; 137 public void setBankAccountType (String BankAccountType) 138 { 139 if (BankAccountType.equals("C") || BankAccountType.equals("S")); 140 else throw new IllegalArgumentException ("BankAccountType Invalid value - Reference_ID=216 - C - S"); 141 setValue ("BankAccountType", BankAccountType); 142 } 143 public String getBankAccountType() 144 { 145 return (String )getValue("BankAccountType"); 146 } 147 void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID) 148 { 149 setValueNoCheck ("C_BP_BankAccount_ID", new Integer (C_BP_BankAccount_ID)); 150 } 151 public int getC_BP_BankAccount_ID() 152 { 153 Integer ii = (Integer )getValue("C_BP_BankAccount_ID"); 154 if (ii == null) return 0; 155 return ii.intValue(); 156 } 157 void setC_BPartner_ID (int C_BPartner_ID) 158 { 159 setValueNoCheck ("C_BPartner_ID", new Integer (C_BPartner_ID)); 160 } 161 public int getC_BPartner_ID() 162 { 163 Integer ii = (Integer )getValue("C_BPartner_ID"); 164 if (ii == null) return 0; 165 return ii.intValue(); 166 } 167 public void setC_Bank_ID (int C_Bank_ID) 168 { 169 if (C_Bank_ID == 0) setValue ("C_Bank_ID", null); 170 else 171 setValue ("C_Bank_ID", new Integer (C_Bank_ID)); 172 } 173 public int getC_Bank_ID() 174 { 175 Integer ii = (Integer )getValue("C_Bank_ID"); 176 if (ii == null) return 0; 177 return ii.intValue(); 178 } 179 public void setCreditCardExpMM (int CreditCardExpMM) 180 { 181 setValue ("CreditCardExpMM", new Integer (CreditCardExpMM)); 182 } 183 public int getCreditCardExpMM() 184 { 185 Integer ii = (Integer )getValue("CreditCardExpMM"); 186 if (ii == null) return 0; 187 return ii.intValue(); 188 } 189 public void setCreditCardExpYY (int CreditCardExpYY) 190 { 191 setValue ("CreditCardExpYY", new Integer (CreditCardExpYY)); 192 } 193 public int getCreditCardExpYY() 194 { 195 Integer ii = (Integer )getValue("CreditCardExpYY"); 196 if (ii == null) return 0; 197 return ii.intValue(); 198 } 199 public void setCreditCardNumber (String CreditCardNumber) 200 { 201 setValue ("CreditCardNumber", CreditCardNumber); 202 } 203 public String getCreditCardNumber() 204 { 205 return (String )getValue("CreditCardNumber"); 206 } 207 public static final String CREDITCARDTYPE_Diners = "D"; 208 public static final String CREDITCARDTYPE_Discover = "N"; 209 public static final String CREDITCARDTYPE_PurchaseCard = "P"; 210 public static final String CREDITCARDTYPE_Amex = "A"; 211 public static final String CREDITCARDTYPE_MasterCard = "M"; 212 public static final String CREDITCARDTYPE_Visa = "V"; 213 public static final String CREDITCARDTYPE_ATM = "C"; 214 public void setCreditCardType (String CreditCardType) 215 { 216 if (CreditCardType.equals("D") || CreditCardType.equals("N") || CreditCardType.equals("P") || CreditCardType.equals("A") || CreditCardType.equals("M") || CreditCardType.equals("V") || CreditCardType.equals("C")); 217 else throw new IllegalArgumentException ("CreditCardType Invalid value - Reference_ID=149 - D - N - P - A - M - V - C"); 218 setValue ("CreditCardType", CreditCardType); 219 } 220 public String getCreditCardType() 221 { 222 return (String )getValue("CreditCardType"); 223 } 224 public void setCreditCardVV (String CreditCardVV) 225 { 226 setValue ("CreditCardVV", CreditCardVV); 227 } 228 public String getCreditCardVV() 229 { 230 return (String )getValue("CreditCardVV"); 231 } 232 public void setIsACH (boolean IsACH) 233 { 234 setValue ("IsACH", new Boolean (IsACH)); 235 } 236 public boolean isACH() 237 { 238 Boolean bb = (Boolean )getValue("IsACH"); 239 if (bb != null) return bb.booleanValue(); 240 return false; 241 } 242 public static final String R_AVSADDR_Match = "Y"; 243 public static final String R_AVSADDR_NoMatch = "N"; 244 public static final String R_AVSADDR_Unavailable = "X"; 245 void setR_AvsAddr (String R_AvsAddr) 246 { 247 if (R_AvsAddr.equals("Y") || R_AvsAddr.equals("N") || R_AvsAddr.equals("X")); 248 else throw new IllegalArgumentException ("R_AvsAddr Invalid value - Reference_ID=213 - Y - N - X"); 249 setValueNoCheck ("R_AvsAddr", R_AvsAddr); 250 } 251 public String getR_AvsAddr() 252 { 253 return (String )getValue("R_AvsAddr"); 254 } 255 public static final String R_AVSZIP_Match = "Y"; 256 public static final String R_AVSZIP_NoMatch = "N"; 257 public static final String R_AVSZIP_Unavailable = "X"; 258 void setR_AvsZip (String R_AvsZip) 259 { 260 if (R_AvsZip.equals("Y") || R_AvsZip.equals("N") || R_AvsZip.equals("X")); 261 else throw new IllegalArgumentException ("R_AvsZip Invalid value - Reference_ID=213 - Y - N - X"); 262 setValueNoCheck ("R_AvsZip", R_AvsZip); 263 } 264 public String getR_AvsZip() 265 { 266 return (String )getValue("R_AvsZip"); 267 } 268 public void setRoutingNo (String RoutingNo) 269 { 270 setValue ("RoutingNo", RoutingNo); 271 } 272 public String getRoutingNo() 273 { 274 return (String )getValue("RoutingNo"); 275 } 276 } 277
| Popular Tags
|