Compiere 3.1

org.compiere.model
Class MBPBankAccount

java.lang.Object
  extended by org.compiere.framework.PO
      extended by org.compiere.model.X_C_BP_BankAccount
          extended by org.compiere.model.MBPBankAccount
All Implemented Interfaces:
Serializable, Cloneable, Comparator<PO>, Evaluatee

public class MBPBankAccount
extends X_C_BP_BankAccount

BP Bank Account Model

Version:
$Id: MBPBankAccount.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.compiere.model.X_C_BP_BankAccount
accessLevel, BANKACCOUNTTYPE_AD_Reference_ID, BANKACCOUNTTYPE_Checking, BANKACCOUNTTYPE_Savings, BPBANKACCTUSE_AD_Reference_ID, BPBANKACCTUSE_Both, BPBANKACCTUSE_DirectDebit, BPBANKACCTUSE_DirectDeposit, BPBANKACCTUSE_None, CREDITCARDTYPE_AD_Reference_ID, CREDITCARDTYPE_Amex, CREDITCARDTYPE_ATM, CREDITCARDTYPE_Diners, CREDITCARDTYPE_Discover, CREDITCARDTYPE_MasterCard, CREDITCARDTYPE_PurchaseCard, CREDITCARDTYPE_Visa, Model, R_AVSADDR_AD_Reference_ID, R_AVSADDR_Match, R_AVSADDR_NoMatch, R_AVSADDR_Unavailable, R_AVSZIP_AD_Reference_ID, R_AVSZIP_Match, R_AVSZIP_NoMatch, R_AVSZIP_Unavailable, Table_ID, Table_Name, updatedMS
 
Fields inherited from class org.compiere.framework.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_changeVO, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
 
Constructor Summary
MBPBankAccount(Ctx ctx, int C_BP_BankAccount_ID, String trxName)
          Constructor
MBPBankAccount(Ctx ctx, int C_BPartner_ID, String AccountNo, String RoutingNo, String IBAN, String trxName)
          Detail New Constructor
MBPBankAccount(Ctx ctx, MBPartner bp, MUser bpc, MLocation location)
          Constructor
MBPBankAccount(Ctx ctx, ResultSet rs, String trxName)
          Constructor
 
Method Summary
protected  boolean beforeSave(boolean newRecord)
          Before Save
static MBPBankAccount get(Ctx ctx, int C_BP_BankAccount_ID)
          Get BP Bank Account
 String getA_City(boolean fromBP)
          Get Account City
 String getA_Name(boolean fromBP)
          Get Account Name
 MBank getBank()
          Get Bank
static MBPBankAccount[] getOfBPartner(Ctx ctx, int C_BPartner_ID)
          Get Bank Account Of BPartner
 String getRoutingNo()
          Get Routing No
 boolean isDirectDebit()
          Is Direct Debit
 boolean isDirectDeposit()
          Is Direct Deposit
 String toString()
          String Representation
 boolean updateInfo(String AccountNo, String RoutingNo, String IBAN)
          Update Bank Info
 
Methods inherited from class org.compiere.model.X_C_BP_BankAccount
get_AccessLevel, getA_City, getA_Country, getA_EMail, getA_Ident_DL, getA_Ident_SSN, getA_Name, getA_State, getA_Street, getA_Zip, getAccountNo, getAD_User_ID, getBankAccountType, getBBAN, getBPBankAcctUse, getC_Bank_ID, getC_BP_BankAccount_ID, getC_BPartner_ID, getCreditCardExpMM, getCreditCardExpYY, getCreditCardNumber, getCreditCardType, getIBAN, getKeyNamePair, getR_AvsAddr, getR_AvsZip, initPO, isACH, isBankAccountTypeValid, isBPBankAcctUseValid, isCreditCardTypeValid, isR_AvsAddrValid, isR_AvsZipValid, setA_City, setA_Country, setA_EMail, setA_Ident_DL, setA_Ident_SSN, setA_Name, setA_State, setA_Street, setA_Zip, setAccountNo, setAD_User_ID, setBankAccountType, setBBAN, setBPBankAcctUse, setC_Bank_ID, setC_BP_BankAccount_ID, setC_BPartner_ID, setCreditCardExpMM, setCreditCardExpYY, setCreditCardNumber, setCreditCardType, setIBAN, setIsACH, setR_AvsAddr, setR_AvsZip, setRoutingNo
 
