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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetFloor()booleanvoidsetCeiling(Double ceiling) voidsetDiscount(Discount discount) voidsetDiscountID(int discountID) voidsetDiscountRangeID(int discountRangeID) voidvoidsetIsActive(boolean isActive) voidvoidsetRewardType(String rewardType) Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessObject
initializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getCeilingin interfaceDiscountRange
-
setCeiling
- Specified by:
setCeilingin interfaceDiscountRange
-
getDiscount
- Specified by:
getDiscountin interfaceDiscountRange
-
setDiscount
- Specified by:
setDiscountin interfaceDiscountRange
-
getDiscountID
public int getDiscountID()- Specified by:
getDiscountIDin interfaceDiscountRange
-
setDiscountID
public void setDiscountID(int discountID) - Specified by:
setDiscountIDin interfaceDiscountRange
-
getDiscountRangeID
public int getDiscountRangeID()- Specified by:
getDiscountRangeIDin interfaceDiscountRange
-
setDiscountRangeID
public void setDiscountRangeID(int discountRangeID) - Specified by:
setDiscountRangeIDin interfaceDiscountRange
-
getFloor
- Specified by:
getFloorin interfaceDiscountRange
-
setFloor
- Specified by:
setFloorin interfaceDiscountRange
-
getIsActive
public boolean getIsActive()- Specified by:
getIsActivein interfaceDiscountRange
-
setIsActive
public void setIsActive(boolean isActive) - Specified by:
setIsActivein interfaceDiscountRange
-
getReward
- Specified by:
getRewardin interfaceDiscountRange
-
setReward
- Specified by:
setRewardin interfaceDiscountRange
-
getRewardType
- Specified by:
getRewardTypein interfaceDiscountRange
-
setRewardType
- Specified by:
setRewardTypein interfaceDiscountRange
-