public abstract class MyPersonBOBase
extends com.anaptecs.jeaf.spi.persistence.PersistentObject
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCOUNTS_ROLE
Constant for the name of role "accounts".
|
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 |
DATEOFBIRTH_ATTRIBUTE
Constant for the name of attribute "dateOfBirth".
|
static String |
DATEOFBIRTH_ROW
Constant for the name of the row that is used to store the values of attribute "dateOfBirth".
|
static String |
EMPLOYEE_ROLE
Constant for the name of role "employee".
|
static String |
FIRSTNAME_ATTRIBUTE
Constant for the name of attribute "firstName".
|
static String |
FIRSTNAME_ROW
Constant for the name of the row that is used to store the values of attribute "firstName".
|
static String |
NAME_ATTRIBUTE
Constant for the name of attribute "name".
|
static String |
NAME_ROW
Constant for the name of the row that is used to store the values of attribute "name".
|
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 |
MyPersonBOBase()
Initialize object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToAccounts(AccountBO pAccounts)
Method adds the passed AccountBO object to the association "accounts".
|
void |
addToAccounts(Collection<AccountBO> pAccounts)
Method adds all passed objects to the association "accounts".
|
abstract Integer |
calculateAge() |
void |
clearAccounts()
Method removes all objects from the association "accounts".
|
static List<MyPersonBO> |
findAllMyPersonBOs()
Method returns all instance of this class including potential subclasses.
|
Set<AccountBO> |
getAccounts()
Method returns the association "accounts".
|
com.anaptecs.jeaf.spi.persistence.ClassID |
getClassID()
Method returns the class id of this business object class.
|
IndividualBO |
getCustomer()
Method returns the association "customer".
|
Calendar |
getDateOfBirth()
Method returns the attribute "dateOfBirth".
|
EmployeeBO |
getEmployee()
Method returns the association "employee".
|
String |
getFirstName()
Method returns the attribute "firstName".
|
abstract @NotNull String |
getFullName() |
String |
getName()
Method returns the attribute "name".
|
void |
removeFromAccounts(AccountBO pAccounts)
Method removes the passed AccountBO object from the association "accounts".
|
void |
setCustomer(IndividualBO pCustomer)
Method sets the association "customer".
|
void |
setDateOfBirth(Calendar pDateOfBirth)
Method sets the attribute "dateOfBirth".
|
void |
setEmployee(EmployeeBO pEmployee)
Method sets the association "employee".
|
void |
setFirstName(String pFirstName)
Method sets the attribute "firstName".
|
void |
setName(String pName)
Method sets the attribute "name".
|
void |
unsetCustomer()
Method unsets the association "customer".
|
void |
unsetEmployee()
Method unsets the association "employee".
|
public static final com.anaptecs.jeaf.spi.persistence.ClassID CLASS_ID
public static final String TABLE_NAME
public static final String NAME_ROW
public static final String NAME_ATTRIBUTE
public static final String FIRSTNAME_ROW
public static final String FIRSTNAME_ATTRIBUTE
public static final String DATEOFBIRTH_ROW
public static final String DATEOFBIRTH_ATTRIBUTE
public static final String ACCOUNTS_ROLE
public static final String EMPLOYEE_ROLE
public static final String CUSTOMER_ROLE
protected MyPersonBOBase()
public static List<MyPersonBO> findAllMyPersonBOs()
List List with all objects of this class. The method never returns null.public String getName()
public void setName(String pName)
pName - Value to which the attribute "name" should be set.public String getFirstName()
public void setFirstName(String pFirstName)
pFirstName - Value to which the attribute "firstName" should be set.public Calendar getDateOfBirth()
public void setDateOfBirth(Calendar pDateOfBirth)
pDateOfBirth - Value to which the attribute "dateOfBirth" should be set.public Set<AccountBO> getAccounts()
public void addToAccounts(AccountBO pAccounts)
pAccounts - Object that should be added to the association "accounts". The parameter must not be null.public void addToAccounts(Collection<AccountBO> pAccounts)
pAccounts - Collection with all objects that should be added to the association "accounts". The parameter must
not be null.public void removeFromAccounts(AccountBO pAccounts)
pAccounts - Object that should be removed from the association "accounts". The parameter must not be null.public void clearAccounts()
public EmployeeBO getEmployee()
public void setEmployee(EmployeeBO pEmployee)
pEmployee - EmployeeBO to which the association "employee" should be set.public final void unsetEmployee()
public IndividualBO getCustomer()
public void setCustomer(IndividualBO pCustomer)
pCustomer - IndividualBO to which the association "customer" should be set.public final void unsetCustomer()
public 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.