public class BankAccount extends DefaultDatabaseEntity implements DatabaseEntity
BankAccount
class represents information related to the bank account.
It is used by the supplier Party
class to represent the payee bank
account information of the of the Invoice
class.Modifier and Type | Class and Description |
---|---|
static class |
BankAccount.COLUMNS
Defines the database column names for the BankAccount table.
|
Constructor and Description |
---|
BankAccount() |
Modifier and Type | Method and Description |
---|---|
static List<BankAccount> |
findByIban(String iban) |
long |
getBankAccountId() |
String |
getBic() |
String |
getClearing() |
org.joda.money.CurrencyUnit |
getCurrencyCode() |
String |
getIban() |
String |
getName() |
String |
getOtherCode() |
PostalAddress |
getPostalAddress() |
long |
getPostalAddressId() |
long |
persistToDatabase() |
protected String |
prepareInsertStatement() |
void |
setBankAccountId(long bankAccountId) |
void |
setBic(String bic) |
void |
setClearing(String clearing) |
void |
setCurrencyCode(org.joda.money.CurrencyUnit currencyCode) |
void |
setIban(String iban) |
void |
setName(String name) |
void |
setOtherCode(String otherCode) |
void |
setPostalAddress(PostalAddress postalAddress) |
void |
setPostalAddressId(long postalAddressId) |
createInsertSql, getConnection, insert
public long persistToDatabase() throws SQLException
persistToDatabase
in interface DatabaseEntity
SQLException
public static List<BankAccount> findByIban(String iban) throws SQLException
SQLException
protected String prepareInsertStatement()
prepareInsertStatement
in class DefaultDatabaseEntity
public long getBankAccountId()
public long getPostalAddressId()
public String getName()
public String getIban()
public String getBic()
public String getClearing()
public String getOtherCode()
public org.joda.money.CurrencyUnit getCurrencyCode()
public PostalAddress getPostalAddress()
public void setBankAccountId(long bankAccountId)
public void setPostalAddressId(long postalAddressId)
public void setName(String name)
public void setIban(String iban)
public void setBic(String bic)
public void setClearing(String clearing)
public void setOtherCode(String otherCode)
public void setCurrencyCode(org.joda.money.CurrencyUnit currencyCode)
public void setPostalAddress(PostalAddress postalAddress)
Copyright © 2011–2019 Plain Source. All rights reserved.