com.softslate.commerce.businessobjects.product
Class DiscountBean
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.product.DiscountBean
- All Implemented Interfaces:
- BusinessObject, Discount, java.io.Serializable
public class DiscountBean
- extends BaseBusinessObject
- implements Discount, java.io.Serializable
Object representing a discount within the system. DiscountBean
is the default implementation of the Discount
interface for
the application.
The database stores discounts in the sscDiscount
table, and
this interface can be used to represent a single row of that table. The
Hibernate configuration file DiscountBean.hbm.xml
maps that
table's columns to the properties in this object.
- Author:
- David Tobey
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
discountID
private int discountID
name
private java.lang.String name
code
private java.lang.String code
description
private java.lang.String description
isActive
private boolean isActive
usersAppliesType
private java.lang.String usersAppliesType
usersAppliesValue
private java.lang.String usersAppliesValue
itemsAppliesType
private java.lang.String itemsAppliesType
itemsAppliesValue
private java.lang.String itemsAppliesValue
rewardType
private java.lang.String rewardType
reward
private java.lang.Double reward
couponCode
private java.lang.String couponCode
startDate
private java.lang.String startDate
expirationDate
private java.lang.String expirationDate
timesUsed
private java.lang.Integer timesUsed
maxTimesUsed
private java.lang.Integer maxTimesUsed
isTimesPerCustomer
private boolean isTimesPerCustomer
discountOrder
private int discountOrder
extra1
private java.lang.String extra1
extra2
private java.lang.String extra2
extra3
private java.lang.String extra3
skuDiscounts
private java.util.Collection skuDiscounts
discountRanges
private java.util.Collection discountRanges
DiscountBean
public DiscountBean()
getCouponCode
public java.lang.String getCouponCode()
- Specified by:
getCouponCode
in interface Discount
setCouponCode
public void setCouponCode(java.lang.String couponCode)
- Specified by:
setCouponCode
in interface Discount
getIsTimesPerCustomer
public boolean getIsTimesPerCustomer()
- Specified by:
getIsTimesPerCustomer
in interface Discount
setIsTimesPerCustomer
public void setIsTimesPerCustomer(boolean isTimesPerCustomer)
- Specified by:
setIsTimesPerCustomer
in interface Discount
getItemsAppliesType
public java.lang.String getItemsAppliesType()
- Specified by:
getItemsAppliesType
in interface Discount
setItemsAppliesType
public void setItemsAppliesType(java.lang.String itemsAppliesType)
- Specified by:
setItemsAppliesType
in interface Discount
getItemsAppliesValue
public java.lang.String getItemsAppliesValue()
- Specified by:
getItemsAppliesValue
in interface Discount
setItemsAppliesValue
public void setItemsAppliesValue(java.lang.String itemsAppliesValue)
- Specified by:
setItemsAppliesValue
in interface Discount
getUsersAppliesType
public java.lang.String getUsersAppliesType()
- Specified by:
getUsersAppliesType
in interface Discount
setUsersAppliesType
public void setUsersAppliesType(java.lang.String usersAppliesType)
- Specified by:
setUsersAppliesType
in interface Discount
getUsersAppliesValue
public java.lang.String getUsersAppliesValue()
- Specified by:
getUsersAppliesValue
in interface Discount
setUsersAppliesValue
public void setUsersAppliesValue(java.lang.String usersAppliesValue)
- Specified by:
setUsersAppliesValue
in interface Discount
getReward
public java.lang.Double getReward()
- Specified by:
getReward
in interface Discount
setReward
public void setReward(java.lang.Double reward)
- Specified by:
setReward
in interface Discount
getRewardType
public java.lang.String getRewardType()
- Specified by:
getRewardType
in interface Discount
setRewardType
public void setRewardType(java.lang.String rewardType)
- Specified by:
setRewardType
in interface Discount
setActive
public void setActive(boolean isActive)
- Specified by:
setActive
in interface Discount
getCode
public java.lang.String getCode()
- Specified by:
getCode
in interface Discount
setCode
public void setCode(java.lang.String code)
- Specified by:
setCode
in interface Discount
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface Discount
setDescription
public void setDescription(java.lang.String description)
- Specified by:
setDescription
in interface Discount
getDiscountID
public int getDiscountID()
- Specified by:
getDiscountID
in interface Discount
setDiscountID
public void setDiscountID(int discountID)
- Specified by:
setDiscountID
in interface Discount
getDiscountOrder
public int getDiscountOrder()
- Specified by:
getDiscountOrder
in interface Discount
setDiscountOrder
public void setDiscountOrder(int discountOrder)
- Specified by:
setDiscountOrder
in interface Discount
getExpirationDate
public java.lang.String getExpirationDate()
- Specified by:
getExpirationDate
in interface Discount
setExpirationDate
public void setExpirationDate(java.lang.String expirationDate)
- Specified by:
setExpirationDate
in interface Discount
getExtra1
public java.lang.String getExtra1()
- Specified by:
getExtra1
in interface Discount
setExtra1
public void setExtra1(java.lang.String extra1)
- Specified by:
setExtra1
in interface Discount
getExtra2
public java.lang.String getExtra2()
- Specified by:
getExtra2
in interface Discount
setExtra2
public void setExtra2(java.lang.String extra2)
- Specified by:
setExtra2
in interface Discount
getExtra3
public java.lang.String getExtra3()
- Specified by:
getExtra3
in interface Discount
setExtra3
public void setExtra3(java.lang.String extra3)
- Specified by:
setExtra3
in interface Discount
getIsActive
public boolean getIsActive()
- Specified by:
getIsActive
in interface Discount
setIsActive
public void setIsActive(boolean isActive)
- Specified by:
setIsActive
in interface Discount
getMaxTimesUsed
public java.lang.Integer getMaxTimesUsed()
- Specified by:
getMaxTimesUsed
in interface Discount
setMaxTimesUsed
public void setMaxTimesUsed(java.lang.Integer maxTimesUsed)
- Specified by:
setMaxTimesUsed
in interface Discount
getName
public java.lang.String getName()
- Specified by:
getName
in interface Discount
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interface Discount
getStartDate
public java.lang.String getStartDate()
- Specified by:
getStartDate
in interface Discount
setStartDate
public void setStartDate(java.lang.String startDate)
- Specified by:
setStartDate
in interface Discount
getTimesUsed
public java.lang.Integer getTimesUsed()
- Specified by:
getTimesUsed
in interface Discount
setTimesUsed
public void setTimesUsed(java.lang.Integer timesUsed)
- Specified by:
setTimesUsed
in interface Discount
getSkuDiscounts
public java.util.Collection getSkuDiscounts()
- Specified by:
getSkuDiscounts
in interface Discount
setSkuDiscounts
public void setSkuDiscounts(java.util.Collection skuDiscounts)
- Specified by:
setSkuDiscounts
in interface Discount
getDiscountRanges
public java.util.Collection getDiscountRanges()
- Specified by:
getDiscountRanges
in interface Discount
setDiscountRanges
public void setDiscountRanges(java.util.Collection discountRanges)
- Specified by:
setDiscountRanges
in interface Discount
Copyright ? SoftSlate, LLC 2003?2005