Class DiscountRangeBean
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.product.DiscountRangeBean
- All Implemented Interfaces:
BusinessObject
,DiscountRange
,Serializable
Object representing a discount range within the system.
DiscountRangeBean
is the default implementation of the
DiscountRange
interface for the application.
The database stores discount ranges in the sscDiscountRange
table, and this interface can be used to represent a single row of that
table. The Hibernate configuration file
DiscountRangeBean.hbm.xml
maps that table's columns to the
properties in this object.
- Author:
- David Tobey
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
getFloor()
boolean
void
setCeiling
(Double ceiling) void
setDiscount
(Discount discount) void
setDiscountID
(int discountID) void
setDiscountRangeID
(int discountRangeID) void
void
setIsActive
(boolean isActive) void
void
setRewardType
(String rewardType) Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessObject
initialize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
discountRangeID
private int discountRangeID -
discountID
private int discountID -
discount
-
rewardType
-
reward
-
floor
-
ceiling
-
isActive
private boolean isActive
-
-
Constructor Details
-
DiscountRangeBean
public DiscountRangeBean()
-
-
Method Details
-
getCeiling
- Specified by:
getCeiling
in interfaceDiscountRange
-
setCeiling
- Specified by:
setCeiling
in interfaceDiscountRange
-
getDiscount
- Specified by:
getDiscount
in interfaceDiscountRange
-
setDiscount
- Specified by:
setDiscount
in interfaceDiscountRange
-
getDiscountID
public int getDiscountID()- Specified by:
getDiscountID
in interfaceDiscountRange
-
setDiscountID
public void setDiscountID(int discountID) - Specified by:
setDiscountID
in interfaceDiscountRange
-
getDiscountRangeID
public int getDiscountRangeID()- Specified by:
getDiscountRangeID
in interfaceDiscountRange
-
setDiscountRangeID
public void setDiscountRangeID(int discountRangeID) - Specified by:
setDiscountRangeID
in interfaceDiscountRange
-
getFloor
- Specified by:
getFloor
in interfaceDiscountRange
-
setFloor
- Specified by:
setFloor
in interfaceDiscountRange
-
getIsActive
public boolean getIsActive()- Specified by:
getIsActive
in interfaceDiscountRange
-
setIsActive
public void setIsActive(boolean isActive) - Specified by:
setIsActive
in interfaceDiscountRange
-
getReward
- Specified by:
getReward
in interfaceDiscountRange
-
setReward
- Specified by:
setReward
in interfaceDiscountRange
-
getRewardType
- Specified by:
getRewardType
in interfaceDiscountRange
-
setRewardType
- Specified by:
setRewardType
in interfaceDiscountRange
-