BrightSide Workbench Full Report + Source Code
ProductByContractorStub.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 org.turro.financials.entity.ProductByContractor;
22 import org.turro.reflection.stub.DefaultStub;
23 
28 public class ProductByContractorStub extends DefaultStub {
29 
30  private ContractStubmin contract;
31  private ProductStubmin product;
32  private String contractorCode;
33  private String description;
34  private double price;
35  private double tax;
36 
37  public ProductByContractorStub(ProductByContractor productByContractor) {
38  silentlyInitializeValues(productByContractor);
39  }
40 
42  return contract;
43  }
44 
45  public void setContract(ContractStubmin contract) {
46  this.contract = contract;
47  }
48 
50  return product;
51  }
52 
53  public void setProduct(ProductStubmin product) {
54  this.product = product;
55  }
56 
57  public String getContractorCode() {
58  return contractorCode;
59  }
60 
61  public void setContractorCode(String contractorCode) {
62  this.contractorCode = contractorCode;
63  }
64 
65  public String getDescription() {
66  return description;
67  }
68 
69  public void setDescription(String description) {
70  this.description = description;
71  }
72 
73  public double getPrice() {
74  return price;
75  }
76 
77  public void setPrice(double price) {
78  this.price = price;
79  }
80 
81  public double getTax() {
82  return tax;
83  }
84 
85  public void setTax(double tax) {
86  this.tax = tax;
87  }
88 
89 }
ProductByContractorStub(ProductByContractor productByContractor)