01: package oes;
02:
03: import java.util.Date;
04:
05: public class Discount {
06:
07: private Price _price;
08:
09: private int _discountId;
10:
11: private int _minimum;
12:
13: private int _discount;
14:
15: private Date _effectiveFrom;
16:
17: private Date _effectiveTo;
18:
19: public Price getPrice() {
20: return _price;
21: }
22:
23: public void setPrice(Price price) {
24: _price = price;
25: }
26:
27: public int getDiscountId() {
28: return _discountId;
29: }
30:
31: public void setDiscountId(int id) {
32: _discountId = id;
33: }
34:
35: public int getMinimum() {
36: return _minimum;
37: }
38:
39: public void setMinimum(int minimum) {
40: _minimum = minimum;
41: }
42:
43: public int getDiscount() {
44: return _discount;
45: }
46:
47: public void setDiscount(int discount) {
48: _discount = discount;
49: }
50:
51: public Date getEffectiveFrom() {
52: return _effectiveFrom;
53: }
54:
55: public void setEffectiveFrom(Date date) {
56: _effectiveFrom = date;
57: }
58:
59: public boolean hasEffectiveFrom() {
60: return _effectiveFrom != null;
61: }
62:
63: public void deleteEffectiveFrom() {
64: _effectiveFrom = null;
65: }
66:
67: public Date getEffectiveTo() {
68: return _effectiveTo;
69: }
70:
71: public void setEffectiveTo(Date date) {
72: _effectiveTo = date;
73: }
74:
75: public boolean hasEffectiveTo() {
76: return _effectiveTo != null;
77: }
78:
79: public void deleteEffectiveTo() {
80: _effectiveTo = null;
81: }
82:
83: }
|