]> git.mxchange.org Git - jfinancials-core.git/blob - src/org/mxchange/jfinancials/model/receipt/entry/BillableReceiptEntry.java
Continued:
[jfinancials-core.git] / src / org / mxchange / jfinancials / model / receipt / entry / BillableReceiptEntry.java
1 /*
2  * Copyright (C) 2017 Roland Haeder<roland@mxchange.org>
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.jfinancials.model.receipt.entry;
18
19 import java.io.Serializable;
20 import java.util.Calendar;
21 import org.mxchange.jfinancials.model.receipt.Billable;
22 import org.mxchange.jproduct.model.product.Product;
23
24 /**
25  * An interface for receipt entries
26  * <p>
27  * @author Roland Haeder<roland@mxchange.org>
28  */
29 public interface BillableReceiptEntry extends Serializable {
30
31         /**
32          * Getter when this receipt entry has been created in database
33          * <p>
34          * @return When this entry has been created
35          */
36         Calendar getEntryCreated ();
37
38         /**
39          * Setter when this receipt entry has been created in database
40          * <p>
41          * @param entryCreated When this entry has been created
42          */
43         void setEntryCreated (final Calendar entryCreated);
44
45         /**
46          * Getter for primary key
47          * <p>
48          * @return Primary key
49          */
50         Long getEntryId ();
51
52         /**
53          * Setter for primary key
54          * <p>
55          * @param entryId Primary key
56          */
57         void setEntryId (final Long entryId);
58
59         /**
60          * Getter for receipt instance
61          * <p>
62          * @return Receipt instance
63          */
64         Billable getEntryReceipt ();
65
66         /**
67          * Setter for receipt instance
68          * <p>
69          * @param entryReceipt Receipt instance
70          */
71         void setEntryReceipt (final Billable entryReceipt);
72
73         /**
74          * Getter for linked product
75          * <p>
76          * @return Product
77          */
78         Product getEntryProduct ();
79
80         /**
81          * Setter for linked product
82          * <p>
83          * @param entryProduct Product
84          */
85         void setEntryProduct (final Product entryProduct);
86
87         /**
88          * Getter for product quantity
89          * <p>
90          * @return Product quantity
91          */
92         Long getEntryProductQuantity ();
93
94         /**
95          * Setter for product quantity
96          * <p>
97          * @param entryProductQuantity Product quantity
98          */
99         void setEntryProductQuantity (final Long entryProductQuantity);
100
101         /**
102          * Getter for product single price (copied from GenericProduct)
103          * <p>
104          * @return Product single price
105          */
106         Float getEntryProductPrice ();
107
108         /**
109          * Setter for product single price (copied from GenericProduct)
110          * <p>
111          * @param entryProductPrice Product single price
112          */
113         void setEntryProductPrice (final Float entryProductPrice);
114
115         @Override
116         boolean equals (final Object object);
117
118         @Override
119         int hashCode ();
120
121 }