public abstract class AccountBOBase
extends com.anaptecs.jeaf.spi.persistence.PersistentObject
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHORIZEDPERSONS_ROLE
Constant for the name of role "authorizedPersons".
|
static String |
BANK_ROLE
Constant for the name of role "bank".
|
static String |
BOOKINGS_ROLE
Constant for the name of role "bookings".
|
static com.anaptecs.jeaf.spi.persistence.ClassID |
CLASS_ID
The class id is a unique id within the domain model of an application for every business object class.
|
static String |
CUSTOMER_ROLE
Constant for the name of role "customer".
|
static String |
INTERESTRATE_ATTRIBUTE
Constant for the name of attribute "interestRate".
|
static String |
INTERESTRATE_ROW
Constant for the name of the row that is used to store the values of attribute "interestRate".
|
static String |
NUMBER_ATTRIBUTE
Constant for the name of attribute "number".
|
static String |
NUMBER_ROW
Constant for the name of the row that is used to store the values of attribute "number".
|
static String |
TABLE_NAME
Name of the database table that is used to store the data of objects of this class.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AccountBOBase()
Initialize object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToAuthorizedPersons(Collection<MyPersonBO> pAuthorizedPersons)
Method adds all passed objects to the association "authorizedPersons".
|
void |
addToAuthorizedPersons(MyPersonBO pAuthorizedPersons)
Method adds the passed MyPersonBO object to the association "authorizedPersons".
|
void |
addToBookings(BookingBO pBookings)
Method adds the passed BookingBO object to the association "bookings".
|
void |
addToBookings(Collection<BookingBO> pBookings)
Method adds all passed objects to the association "bookings".
|
abstract BigDecimal |
calculateBalance()
Method calculates the current balance of the account.
|
void |
clearAuthorizedPersons()
Method removes all objects from the association "authorizedPersons".
|
void |
clearBookings()
Method removes all objects from the association "bookings".
|
static List<AccountBO> |
findAllAccountBOs()
Method returns all instance of this class including potential subclasses.
|
Set<MyPersonBO> |
getAuthorizedPersons()
Method returns the association "authorizedPersons".
|
BankBO |
getBank()
Method returns the association "bank".
|
Set<BookingBO> |
getBookings()
Method returns the association "bookings".
|
com.anaptecs.jeaf.spi.persistence.ClassID |
getClassID()
Method returns the class id of this business object class.
|
CustomerBO |
getCustomer()
Method returns the association "customer".
|
Float |
getInterestRate()
Method returns the attribute "interestRate".
|
Long |
getNumber()
Method returns the attribute "number".
|
void |
removeFromAuthorizedPersons(MyPersonBO pAuthorizedPersons)
Method removes the passed MyPersonBO object from the association "authorizedPersons".
|
void |
removeFromBookings(BookingBO pBookings)
Method removes the passed BookingBO object from the association "bookings".
|
void |
setBank(BankBO pBank)
Method sets the association "bank".
|
void |
setCustomer(CustomerBO pCustomer)
Method sets the association "customer".
|
void |
setInterestRate(Float pInterestRate)
Method sets the attribute "interestRate".
|
void |
setNumber(Long pNumber)
Method sets the attribute "number".
|
void |
unsetBank()
Method unsets the association "bank".
|
void |
unsetCustomer()
Method unsets the association "customer".
|
public static final com.anaptecs.jeaf.spi.persistence.ClassID CLASS_ID
public static final String TABLE_NAME
public static final String NUMBER_ROW
public static final String NUMBER_ATTRIBUTE
public static final String INTERESTRATE_ROW
public static final String INTERESTRATE_ATTRIBUTE
public static final String BANK_ROLE
public static final String CUSTOMER_ROLE
public static final String BOOKINGS_ROLE
public static final String AUTHORIZEDPERSONS_ROLE
protected AccountBOBase()
public static List<AccountBO> findAllAccountBOs()
List List with all objects of this class. The method never returns null.public Long getNumber()
public void setNumber(Long pNumber)
pNumber - Value to which the attribute "number" should be set.public BankBO getBank()
public void setBank(BankBO pBank)
pBank - BankBO to which the association "bank" should be set.public final void unsetBank()
public CustomerBO getCustomer()
public void setCustomer(CustomerBO pCustomer)
pCustomer - CustomerBO to which the association "customer" should be set.public final void unsetCustomer()
public Set<BookingBO> getBookings()
public void addToBookings(BookingBO pBookings)
pBookings - Object that should be added to the association "bookings". The parameter must not be null.public void addToBookings(Collection<BookingBO> pBookings)
pBookings - Collection with all objects that should be added to the association "bookings". The parameter must
not be null.public void removeFromBookings(BookingBO pBookings)
pBookings - Object that should be removed from the association "bookings". The parameter must not be null.public void clearBookings()
public Set<MyPersonBO> getAuthorizedPersons()
public void addToAuthorizedPersons(MyPersonBO pAuthorizedPersons)
pAuthorizedPersons - Object that should be added to the association "authorizedPersons". The parameter must
not be null.public void addToAuthorizedPersons(Collection<MyPersonBO> pAuthorizedPersons)
pAuthorizedPersons - Collection with all objects that should be added to the association "authorizedPersons".
The parameter must not be null.public void removeFromAuthorizedPersons(MyPersonBO pAuthorizedPersons)
pAuthorizedPersons - Object that should be removed from the association "authorizedPersons". The parameter
must not be null.public void clearAuthorizedPersons()
public Float getInterestRate()
public void setInterestRate(Float pInterestRate)
pInterestRate - Value to which the attribute "interestRate" should be set.public abstract BigDecimal calculateBalance()
BigDecimalpublic com.anaptecs.jeaf.spi.persistence.ClassID getClassID()
getClassID in class com.anaptecs.jeaf.spi.persistence.PersistentObjectClassID Class ID of this business object. The method never returns null.Copyright © 2021. All rights reserved.