Package org.openbravo.model.common.bank
Class BankAccount
- java.lang.Object
-
- org.openbravo.base.structure.BaseOBObject
-
- org.openbravo.model.common.bank.BankAccount
-
- All Implemented Interfaces:
Serializable
,BaseOBObjectDef
,OBNotSingleton
,OBProvidable
,ActiveEnabled
,ClientEnabled
,DynamicEnabled
,Identifiable
,OrganizationEnabled
,Traceable
public class BankAccount extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled
Entity class for entity BankAccount (stored in table C_BankAccount).
Help: Used to define one or more accounts for a Bank. Each account has a unique Account No and Currency.
NOTE: This class should not be instantiated directly. To instantiate this class theOBProvider
should be used.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENTITY_NAME
static String
PROPERTY_ACCOUNTNO
Property accountNo stored in column AccountNo in table C_BankAccount
Help: The Account Number indicates the Number assigned to this accountstatic String
PROPERTY_ACCOUNTTYPE
Property accountType stored in column BankAccountType in table C_BankAccount
Help: The Bank Account Type field indicates the type of account (savings, checking etc) this account is defined as.static String
PROPERTY_ACTIVE
Property active stored in column IsActive in table C_BankAccountstatic String
PROPERTY_BANK
Property bank stored in column C_Bank_ID in table C_BankAccount
Help: The Bank is a unique identifier of a Bank for this Organization or for a Business Partner with whom this Organization transacts.static String
PROPERTY_CLIENT
Property client stored in column AD_Client_ID in table C_BankAccountstatic String
PROPERTY_CONTROLDIGIT
Property controlDigit stored in column Digitcontrol in table C_BankAccount
Help: Tenth number of the bank account.static String
PROPERTY_CREATEDBY
Property createdBy stored in column CreatedBy in table C_BankAccountstatic String
PROPERTY_CREATIONDATE
Property creationDate stored in column Created in table C_BankAccountstatic String
PROPERTY_CREDITLIMIT
Property creditLimit stored in column CreditLimit in table C_BankAccount
Help: The Credit Limit field indicates the credit limit for this account.static String
PROPERTY_CURRENCY
Property currency stored in column C_Currency_ID in table C_BankAccount
Help: Indicates the currency to be used when processing this document.static String
PROPERTY_CURRENTBALANCE
Property currentBalance stored in column CurrentBalance in table C_BankAccount
Help: The Current Balance field indicates the current balance in this account.static String
PROPERTY_DEFAULT
Property default stored in column IsDefault in table C_BankAccount
Help: The Default Checkbox indicates if this record will be used as a default value.static String
PROPERTY_DISPLAYEDACCOUNT
Property displayedAccount stored in column DisplayedAccount in table C_BankAccountstatic String
PROPERTY_GENERICACCOUNT
Property genericAccount stored in column GenericAccount in table C_BankAccount
Help: Bank account number in a generic format.static String
PROPERTY_IBAN
Property iBAN stored in column Iban in table C_BankAccount
Help: Code that identifies uniquely one bank account, no matter the country it belongs to. It consists of a ISO 3166-1 alpha-2 country code, followed by two check digits, and up to thirty alphanumeric characters for the domestic bank account number, called the BBAN (Basic Bank Account Number). It is up to each country's national banking community to decide on the length of the BBAN for accounts in that country, but its length must be fixed for any given country.static String
PROPERTY_ID
Property id stored in column C_BankAccount_ID in table C_BankAccount
Help: The Bank Account identifies an account at this Bank.static String
PROPERTY_ORGANIZATION
Property organization stored in column AD_Org_ID in table C_BankAccountstatic String
PROPERTY_PARTIALACCOUNTNO
Property partialAccountNo stored in column Codeaccount in table C_BankAccount
Help: Last ten numbers of the bank account.static String
PROPERTY_SHOWGENERIC
Property showGeneric stored in column ShowGeneric in table C_BankAccount
Help: Use the Generic Account Number for generating the Displayed Account Numberstatic String
PROPERTY_SHOWIBAN
Property showIBAN stored in column ShowIBAN in table C_BankAccount
Help: Use IBAN for generating the Displayed Account Numberstatic String
PROPERTY_SHOWSPANISH
Property showSpanish stored in column ShowSpanish in table C_BankAccount
Help: Use Spanish Formatstatic String
PROPERTY_UPDATED
Property updated stored in column Updated in table C_BankAccountstatic String
PROPERTY_UPDATEDBY
Property updatedBy stored in column UpdatedBy in table C_BankAccountstatic String
TABLE_NAME
-
Fields inherited from class org.openbravo.base.structure.BaseOBObject
ID
-
-
Constructor Summary
Constructors Constructor Description BankAccount()
-
Method Summary
-
Methods inherited from class org.openbravo.base.structure.BaseOBObject
checkDerivedReadable, get, get, get, getEntity, getIdentifier, getValue, isAllowRead, isNewOBObject, isOrgClientAccessCheckEnabled, isWriteAccessCheckEnabled, set, setAccessChecks, setAllowRead, setDefaultValue, setId, setNewOBObject, setValue, toString, validate
-
-
-
-
Field Detail
-
TABLE_NAME
public static final String TABLE_NAME
- See Also:
- Constant Field Values
-
ENTITY_NAME
public static final String ENTITY_NAME
- See Also:
- Constant Field Values
-
PROPERTY_ID
public static final String PROPERTY_ID
Property id stored in column C_BankAccount_ID in table C_BankAccount
Help: The Bank Account identifies an account at this Bank.- See Also:
- Constant Field Values
-
PROPERTY_CLIENT
public static final String PROPERTY_CLIENT
Property client stored in column AD_Client_ID in table C_BankAccount- See Also:
ClientEnabled
, Constant Field Values
-
PROPERTY_ORGANIZATION
public static final String PROPERTY_ORGANIZATION
Property organization stored in column AD_Org_ID in table C_BankAccount- See Also:
OrganizationEnabled
, Constant Field Values
-
PROPERTY_ACTIVE
public static final String PROPERTY_ACTIVE
Property active stored in column IsActive in table C_BankAccount- See Also:
ActiveEnabled
, Constant Field Values
-
PROPERTY_CREATIONDATE
public static final String PROPERTY_CREATIONDATE
Property creationDate stored in column Created in table C_BankAccount- See Also:
Traceable
, Constant Field Values
-
PROPERTY_CREATEDBY
public static final String PROPERTY_CREATEDBY
Property createdBy stored in column CreatedBy in table C_BankAccount- See Also:
Traceable
, Constant Field Values
-
PROPERTY_UPDATED
public static final String PROPERTY_UPDATED
Property updated stored in column Updated in table C_BankAccount- See Also:
Traceable
, Constant Field Values
-
PROPERTY_UPDATEDBY
public static final String PROPERTY_UPDATEDBY
Property updatedBy stored in column UpdatedBy in table C_BankAccount- See Also:
Traceable
, Constant Field Values
-
PROPERTY_BANK
public static final String PROPERTY_BANK
Property bank stored in column C_Bank_ID in table C_BankAccount
Help: The Bank is a unique identifier of a Bank for this Organization or for a Business Partner with whom this Organization transacts.- See Also:
- Constant Field Values
-
PROPERTY_CURRENCY
public static final String PROPERTY_CURRENCY
Property currency stored in column C_Currency_ID in table C_BankAccount
Help: Indicates the currency to be used when processing this document.- See Also:
- Constant Field Values
-
PROPERTY_ACCOUNTTYPE
public static final String PROPERTY_ACCOUNTTYPE
Property accountType stored in column BankAccountType in table C_BankAccount
Help: The Bank Account Type field indicates the type of account (savings, checking etc) this account is defined as.- See Also:
- Constant Field Values
-
PROPERTY_ACCOUNTNO
public static final String PROPERTY_ACCOUNTNO
Property accountNo stored in column AccountNo in table C_BankAccount
Help: The Account Number indicates the Number assigned to this account- See Also:
- Constant Field Values
-
PROPERTY_CURRENTBALANCE
public static final String PROPERTY_CURRENTBALANCE
Property currentBalance stored in column CurrentBalance in table C_BankAccount
Help: The Current Balance field indicates the current balance in this account.- See Also:
- Constant Field Values
-
PROPERTY_CREDITLIMIT
public static final String PROPERTY_CREDITLIMIT
Property creditLimit stored in column CreditLimit in table C_BankAccount
Help: The Credit Limit field indicates the credit limit for this account.- See Also:
- Constant Field Values
-
PROPERTY_DEFAULT
public static final String PROPERTY_DEFAULT
Property default stored in column IsDefault in table C_BankAccount
Help: The Default Checkbox indicates if this record will be used as a default value.- See Also:
- Constant Field Values
-
PROPERTY_PARTIALACCOUNTNO
public static final String PROPERTY_PARTIALACCOUNTNO
Property partialAccountNo stored in column Codeaccount in table C_BankAccount
Help: Last ten numbers of the bank account.- See Also:
- Constant Field Values
-
PROPERTY_CONTROLDIGIT
public static final String PROPERTY_CONTROLDIGIT
Property controlDigit stored in column Digitcontrol in table C_BankAccount
Help: Tenth number of the bank account.- See Also:
- Constant Field Values
-
PROPERTY_IBAN
public static final String PROPERTY_IBAN
Property iBAN stored in column Iban in table C_BankAccount
Help: Code that identifies uniquely one bank account, no matter the country it belongs to. It consists of a ISO 3166-1 alpha-2 country code, followed by two check digits, and up to thirty alphanumeric characters for the domestic bank account number, called the BBAN (Basic Bank Account Number). It is up to each country's national banking community to decide on the length of the BBAN for accounts in that country, but its length must be fixed for any given country.- See Also:
- Constant Field Values
-
PROPERTY_GENERICACCOUNT
public static final String PROPERTY_GENERICACCOUNT
Property genericAccount stored in column GenericAccount in table C_BankAccount
Help: Bank account number in a generic format.- See Also:
- Constant Field Values
-
PROPERTY_SHOWGENERIC
public static final String PROPERTY_SHOWGENERIC
Property showGeneric stored in column ShowGeneric in table C_BankAccount
Help: Use the Generic Account Number for generating the Displayed Account Number- See Also:
- Constant Field Values
-
PROPERTY_SHOWSPANISH
public static final String PROPERTY_SHOWSPANISH
Property showSpanish stored in column ShowSpanish in table C_BankAccount
Help: Use Spanish Format- See Also:
- Constant Field Values
-
PROPERTY_SHOWIBAN
public static final String PROPERTY_SHOWIBAN
Property showIBAN stored in column ShowIBAN in table C_BankAccount
Help: Use IBAN for generating the Displayed Account Number- See Also:
- Constant Field Values
-
PROPERTY_DISPLAYEDACCOUNT
public static final String PROPERTY_DISPLAYEDACCOUNT
Property displayedAccount stored in column DisplayedAccount in table C_BankAccount- See Also:
- Constant Field Values
-
-
Method Detail
-
getEntityName
public String getEntityName()
- Specified by:
getEntityName
in interfaceIdentifiable
- Specified by:
getEntityName
in classBaseOBObject
-
getId
public String getId()
- Specified by:
getId
in interfaceBaseOBObjectDef
- Specified by:
getId
in interfaceIdentifiable
- Overrides:
getId
in classBaseOBObject
- See Also:
PROPERTY_ID
-
setId
public void setId(String id)
- See Also:
PROPERTY_ID
-
getClient
public Client getClient()
Description copied from interface:ClientEnabled
Client field- Specified by:
getClient
in interfaceClientEnabled
- Returns:
- client
- See Also:
PROPERTY_CLIENT
-
setClient
public void setClient(Client client)
Description copied from interface:ClientEnabled
Client field- Specified by:
setClient
in interfaceClientEnabled
- See Also:
PROPERTY_CLIENT
-
getOrganization
public Organization getOrganization()
Description copied from interface:OrganizationEnabled
Gets organization field- Specified by:
getOrganization
in interfaceOrganizationEnabled
- Returns:
- organization
- See Also:
PROPERTY_ORGANIZATION
-
setOrganization
public void setOrganization(Organization organization)
Description copied from interface:OrganizationEnabled
Sets organization field- Specified by:
setOrganization
in interfaceOrganizationEnabled
- See Also:
PROPERTY_ORGANIZATION
-
isActive
public Boolean isActive()
Description copied from interface:ActiveEnabled
Gets active field- Specified by:
isActive
in interfaceActiveEnabled
- Returns:
- active
- See Also:
PROPERTY_ACTIVE
-
setActive
public void setActive(Boolean active)
Description copied from interface:ActiveEnabled
Sets active field- Specified by:
setActive
in interfaceActiveEnabled
- See Also:
PROPERTY_ACTIVE
-
getCreationDate
public Date getCreationDate()
Description copied from interface:Traceable
Creation date of audit- Specified by:
getCreationDate
in interfaceTraceable
- Returns:
- Date of creation
- See Also:
PROPERTY_CREATIONDATE
-
setCreationDate
public void setCreationDate(Date creationDate)
Description copied from interface:Traceable
Creation date of audit- Specified by:
setCreationDate
in interfaceTraceable
- See Also:
PROPERTY_CREATIONDATE
-
getCreatedBy
public User getCreatedBy()
Description copied from interface:Traceable
Created by audit user- Specified by:
getCreatedBy
in interfaceTraceable
- Returns:
- User
- See Also:
PROPERTY_CREATEDBY
-
setCreatedBy
public void setCreatedBy(User createdBy)
Description copied from interface:Traceable
Created by audit user- Specified by:
setCreatedBy
in interfaceTraceable
- See Also:
PROPERTY_CREATEDBY
-
getUpdated
public Date getUpdated()
Description copied from interface:Traceable
Update date of audit- Specified by:
getUpdated
in interfaceTraceable
- Returns:
- Date of update
- See Also:
PROPERTY_UPDATED
-
setUpdated
public void setUpdated(Date updated)
Description copied from interface:Traceable
Update date of audit- Specified by:
setUpdated
in interfaceTraceable
- See Also:
PROPERTY_UPDATED
-
getUpdatedBy
public User getUpdatedBy()
Description copied from interface:Traceable
Update by audit user- Specified by:
getUpdatedBy
in interfaceTraceable
- Returns:
- User who updated
- See Also:
PROPERTY_UPDATEDBY
-
setUpdatedBy
public void setUpdatedBy(User updatedBy)
Description copied from interface:Traceable
Update by audit user- Specified by:
setUpdatedBy
in interfaceTraceable
- See Also:
PROPERTY_UPDATEDBY
-
getBank
public Bank getBank()
- See Also:
PROPERTY_BANK
-
setBank
public void setBank(Bank bank)
- See Also:
PROPERTY_BANK
-
getCurrency
public Currency getCurrency()
- See Also:
PROPERTY_CURRENCY
-
setCurrency
public void setCurrency(Currency currency)
- See Also:
PROPERTY_CURRENCY
-
getAccountType
public String getAccountType()
- See Also:
PROPERTY_ACCOUNTTYPE
-
setAccountType
public void setAccountType(String accountType)
- See Also:
PROPERTY_ACCOUNTTYPE
-
getAccountNo
public String getAccountNo()
- See Also:
PROPERTY_ACCOUNTNO
-
setAccountNo
public void setAccountNo(String accountNo)
- See Also:
PROPERTY_ACCOUNTNO
-
getCurrentBalance
public BigDecimal getCurrentBalance()
- See Also:
PROPERTY_CURRENTBALANCE
-
setCurrentBalance
public void setCurrentBalance(BigDecimal currentBalance)
- See Also:
PROPERTY_CURRENTBALANCE
-
getCreditLimit
public BigDecimal getCreditLimit()
- See Also:
PROPERTY_CREDITLIMIT
-
setCreditLimit
public void setCreditLimit(BigDecimal creditLimit)
- See Also:
PROPERTY_CREDITLIMIT
-
isDefault
public Boolean isDefault()
- See Also:
PROPERTY_DEFAULT
-
setDefault
public void setDefault(Boolean deflt)
- See Also:
PROPERTY_DEFAULT
-
getPartialAccountNo
public String getPartialAccountNo()
- See Also:
PROPERTY_PARTIALACCOUNTNO
-
setPartialAccountNo
public void setPartialAccountNo(String partialAccountNo)
- See Also:
PROPERTY_PARTIALACCOUNTNO
-
getControlDigit
public String getControlDigit()
- See Also:
PROPERTY_CONTROLDIGIT
-
setControlDigit
public void setControlDigit(String controlDigit)
- See Also:
PROPERTY_CONTROLDIGIT
-
getIBAN
public String getIBAN()
- See Also:
PROPERTY_IBAN
-
setIBAN
public void setIBAN(String iBAN)
- See Also:
PROPERTY_IBAN
-
getGenericAccount
public String getGenericAccount()
- See Also:
PROPERTY_GENERICACCOUNT
-
setGenericAccount
public void setGenericAccount(String genericAccount)
- See Also:
PROPERTY_GENERICACCOUNT
-
isShowGeneric
public Boolean isShowGeneric()
- See Also:
PROPERTY_SHOWGENERIC
-
setShowGeneric
public void setShowGeneric(Boolean showGeneric)
- See Also:
PROPERTY_SHOWGENERIC
-
isShowSpanish
public Boolean isShowSpanish()
- See Also:
PROPERTY_SHOWSPANISH
-
setShowSpanish
public void setShowSpanish(Boolean showSpanish)
- See Also:
PROPERTY_SHOWSPANISH
-
isShowIBAN
public Boolean isShowIBAN()
- See Also:
PROPERTY_SHOWIBAN
-
setShowIBAN
public void setShowIBAN(Boolean showIBAN)
- See Also:
PROPERTY_SHOWIBAN
-
getDisplayedAccount
public String getDisplayedAccount()
- See Also:
PROPERTY_DISPLAYEDACCOUNT
-
setDisplayedAccount
public void setDisplayedAccount(String displayedAccount)
- See Also:
PROPERTY_DISPLAYEDACCOUNT
-
-