BrightSide Workbench Full Report + Source Code
CompanyStub.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2022 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 package org.turro.financials.stub;
20 
21 import java.util.Date;
22 import java.util.Set;
23 import org.turro.financials.entity.Company;
24 import org.turro.reflection.stub.DefaultStub;
25 import org.turro.reflection.stub.StubSet;
26 
31 public class CompanyStub extends DefaultStub {
32 
33  private long id;
34  private String name;
35  private double structureMargin, profitMargin;
36  private boolean alwaysApply;
37  private String idContact;
38  private Date closingDate;
39  private Set<ServiceStub> services = new StubSet<>(ServiceStub.class);
40  private Set<HeadquartersStub> headquarters = new StubSet<>(HeadquartersStub.class);
41 
42  public CompanyStub(Company company) {
43  silentlyInitializeValues(company);
44  }
45 
46  public long getId() {
47  return id;
48  }
49 
50  public void setId(long id) {
51  this.id = id;
52  }
53 
54  public String getName() {
55  return name;
56  }
57 
58  public void setName(String name) {
59  this.name = name;
60  }
61 
62  public double getStructureMargin() {
63  return structureMargin;
64  }
65 
66  public void setStructureMargin(double structureMargin) {
67  this.structureMargin = structureMargin;
68  }
69 
70  public double getProfitMargin() {
71  return profitMargin;
72  }
73 
74  public void setProfitMargin(double profitMargin) {
75  this.profitMargin = profitMargin;
76  }
77 
78  public boolean isAlwaysApply() {
79  return alwaysApply;
80  }
81 
82  public void setAlwaysApply(boolean alwaysApply) {
83  this.alwaysApply = alwaysApply;
84  }
85 
86  public String getIdContact() {
87  return idContact;
88  }
89 
90  public void setIdContact(String idContact) {
91  this.idContact = idContact;
92  }
93 
94  public Date getClosingDate() {
95  return closingDate;
96  }
97 
98  public void setClosingDate(Date closingDate) {
99  this.closingDate = closingDate;
100  }
101 
102  public Set<ServiceStub> getServices() {
103  return services;
104  }
105 
106  public void setServices(Set<ServiceStub> services) {
107  this.services = services;
108  }
109 
110  public Set<HeadquartersStub> getHeadquarters() {
111  return headquarters;
112  }
113 
114  public void setHeadquarters(Set<HeadquartersStub> headquarters) {
115  this.headquarters = headquarters;
116  }
117 
118 }
void setServices(Set< ServiceStub > services)
void setHeadquarters(Set< HeadquartersStub > headquarters)
void setAlwaysApply(boolean alwaysApply)
Set< HeadquartersStub > getHeadquarters()
void setProfitMargin(double profitMargin)
void setClosingDate(Date closingDate)
void setIdContact(String idContact)
void setStructureMargin(double structureMargin)