BrightSide Workbench Full Report + Source Code
ProductStub.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.Set;
22 import org.turro.financials.entity.Product;
23 import org.turro.reflection.stub.DefaultStub;
24 import org.turro.reflection.stub.StubSet;
25 
30 public class ProductStub extends DefaultStub {
31 
32  private long id;
33  private String productCode, description, keywords;
34  private double price, tax;
35  private boolean publishable, service, promoted, delivery, concept, attachments;
36  private Set<ProductByContractorStub> productByContractors = new StubSet<>(ProductByContractorStub.class);
37 
38  public ProductStub(Product product) {
39  silentlyInitializeValues(product);
40  }
41 
42  public long getId() {
43  return id;
44  }
45 
46  public void setId(long id) {
47  this.id = id;
48  }
49 
50  public String getProductCode() {
51  return productCode;
52  }
53 
54  public void setProductCode(String productCode) {
55  this.productCode = productCode;
56  }
57 
58  public String getDescription() {
59  return description;
60  }
61 
62  public void setDescription(String description) {
63  this.description = description;
64  }
65 
66  public String getKeywords() {
67  return keywords;
68  }
69 
70  public void setKeywords(String keywords) {
71  this.keywords = keywords;
72  }
73 
74  public double getPrice() {
75  return price;
76  }
77 
78  public void setPrice(double price) {
79  this.price = price;
80  }
81 
82  public double getTax() {
83  return tax;
84  }
85 
86  public void setTax(double tax) {
87  this.tax = tax;
88  }
89 
90  public boolean isPublishable() {
91  return publishable;
92  }
93 
94  public void setPublishable(boolean publishable) {
95  this.publishable = publishable;
96  }
97 
98  public boolean isService() {
99  return service;
100  }
101 
102  public void setService(boolean service) {
103  this.service = service;
104  }
105 
106  public boolean isPromoted() {
107  return promoted;
108  }
109 
110  public void setPromoted(boolean promoted) {
111  this.promoted = promoted;
112  }
113 
114  public boolean isDelivery() {
115  return delivery;
116  }
117 
118  public void setDelivery(boolean delivery) {
119  this.delivery = delivery;
120  }
121 
122  public boolean isConcept() {
123  return concept;
124  }
125 
126  public void setConcept(boolean concept) {
127  this.concept = concept;
128  }
129 
130  public boolean isAttachments() {
131  return attachments;
132  }
133 
134  public void setAttachments(boolean attachments) {
135  this.attachments = attachments;
136  }
137 
138  public Set<ProductByContractorStub> getProductByContractors() {
139  return productByContractors;
140  }
141 
142  public void setProductByContractors(Set<ProductByContractorStub> productByContractors) {
143  this.productByContractors = productByContractors;
144  }
145 
146 }
void setPromoted(boolean promoted)
void setAttachments(boolean attachments)
Set< ProductByContractorStub > getProductByContractors()
void setProductCode(String productCode)
void setDescription(String description)
void setProductByContractors(Set< ProductByContractorStub > productByContractors)
void setDelivery(boolean delivery)
void setPublishable(boolean publishable)