X_C_BP_BankAccount.java
| Index Score | ||
|---|---|---|
![]() |
![]() |
org.compiere.model |
![]() |
![]() |
Compiere |
View: Reasons, Metrics, Source Code
These are the metrics that contribute to the Enerjy Score for this file, ranked by impact. So the metrics listed at the top influence the score to a greater extent that the metrics listed at the bottom.
/******************************************************************************
* Product: Compiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 3600 Bridge Parkway #102, Redwood City, CA 94065, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
/** Generated Model - DO NOT CHANGE */
import java.sql.*;
import java.math.*;
import org.compiere.framework.*;
import org.compiere.util.*;
/** Generated Model for C_BP_BankAccount
* @author Jorg Janke (generated)
* @version Release 3.1.0 - $Id$ */
public class X_C_BP_BankAccount extends PO
{
/** Standard Constructor
@param ctx context
@param C_BP_BankAccount_ID id
@param trxName transaction
*/
public X_C_BP_BankAccount (Ctx ctx, int C_BP_BankAccount_ID, String trxName)
{
super (ctx, C_BP_BankAccount_ID, trxName);
/** if (C_BP_BankAccount_ID == 0)
{
setC_BP_BankAccount_ID (0);
setC_BPartner_ID (0);
setIsACH (false);
}
*/
}
/** Load Constructor
@param ctx context
@param rs result set
@param trxName transaction
*/
public X_C_BP_BankAccount (Ctx ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** Serial Version No */
static final long serialVersionUID = 27495261242789L;
/** Last Updated Timestamp 2008-06-10 15:12:06.0 */
public static final long updatedMS = 1213135926000L;
/** AD_Table_ID=298 */
public static final int Table_ID=298;
/** TableName=C_BP_BankAccount */
public static final String Table_Name="C_BP_BankAccount";
protected static KeyNamePair Model = new KeyNamePair(Table_ID,"C_BP_BankAccount");
protected BigDecimal accessLevel = new BigDecimal(3);
/** AccessLevel
@return 3 - Client - Org
*/
protected int get_AccessLevel()
{
return accessLevel.intValue();
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected POInfo initPO (Ctx ctx)
{
POInfo poi = POInfo.getPOInfo (ctx, Table_ID);
return poi;
}
/** Info
@return info
*/
public String toString()
{
StringBuffer sb = new StringBuffer ("X_C_BP_BankAccount[").append(get_ID()).append("]");
return sb.toString();
}
/** Set User/Contact.
@param AD_User_ID User within the system - Internal or Business Partner Contact */
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID <= 0) set_Value ("AD_User_ID", null);
else
set_Value ("AD_User_ID", new Integer(AD_User_ID));
}
/** Get User/Contact.
@return User within the system - Internal or Business Partner Contact */
public int getAD_User_ID()
{
Integer ii = (Integer)get_Value("AD_User_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Account City.
@param A_City City or the Credit Card or Account Holder */
public void setA_City (String A_City)
{
int length = p_info.getFieldLength("A_City");
if (A_City != null && A_City.length() > length)
{
log.warning("Length > " + length + " - truncated");
A_City = A_City.substring(0,length);
}
set_Value ("A_City", A_City);
}
/** Get Account City.
@return City or the Credit Card or Account Holder */
public String getA_City()
{
return (String)get_Value("A_City");
}
/** Set Account Country.
@param A_Country Country */
public void setA_Country (String A_Country)
{
int length = p_info.getFieldLength("A_Country");
if (A_Country != null && A_Country.length() > length)
{
log.warning("Length > " + length + " - truncated");
A_Country = A_Country.substring(0,length);
}
set_Value ("A_Country", A_Country);
}
/** Get Account Country.
@return Country */
public String getA_Country()
{
return (String)get_Value("A_Country");
}
/** Set Account EMail.
@param A_EMail Email Address */
public void setA_EMail (String A_EMail)
{
int length = p_info.getFieldLength("A_EMail");
if (A_EMail != null && A_EMail.length() > length)
{
log.warning("Length > " + length + " - truncated");
A_EMail = A_EMail.substring(0,length);
}
set_Value ("A_EMail", A_EMail);
}
/** Get Account EMail.
@return Email Address */
public String getA_EMail()
{
return (String)get_Value("A_EMail");
}
/** Set Driver License.
@param A_Ident_DL Payment Identification - Driver License */
public void setA_Ident_DL (String A_Ident_DL)
{
int length = p_info.getFieldLength("A_Ident_DL");
if (A_Ident_DL != null && A_Ident_DL.length() > length)
{
log.warning("Length > " + length + " - truncated");
A_Ident_DL = A_Ident_DL.substring(0,length);
}
set_Value ("A_Ident_DL", A_Ident_DL);
}
/** Get Driver License.
@return Payment Identification - Driver License */
public String getA_Ident_DL()
{
return (String)get_Value("A_Ident_DL");
}
/** Set Social Security No.
@param A_Ident_SSN Payment Identification - Social Security No */
public void setA_Ident_SSN (String A_Ident_SSN)
{
int length = p_info.getFieldLength("A_Ident_SSN");
if (A_Ident_SSN != null && A_Ident_SSN.length() > length)
{
log.warning("Length > " + length + " - truncated");
A_Ident_SSN = A_Ident_SSN.substring(0,length);
}
set_Value ("A_Ident_SSN", A_Ident_SSN);
}
/** Get Social Security No.
@return Payment Identification - Social Security No */
public String getA_Ident_SSN()
{
return (String)get_Value("A_Ident_SSN");
}
/** Set Account Name.
@param A_Name Name on Credit Card or Account holder */
public void setA_Name (String A_Name)
{
int length = p_info.getFieldLength("A_Name");
if (A_Name != null && A_Name.length() > length)
{
log.warning("Length > " + length + " - truncated");
A_Name = A_Name.substring(0,length);
}
set_Value ("A_Name", A_Name);
}
/** Get Account Name.
@return Name on Credit Card or Account holder */
public String getA_Name()
{
return (String)get_Value("A_Name");
}
/** Set Account State.
@param A_State State of the Credit Card or Account holder */
public void setA_State (String A_State)
{
int length = p_info.getFieldLength("A_State");
if (A_State != null && A_State.length() > length)
{
log.warning("Length > " + length + " - truncated");
A_State = A_State.substring(0,length);
}
set_Value ("A_State", A_State);
}
/** Get Account State.
@return State of the Credit Card or Account holder */
public String getA_State()
{
return (String)get_Value("A_State");
}
/** Set Account Street.
@param A_Street Street address of the Credit Card or Account holder */
public void setA_Street (String A_Street)
{
int length = p_info.getFieldLength("A_Street");
if (A_Street != null && A_Street.length() > length)
{
log.warning("Length > " + length + " - truncated");
A_Street = A_Street.substring(0,length);
}
set_Value ("A_Street", A_Street);
}
/** Get Account Street.
@return Street address of the Credit Card or Account holder */
public String getA_Street()
{
return (String)get_Value("A_Street");
}
/** Set Account Zip/Postal.
@param A_Zip Zip Code of the Credit Card or Account Holder */
public void setA_Zip (String A_Zip)
{
int length = p_info.getFieldLength("A_Zip");
if (A_Zip != null && A_Zip.length() > length)
{
log.warning("Length > " + length + " - truncated");
A_Zip = A_Zip.substring(0,length);
}
set_Value ("A_Zip", A_Zip);
}
/** Get Account Zip/Postal.
@return Zip Code of the Credit Card or Account Holder */
public String getA_Zip()
{
return (String)get_Value("A_Zip");
}
/** Set Account No.
@param AccountNo Account Number */
public void setAccountNo (String AccountNo)
{
int length = p_info.getFieldLength("AccountNo");
if (AccountNo != null && AccountNo.length() > length)
{
log.warning("Length > " + length + " - truncated");
AccountNo = AccountNo.substring(0,length);
}
set_Value ("AccountNo", AccountNo);
}
/** Get Account No.
@return Account Number */
public String getAccountNo()
{
return (String)get_Value("AccountNo");
}
/** Set BBAN.
@param BBAN Basic Bank Account Number */
public void setBBAN (String BBAN)
{
int length = p_info.getFieldLength("BBAN");
if (BBAN != null && BBAN.length() > length)
{
log.warning("Length > " + length + " - truncated");
BBAN = BBAN.substring(0,length);
}
set_Value ("BBAN", BBAN);
}
/** Get BBAN.
@return Basic Bank Account Number */
public String getBBAN()
{
return (String)get_Value("BBAN");
}
/** BPBankAcctUse AD_Reference_ID=393 */
public static final int BPBANKACCTUSE_AD_Reference_ID=393;
/** Both = B */
public static final String BPBANKACCTUSE_Both = "B";
/** Direct Debit = D */
public static final String BPBANKACCTUSE_DirectDebit = "D";
/** None = N */
public static final String BPBANKACCTUSE_None = "N";
/** Direct Deposit = T */
public static final String BPBANKACCTUSE_DirectDeposit = "T";
/** Is test a valid value.
@param test testvalue
@return true if valid **/
public boolean isBPBankAcctUseValid (String test)
{
return test == null || test.equals("B") || test.equals("D") || test.equals("N") || test.equals("T");
}
/** Set Account Usage.
@param BPBankAcctUse Business Partner Bank Account usage */
public void setBPBankAcctUse (String BPBankAcctUse)
{
if (!isBPBankAcctUseValid(BPBankAcctUse))
throw new IllegalArgumentException ("BPBankAcctUse Invalid value - " + BPBankAcctUse + " - Reference_ID=393 - B - D - N - T");
int length = p_info.getFieldLength("BPBankAcctUse");
if (BPBankAcctUse != null && BPBankAcctUse.length() > length)
{
log.warning("Length > " + length + " - truncated");
BPBankAcctUse = BPBankAcctUse.substring(0,length);
}
set_Value ("BPBankAcctUse", BPBankAcctUse);
}
/** Get Account Usage.
@return Business Partner Bank Account usage */
public String getBPBankAcctUse()
{
return (String)get_Value("BPBankAcctUse");
}
/** BankAccountType AD_Reference_ID=216 */
public static final int BANKACCOUNTTYPE_AD_Reference_ID=216;
/** Checking = C */
public static final String BANKACCOUNTTYPE_Checking = "C";
/** Savings = S */
public static final String BANKACCOUNTTYPE_Savings = "S";
/** Is test a valid value.
@param test testvalue
@return true if valid **/
public boolean isBankAccountTypeValid (String test)
{
return test == null || test.equals("C") || test.equals("S");
}
/** Set Bank Account Type.
@param BankAccountType Bank Account Type */
public void setBankAccountType (String BankAccountType)
{
if (!isBankAccountTypeValid(BankAccountType))
throw new IllegalArgumentException ("BankAccountType Invalid value - " + BankAccountType + " - Reference_ID=216 - C - S");
int length = p_info.getFieldLength("BankAccountType");
if (BankAccountType != null && BankAccountType.length() > length)
{
log.warning("Length > " + length + " - truncated");
BankAccountType = BankAccountType.substring(0,length);
}
set_Value ("BankAccountType", BankAccountType);
}
/** Get Bank Account Type.
@return Bank Account Type */
public String getBankAccountType()
{
return (String)get_Value("BankAccountType");
}
/** Set Partner Bank Account.
@param C_BP_BankAccount_ID Bank Account of the Business Partner */
public void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID)
{
if (C_BP_BankAccount_ID < 1) throw new IllegalArgumentException ("C_BP_BankAccount_ID is mandatory.");
set_ValueNoCheck ("C_BP_BankAccount_ID", new Integer(C_BP_BankAccount_ID));
}
/** Get Partner Bank Account.
@return Bank Account of the Business Partner */
public int getC_BP_BankAccount_ID()
{
Integer ii = (Integer)get_Value("C_BP_BankAccount_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Business Partner.
@param C_BPartner_ID Identifies a Business Partner */
public void setC_BPartner_ID (int C_BPartner_ID)
{
if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory.");
set_ValueNoCheck ("C_BPartner_ID", new Integer(C_BPartner_ID));
}
/** Get Business Partner.
@return Identifies a Business Partner */
public int getC_BPartner_ID()
{
Integer ii = (Integer)get_Value("C_BPartner_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Bank.
@param C_Bank_ID Bank */
public void setC_Bank_ID (int C_Bank_ID)
{
if (C_Bank_ID <= 0) set_Value ("C_Bank_ID", null);
else
set_Value ("C_Bank_ID", new Integer(C_Bank_ID));
}
/** Get Bank.
@return Bank */
public int getC_Bank_ID()
{
Integer ii = (Integer)get_Value("C_Bank_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Get Record ID/ColumnName
@return ID/ColumnName pair */
public KeyNamePair getKeyNamePair()
{
return new KeyNamePair(get_ID(), String.valueOf(getC_Bank_ID()));
}
/** Set Exp. Month.
@param CreditCardExpMM Expiry Month */
public void setCreditCardExpMM (int CreditCardExpMM)
{
set_Value ("CreditCardExpMM", new Integer(CreditCardExpMM));
}
/** Get Exp. Month.
@return Expiry Month */
public int getCreditCardExpMM()
{
Integer ii = (Integer)get_Value("CreditCardExpMM");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Exp. Year.
@param CreditCardExpYY Expiry Year */
public void setCreditCardExpYY (int CreditCardExpYY)
{
set_Value ("CreditCardExpYY", new Integer(CreditCardExpYY));
}
/** Get Exp. Year.
@return Expiry Year */
public int getCreditCardExpYY()
{
Integer ii = (Integer)get_Value("CreditCardExpYY");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Number.
@param CreditCardNumber Credit Card Number */
public void setCreditCardNumber (String CreditCardNumber)
{
int length = p_info.getFieldLength("CreditCardNumber");
if (CreditCardNumber != null && CreditCardNumber.length() > length)
{
log.warning("Length > " + length + " - truncated");
CreditCardNumber = CreditCardNumber.substring(0,length);
}
set_Value ("CreditCardNumber", CreditCardNumber);
}
/** Get Number.
@return Credit Card Number */
public String getCreditCardNumber()
{
return (String)get_Value("CreditCardNumber");
}
/** CreditCardType AD_Reference_ID=149 */
public static final int CREDITCARDTYPE_AD_Reference_ID=149;
/** Amex = A */
public static final String CREDITCARDTYPE_Amex = "A";
/** ATM = C */
public static final String CREDITCARDTYPE_ATM = "C";
/** Diners = D */
public static final String CREDITCARDTYPE_Diners = "D";
/** MasterCard = M */
public static final String CREDITCARDTYPE_MasterCard = "M";
/** Discover = N */
public static final String CREDITCARDTYPE_Discover = "N";
/** Purchase Card = P */
public static final String CREDITCARDTYPE_PurchaseCard = "P";
/** Visa = V */
public static final String CREDITCARDTYPE_Visa = "V";
/** Is test a valid value.
@param test testvalue
@return true if valid **/
public boolean isCreditCardTypeValid (String test)
{
return test == null || test.equals("A") || test.equals("C") || test.equals("D") || test.equals("M") || test.equals("N") || test.equals("P") || test.equals("V");
}
/** Set Credit Card.
@param CreditCardType Credit Card (Visa, MC, Amex) */
public void setCreditCardType (String CreditCardType)
{
if (!isCreditCardTypeValid(CreditCardType))
throw new IllegalArgumentException ("CreditCardType Invalid value - " + CreditCardType + " - Reference_ID=149 - A - C - D - M - N - P - V");
int length = p_info.getFieldLength("CreditCardType");
if (CreditCardType != null && CreditCardType.length() > length)
{
log.warning("Length > " + length + " - truncated");
CreditCardType = CreditCardType.substring(0,length);
}
set_Value ("CreditCardType", CreditCardType);
}
/** Get Credit Card.
@return Credit Card (Visa, MC, Amex) */
public String getCreditCardType()
{
return (String)get_Value("CreditCardType");
}
/** Set IBAN.
@param IBAN International Bank Account Number */
public void setIBAN (String IBAN)
{
int length = p_info.getFieldLength("IBAN");
if (IBAN != null && IBAN.length() > length)
{
log.warning("Length > " + length + " - truncated");
IBAN = IBAN.substring(0,length);
}
set_Value ("IBAN", IBAN);
}
/** Get IBAN.
@return International Bank Account Number */
public String getIBAN()
{
return (String)get_Value("IBAN");
}
/** Set ACH.
@param IsACH Automatic Clearing House */
public void setIsACH (boolean IsACH)
{
set_Value ("IsACH", new Boolean(IsACH));
}
/** Get ACH.
@return Automatic Clearing House */
public boolean isACH()
{
Object oo = get_Value("IsACH");
if (oo != null)
{
if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** R_AvsAddr AD_Reference_ID=213 */
public static final int R_AVSADDR_AD_Reference_ID=213;
/** No Match = N */
public static final String R_AVSADDR_NoMatch = "N";
/** Unavailable = X */
public static final String R_AVSADDR_Unavailable = "X";
/** Match = Y */
public static final String R_AVSADDR_Match = "Y";
/** Is test a valid value.
@param test testvalue
@return true if valid **/
public boolean isR_AvsAddrValid (String test)
{
return test == null || test.equals("N") || test.equals("X") || test.equals("Y");
}
/** Set Address verified.
@param R_AvsAddr This address has been verified */
public void setR_AvsAddr (String R_AvsAddr)
{
if (!isR_AvsAddrValid(R_AvsAddr))
throw new IllegalArgumentException ("R_AvsAddr Invalid value - " + R_AvsAddr + " - Reference_ID=213 - N - X - Y");
int length = p_info.getFieldLength("R_AvsAddr");
if (R_AvsAddr != null && R_AvsAddr.length() > length)
{
log.warning("Length > " + length + " - truncated");
R_AvsAddr = R_AvsAddr.substring(0,length);
}
set_ValueNoCheck ("R_AvsAddr", R_AvsAddr);
}
/** Get Address verified.
@return This address has been verified */
public String getR_AvsAddr()
{
return (String)get_Value("R_AvsAddr");
}
/** R_AvsZip AD_Reference_ID=213 */
public static final int R_AVSZIP_AD_Reference_ID=213;
/** No Match = N */
public static final String R_AVSZIP_NoMatch = "N";
/** Unavailable = X */
public static final String R_AVSZIP_Unavailable = "X";
/** Match = Y */
public static final String R_AVSZIP_Match = "Y";
/** Is test a valid value.
@param test testvalue
@return true if valid **/
public boolean isR_AvsZipValid (String test)
{
return test == null || test.equals("N") || test.equals("X") || test.equals("Y");
}
/** Set Zip verified.
@param R_AvsZip The Zip Code has been verified */
public void setR_AvsZip (String R_AvsZip)
{
if (!isR_AvsZipValid(R_AvsZip))
throw new IllegalArgumentException ("R_AvsZip Invalid value - " + R_AvsZip + " - Reference_ID=213 - N - X - Y");
int length = p_info.getFieldLength("R_AvsZip");
if (R_AvsZip != null && R_AvsZip.length() > length)
{
log.warning("Length > " + length + " - truncated");
R_AvsZip = R_AvsZip.substring(0,length);
}
set_ValueNoCheck ("R_AvsZip", R_AvsZip);
}
/** Get Zip verified.
@return The Zip Code has been verified */
public String getR_AvsZip()
{
return (String)get_Value("R_AvsZip");
}
/** Set Routing No.
@param RoutingNo Bank Routing Number */
public void setRoutingNo (String RoutingNo)
{
int length = p_info.getFieldLength("RoutingNo");
if (RoutingNo != null && RoutingNo.length() > length)
{
log.warning("Length > " + length + " - truncated");
RoutingNo = RoutingNo.substring(0,length);
}
set_Value ("RoutingNo", RoutingNo);
}
/** Get Routing No.
@return Bank Routing Number */
public String getRoutingNo()
{
return (String)get_Value("RoutingNo");
}
}
The table below shows all metrics for X_C_BP_BankAccount.java.




