]> git.mxchange.org Git - jcustomer-core.git/blob - src/org/mxchange/jshopcore/model/product/Product.java
365e38c740543e8bffbb4216a4d2af650d5de74b
[jcustomer-core.git] / src / org / mxchange / jshopcore / model / product / Product.java
1 /*
2  * Copyright (C) 2015 Roland Haeder
3  *
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.
8  *
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.
13  *
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/>.
16  */
17 package org.mxchange.jshopcore.model.product;
18
19 import java.io.Serializable;
20 import org.mxchange.jshopcore.model.category.Category;
21
22 /**
23  * An interface for in database storable products
24  * <p>
25  * @author Roland Haeder<roland@mxchange.org>
26  */
27 public interface Product extends Serializable {
28
29         /**
30          * Copies all properties from source product to this.
31          * <p>
32          * @param product Source product
33          */
34         public void copyAll (final Product product);
35
36         /**
37          * Getter for product availability
38          * <p>
39          * @return Product availability
40          */
41         public Boolean getProductAvailability ();
42
43         /**
44          * Setter for product availability
45          * <p>
46          * @param productAvailability Product availability
47          */
48         public void setProductAvailability (final Boolean productAvailability);
49
50         /**
51          * Getter for product category id
52          * <p>
53          * @return Product category id
54          */
55         public Category getProductCategory ();
56
57         /**
58          * Setter for product category
59          * <p>
60          * @param productCategory Product category
61          */
62         public void setProductCategory (final Category productCategory);
63
64         /**
65          * Getter for id number, suitable for form fields.
66          * <p>
67          * @return Id number of product
68          */
69         public Long getProductId ();
70
71         /**
72          * Id number of product
73          * <p>
74          * @param productId the id number to set
75          */
76         public void setProductId (final Long productId);
77
78         /**
79          * Getter for raw price.
80          * <p>
81          * @return Single price of product
82          */
83         public Float getProductPrice ();
84
85         /**
86          * Price of product
87          * <p>
88          * @param productPrice the price to set
89          */
90         public void setProductPrice (final Float productPrice);
91
92         /**
93          * Getter for title.
94          * <p>
95          * @return Title of product
96          */
97         public String getProductTitle ();
98
99         /**
100          * Title of product
101          * <p>
102          * @param productTitle the title to set
103          */
104         public void setProductTitle (final String productTitle);
105 }