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

Public Member Functions

Date getClosingDate ()
 
void setClosingDate (Date closingDate)
 
double getStructureMargin ()
 
void setStructureMargin (double structureMargin)
 
Set< HeadquartersgetHeadquarters ()
 
void setHeadquarters (Set< Headquarters > headquarters)
 
long getId ()
 
void setId (long id)
 
String getIdContact ()
 
void setIdContact (String idContact)
 
String getName ()
 
void setName (String name)
 
double getProfitMargin ()
 
void setProfitMargin (double profitMargin)
 
Set< ServicegetServices ()
 
void setServices (Set< Service > services)
 
boolean isAlwaysApply ()
 
void setAlwaysApply (boolean alwaysApply)
 
Object entityId ()
 
boolean isEmpty ()
 
IContact getIContact ()
 
void setIContact (IContact contact)
 
MappingSet getSerializerMappings ()
 
- 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 36 of file Company.java.

Member Function Documentation

◆ entityId()

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

IDaoEntity

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 144 of file Company.java.

144  {
145  return id;
146  }

◆ getClosingDate()

Date org.turro.financials.entity.Company.getClosingDate ( )

Definition at line 63 of file Company.java.

63  {
64  return closingDate;
65  }
Here is the caller graph for this function:

◆ getHeadquarters()

Set<Headquarters> org.turro.financials.entity.Company.getHeadquarters ( )

Definition at line 80 of file Company.java.

80  {
81  return headquarters;
82  }
Here is the caller graph for this function:

◆ getIContact()

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

Definition at line 157 of file Company.java.

157  {
158  if(_contact == null) {
159  _contact = Contacts.getContactById(idContact);
160  }
161  return _contact;
162  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getId()

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

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

Definition at line 89 of file Company.java.

89  {
90  return id;
91  }

◆ getIdContact()

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

Definition at line 97 of file Company.java.

97  {
98  return idContact;
99  }

◆ getName()

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

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

Definition at line 107 of file Company.java.

107  {
108  return name;
109  }
Here is the caller graph for this function:

◆ getProfitMargin()

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

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

Definition at line 116 of file Company.java.

116  {
117  return profitMargin;
118  }
Here is the caller graph for this function:

◆ getSerializerMappings()

MappingSet org.turro.financials.entity.Company.getSerializerMappings ( )

Definition at line 176 of file Company.java.

176  {
177  MappingSet set = new MappingSet();
178  set.addMapping(Contract.class, 1,
179  new String[] { "id", "name" },
180  null);
181  return set;
182  }

◆ getServices()

Set<Service> org.turro.financials.entity.Company.getServices ( )

Definition at line 124 of file Company.java.

124  {
125  return services;
126  }
Here is the caller graph for this function:

◆ getStructureMargin()

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

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

Definition at line 72 of file Company.java.

72  {
73  return structureMargin;
74  }
Here is the caller graph for this function:

◆ isAlwaysApply()

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

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

Definition at line 133 of file Company.java.

133  {
134  return alwaysApply;
135  }

◆ isEmpty()

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

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 149 of file Company.java.

149  {
150  return Strings.isBlank(name);
151  }

◆ setAlwaysApply()

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

Definition at line 137 of file Company.java.

137  {
138  this.alwaysApply = alwaysApply;
139  }

◆ setClosingDate()

void org.turro.financials.entity.Company.setClosingDate ( Date  closingDate)

Definition at line 67 of file Company.java.

67  {
68  this.closingDate = closingDate;
69  }

◆ setHeadquarters()

void org.turro.financials.entity.Company.setHeadquarters ( Set< Headquarters headquarters)

Definition at line 84 of file Company.java.

84  {
85  this.headquarters = headquarters;
86  }

◆ setIContact()

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

Definition at line 164 of file Company.java.

164  {
165  _contact = contact;
166  idContact = _contact != null ? _contact.getId() : null;
167  name = _contact != null ? _contact.getName() : null;
168  }
Here is the call graph for this function:

◆ setId()

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

Definition at line 93 of file Company.java.

93  {
94  this.id = id;
95  }

◆ setIdContact()

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

Definition at line 101 of file Company.java.

101  {
102  this.idContact = idContact;
103  resetIContact();
104  }

◆ setName()

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

Definition at line 111 of file Company.java.

111  {
112  this.name = name;
113  }

◆ setProfitMargin()

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

Definition at line 120 of file Company.java.

120  {
121  this.profitMargin = profitMargin;
122  }

◆ setServices()

void org.turro.financials.entity.Company.setServices ( Set< Service services)

Definition at line 128 of file Company.java.

128  {
129  this.services = services;
130  }

◆ setStructureMargin()

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

Definition at line 76 of file Company.java.

76  {
77  this.structureMargin = structureMargin;
78  }

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