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 org.mxchange.jproduct.model.category.Category;
23 * An interface for in database storable products
25 * @author Roland Häder<roland@mxchange.org>
27 public interface Product extends Serializable {
30 * Copies all properties from source product to this.
32 * @param product Source product
34 void copyAll (final Product product);
37 * Getter for product availability
39 * @return Product availability
41 Boolean getProductAvailability ();
44 * Setter for product availability
46 * @param productAvailability Product availability
48 void setProductAvailability (final Boolean productAvailability);
51 * Getter for product category id
53 * @return Product category id
55 Category getProductCategory ();
58 * Setter for product category
60 * @param productCategory Product category
62 void setProductCategory (final Category productCategory);
65 * Getter for id number, suitable for form fields.
67 * @return Id number of product
72 * Id number of product
74 * @param productId the id number to set
76 void setProductId (final Long productId);
79 * Getter for raw price.
81 * @return Single price of product
83 Float getProductPrice ();
88 * @param productPrice the price to set
90 void setProductPrice (final Float productPrice);
95 * @return Title of product
97 String getProductTitle ();
102 * @param productTitle the title to set
104 void setProductTitle (final String productTitle);
107 boolean equals (final Object object);