Methods inherited from class org.compiere.framework.PO
addAttachment, addAttachment, addError, afterDelete, afterSave, beforeDelete, compare, convertToBigDecimal, convertToBoolean, convertToInt, convertToTimestamp, copy, copyValues, copyValues, createAttachment, delete_Accounting, delete, delete, dump, dump, equals, get_ChangeVO, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_EntityType, get_HashMap, get_ID, get_IDOld, get_Info, get_KeyColumns, get_Logger, get_Table_ID, get_Table_ID, get_TableName, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_ValuesAsString, get_WhereClause, get_xmlDocument, get_xmlString, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, getVO, hashCode, insert_Accounting, is_Changed, is_KeyColumn, is_new, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, load, load, load, load, loadComplete, loadDefaults, loadSpecial, lock, save, save, saveNew_getID, saveNewInsertSQL, saveNewSpecial, saveUpdate, set_ChangeVO, set_ColumnUpdateable, set_CustomColumn, set_TrxName, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueString, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setContext, setCtx, setDocWorkflowMgr, setIsActive, setStandardDefaults, setUpdateable, setUpdatedBy, toStringX, unlock, update
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MBPBankAccount

public MBPBankAccount(Ctx ctx,
                      int C_BP_BankAccount_ID,
                      String trxName)
Constructor

Parameters:
ctx - context
C_BP_BankAccount_ID - BP bank account
trxName - transaction

MBPBankAccount

public MBPBankAccount(Ctx ctx,
                      ResultSet rs,
                      String trxName)
Constructor

Parameters:
ctx - context
rs - result set
trxName - transaction

MBPBankAccount

public MBPBankAccount(Ctx ctx,
                      MBPartner bp,
                      MUser bpc,
                      MLocation location)
Constructor

Parameters:
ctx - context
bp - BP
bpc - BP Contact
location - Location

MBPBankAccount

public MBPBankAccount(Ctx ctx,
                      int C_BPartner_ID,
                      String AccountNo,
                      String RoutingNo,
                      String IBAN,
                      String trxName)
Detail New Constructor

Parameters:
ctx - context
C_BPartner_ID - parent
AccountNo - account
RoutingNo - routing
IBAN - iban
trxName - transaction
Method Detail

get

public static MBPBankAccount get(Ctx ctx,
                                 int C_BP_BankAccount_ID)
Get BP Bank Account

Parameters:
ctx - context
C_BP_BankAccount_ID - bpartner
Returns:
account or null

getOfBPartner

public static MBPBankAccount[] getOfBPartner(Ctx ctx,
                                             int C_BPartner_ID)
Get Bank Account Of BPartner

Parameters:
ctx - context
C_BPartner_ID - bpartner
Returns:

isDirectDeposit

public boolean isDirectDeposit()
Is Direct Deposit

Returns:
true if dd

isDirectDebit

public boolean isDirectDebit()
Is Direct Debit

Returns:
true if dd

getBank

public MBank getBank()
Get Bank

Returns:
bank

getRoutingNo

public String getRoutingNo()
Get Routing No

Overrides:
getRoutingNo in class X_C_BP_BankAccount
Returns:
routing No

updateInfo

public boolean updateInfo(String AccountNo,
                          String RoutingNo,
                          String IBAN)
Update Bank Info

Parameters:
AccountNo - account
RoutingNo - routing
IBAN - iban
Returns:
true if changed

getA_Name

public String getA_Name(boolean fromBP)
Get Account Name

Parameters:
fromBP - if true and not existing, get from BP
Returns:
account name

getA_City

public String getA_City(boolean fromBP)
Get Account City

Parameters:
fromBP - if true and not existing, get from BP
Returns:
account city

beforeSave

protected boolean beforeSave(boolean newRecord)
Before Save

Overrides:
beforeSave in class PO
Parameters:
newRecord - new
Returns:
true

toString

public String toString()
String Representation

Overrides:
toString in class X_C_BP_BankAccount
Returns:
info

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.