BrightSide Workbench Full Report + Source Code
org.turro.financials.entity.Headquarters Class Reference
Inheritance diagram for org.turro.financials.entity.Headquarters:
Collaboration diagram for org.turro.financials.entity.Headquarters:

Public Member Functions

Company getCompany ()
 
void setCompany (Company company)
 
Set< DepartmentgetDepartments ()
 
void setDepartments (Set< Department > departments)
 
double getStructureMargin ()
 
void setStructureMargin (double structureMargin)
 
long getId ()
 
void setId (long id)
 
String getIdContact ()
 
void setIdContact (String idContact)
 
String getName ()
 
void setName (String name)
 
double getProfitMargin ()
 
void setProfitMargin (double profitMargin)
 
boolean isAlwaysApply ()
 
void setAlwaysApply (boolean alwaysApply)
 
Object entityId ()
 
boolean isEmpty ()
 
IContact getIContact ()
 
void setIContact (IContact contact)
 
- Public Member Functions inherited from org.turro.jpa.entity.IDaoEntity
default boolean isNew ()
 
default void prepareSave ()
 
default void prepareDelete ()
 
default void removeEmpties ()
 
default Collection< Collection > collections ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 34 of file Headquarters.java.

Member Function Documentation

◆ entityId()

Object org.turro.financials.entity.Headquarters.entityId ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 130 of file Headquarters.java.

130  {
131  return id;
132  }

◆ getCompany()

Company org.turro.financials.entity.Headquarters.getCompany ( )

Definition at line 57 of file Headquarters.java.

57  {
58  return company;
59  }
Here is the caller graph for this function:

◆ getDepartments()

Set<Department> org.turro.financials.entity.Headquarters.getDepartments ( )

Definition at line 65 of file Headquarters.java.

65  {
66  return departments;
67  }
Here is the caller graph for this function:

◆ getIContact()

IContact org.turro.financials.entity.Headquarters.getIContact ( )

Definition at line 143 of file Headquarters.java.

143  {
144  if(_contact == null) {
145  _contact = Contacts.getContactById(idContact);
146  }
147  return _contact;
148  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getId()

long org.turro.financials.entity.Headquarters.getId ( )

Implements org.turro.financials.model.business.IValuation.

Definition at line 83 of file Headquarters.java.

83  {
84  return id;
85  }

◆ getIdContact()

String org.turro.financials.entity.Headquarters.getIdContact ( )

Definition at line 91 of file Headquarters.java.

91  {
92  return idContact;
93  }
Here is the caller graph for this function:

◆ getName()

String org.turro.financials.entity.Headquarters.getName ( )

Implements org.turro.financials.model.business.IValuation.

Definition at line 101 of file Headquarters.java.

101  {
102  return name;
103  }
Here is the caller graph for this function:

◆ getProfitMargin()

double org.turro.financials.entity.Headquarters.getProfitMargin ( )

Implements org.turro.financials.model.business.IValuation.

Definition at line 110 of file Headquarters.java.

110  {
111  return profitMargin;
112  }

◆ getStructureMargin()

double org.turro.financials.entity.Headquarters.getStructureMargin ( )

Implements org.turro.financials.model.business.IValuation.

Definition at line 74 of file Headquarters.java.

74  {
75  return structureMargin;
76  }
Here is the caller graph for this function:

◆ isAlwaysApply()

boolean org.turro.financials.entity.Headquarters.isAlwaysApply ( )

Implements org.turro.financials.model.business.IValuation.

Definition at line 119 of file Headquarters.java.

119  {
120  return alwaysApply;
121  }

◆ isEmpty()

boolean org.turro.financials.entity.Headquarters.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 135 of file Headquarters.java.

135  {
136  return Strings.isBlank(name) || Strings.isBlank(idContact);
137  }

◆ setAlwaysApply()

void org.turro.financials.entity.Headquarters.setAlwaysApply ( boolean  alwaysApply)

Definition at line 123 of file Headquarters.java.

123  {
124  this.alwaysApply = alwaysApply;
125  }

◆ setCompany()

void org.turro.financials.entity.Headquarters.setCompany ( Company  company)

Definition at line 61 of file Headquarters.java.

61  {
62  this.company = company;
63  }
Here is the caller graph for this function:

◆ setDepartments()

void org.turro.financials.entity.Headquarters.setDepartments ( Set< Department departments)

Definition at line 69 of file Headquarters.java.

69  {
70  this.departments = departments;
71  }

◆ setIContact()

void org.turro.financials.entity.Headquarters.setIContact ( IContact  contact)

Definition at line 150 of file Headquarters.java.

150  {
151  _contact = contact;
152  idContact = _contact != null ? _contact.getId() : null;
153  name = _contact != null ? _contact.getName() : null;
154  }
Here is the call graph for this function:

◆ setId()

void org.turro.financials.entity.Headquarters.setId ( long  id)

Definition at line 87 of file Headquarters.java.

87  {
88  this.id = id;
89  }

◆ setIdContact()

void org.turro.financials.entity.Headquarters.setIdContact ( String  idContact)

Definition at line 95 of file Headquarters.java.

95  {
96  this.idContact = idContact;
97  resetIContact();
98  }

◆ setName()

void org.turro.financials.entity.Headquarters.setName ( String  name)

Definition at line 105 of file Headquarters.java.

105  {
106  this.name = name;
107  }

◆ setProfitMargin()

void org.turro.financials.entity.Headquarters.setProfitMargin ( double  profitMargin)

Definition at line 114 of file Headquarters.java.

114  {
115  this.profitMargin = profitMargin;
116  }

◆ setStructureMargin()

void org.turro.financials.entity.Headquarters.setStructureMargin ( double  structureMargin)

Definition at line 78 of file Headquarters.java.

78  {
79  this.structureMargin = structureMargin;
80  }

The documentation for this class was generated from the following file: