2 * Copyright (C) 2016, 2017 Roland Häder
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.jproduct.model.product;
19 import java.io.Serializable;
20 import java.util.Date;
21 import org.mxchange.jcontactsbusiness.model.basicdata.BasicData;
22 import org.mxchange.jproduct.model.category.Category;
25 * An interface for in database storable products
27 * @author Roland Häder<roland@mxchange.org>
29 public interface Product extends Serializable {
32 * Getter for created timestamp
34 * @return Created timestamp
36 Date getProductCreated ();
39 * Setter for created timestamp
41 * @param productCreated Created timestamp
43 void setProductCreated (final Date productCreated);
46 * Getter for product availability
48 * @return Product availability
50 Boolean getProductAvailability ();
53 * Setter for product availability
55 * @param productAvailability Product availability
57 void setProductAvailability (final Boolean productAvailability);
60 * Getter for product category id
62 * @return Product category id
64 Category getProductCategory ();
67 * Setter for product category
69 * @param productCategory Product category
71 void setProductCategory (final Category productCategory);
74 * Getter for id number, suitable for form fields.
76 * @return Id number of product
81 * Id number of product
83 * @param productId the id number to set
85 void setProductId (final Long productId);
88 * Getter for manufacturing/producing company
90 * @return Manufacturing/producing company
92 BasicData getProductManfacturer ();
95 * Setter for manufacturing/producing company
97 * @param productManfacturer Manufacturing/producing company
99 void setProductManfacturer (final BasicData productManfacturer);
102 * Getter for product's net price
104 * @return Product's net price
106 Float getProductNetPrice ();
109 * Setter for product's net price
111 * @param productNetPrice Product's net price
113 void setProductNetPrice (final Float productNetPrice);
116 * Getter for product's tax rate
118 * @return Product's tax rate
120 Float getProductTaxRate ();
123 * Setter for product's tax rate
125 * @param productTaxRate Product's tax rate
127 void setProductTaxRate (final Float productTaxRate);
130 * Getter for product's gross price
132 * @return Product's gross price
134 Float getProductGrossPrice ();
137 * Setter for product's gross price
139 * @param productGrossPrice Product's gross price
141 void setProductGrossPrice (final Float productGrossPrice);
144 * Getter for currency code like EUR or USD
146 * @return Currency code like EUR or USD
148 String getProductCurrencyCode ();
151 * Setter for currency code like EUR or USD
153 * @param productCurrencyCode Currency code like EUR or USD
155 void setProductCurrencyCode (final String productCurrencyCode);
160 * @return Title of product
162 String getProductTitle ();
167 * @param productTitle the title to set
169 void setProductTitle (final String productTitle);
172 * Getter for product's unit amount
174 * @return Product's unit amount
176 Float getProductUnitAmount ();
179 * Setter for product's unit amount
181 * @param productUnitAmount Product's unit amount
183 void setProductUnitAmount (final Float productUnitAmount);
186 * Getter for product's unit type
188 * @return Product's unit type
190 String getProductUnitType ();
193 * Setter for product's unit type
195 * @param productUnitType Product's unit type
197 void setProductUnitType (final String productUnitType);
200 boolean equals (final Object object);