Class DiscountBean
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.product.DiscountBean
- All Implemented Interfaces:
BusinessObject
,Discount
,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:
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private String
private String
private String
private String
private int
private Map
private int
private Collection
private String
private String
private String
private String
private boolean
private boolean
private String
private String
private Integer
private String
private OrderItem
private Integer
private Collection
private Double
private String
private static final long
private Collection
private String
private Integer
private Double
private Integer
private Double
private String
private String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCode()
int
int
boolean
boolean
getName()
void
setActive
(boolean isActive) void
setCartItemsType
(String cartItemsType) void
setCartItemsValue
(String cartItemsValue) void
void
setCouponCode
(String couponCode) void
setDescription
(String description) void
setDiscountID
(int discountID) void
setDiscountInformation
(Map discountInformation) void
setDiscountOrder
(int discountOrder) void
setDiscountRanges
(Collection discountRanges) void
setExpirationDate
(String expirationDate) void
void
void
void
setIsActive
(boolean isActive) void
setIsTimesPerCustomer
(boolean isTimesPerCustomer) void
setItemsAppliesType
(String itemsAppliesType) void
setItemsAppliesValue
(String itemsAppliesValue) void
setMaxTimesUsed
(Integer maxTimesUsed) void
void
setOrderItem
(OrderItem orderItem) void
setOrderItemID
(Integer orderItemID) void
setOrderItems
(Collection orderItems) void
void
setRewardType
(String rewardType) void
setSkuDiscounts
(Collection skuDiscounts) void
setStartDate
(String startDate) void
setTimesUsed
(Integer timesUsed) void
setTotalAmount
(Double totalAmount) void
setTotalQuantity
(Integer totalQuantity) void
setTotalWeight
(Double totalWeight) void
setUsersAppliesType
(String usersAppliesType) void
setUsersAppliesValue
(String usersAppliesValue) 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:
-
discountID
private int discountID -
name
-
code
-
description
-
isActive
private boolean isActive -
usersAppliesType
-
usersAppliesValue
-
itemsAppliesType
-
itemsAppliesValue
-
cartItemsType
-
cartItemsValue
-
rewardType
-
reward
-
couponCode
-
startDate
-
expirationDate
-
timesUsed
-
maxTimesUsed
-
isTimesPerCustomer
private boolean isTimesPerCustomer -
orderItemID
-
orderItem
-
discountOrder
private int discountOrder -
extra1
-
extra2
-
extra3
-
skuDiscounts
-
discountRanges
-
orderItems
-
totalQuantity
-
totalAmount
-
totalWeight
-
discountInformation
-
-
Constructor Details
-
DiscountBean
public DiscountBean()
-
-
Method Details
-
getCouponCode
- Specified by:
getCouponCode
in interfaceDiscount
-
setCouponCode
- Specified by:
setCouponCode
in interfaceDiscount
-
getIsTimesPerCustomer
public boolean getIsTimesPerCustomer()- Specified by:
getIsTimesPerCustomer
in interfaceDiscount
-
setIsTimesPerCustomer
public void setIsTimesPerCustomer(boolean isTimesPerCustomer) - Specified by:
setIsTimesPerCustomer
in interfaceDiscount
-
getItemsAppliesType
- Specified by:
getItemsAppliesType
in interfaceDiscount
-
setItemsAppliesType
- Specified by:
setItemsAppliesType
in interfaceDiscount
-
getItemsAppliesValue
- Specified by:
getItemsAppliesValue
in interfaceDiscount
-
setItemsAppliesValue
- Specified by:
setItemsAppliesValue
in interfaceDiscount
-
getUsersAppliesType
- Specified by:
getUsersAppliesType
in interfaceDiscount
-
setUsersAppliesType
- Specified by:
setUsersAppliesType
in interfaceDiscount
-
getUsersAppliesValue
- Specified by:
getUsersAppliesValue
in interfaceDiscount
-
setUsersAppliesValue
- Specified by:
setUsersAppliesValue
in interfaceDiscount
-
getCartItemsType
- Specified by:
getCartItemsType
in interfaceDiscount
-
setCartItemsType
- Specified by:
setCartItemsType
in interfaceDiscount
-
getCartItemsValue
- Specified by:
getCartItemsValue
in interfaceDiscount
-
setCartItemsValue
- Specified by:
setCartItemsValue
in interfaceDiscount
-
getReward
-
setReward
-
getRewardType
- Specified by:
getRewardType
in interfaceDiscount
-
setRewardType
- Specified by:
setRewardType
in interfaceDiscount
-
setActive
public void setActive(boolean isActive) -
getCode
-
setCode
-
getDescription
- Specified by:
getDescription
in interfaceDiscount
-
setDescription
- Specified by:
setDescription
in interfaceDiscount
-
getDiscountID
public int getDiscountID()- Specified by:
getDiscountID
in interfaceDiscount
-
setDiscountID
public void setDiscountID(int discountID) - Specified by:
setDiscountID
in interfaceDiscount
-
getDiscountOrder
public int getDiscountOrder()- Specified by:
getDiscountOrder
in interfaceDiscount
-
setDiscountOrder
public void setDiscountOrder(int discountOrder) - Specified by:
setDiscountOrder
in interfaceDiscount
-
getExpirationDate
- Specified by:
getExpirationDate
in interfaceDiscount
-
setExpirationDate
- Specified by:
setExpirationDate
in interfaceDiscount
-
getExtra1
-
setExtra1
-
getExtra2
-
setExtra2
-
getExtra3
-
setExtra3
-
getIsActive
public boolean getIsActive()- Specified by:
getIsActive
in interfaceDiscount
-
setIsActive
public void setIsActive(boolean isActive) - Specified by:
setIsActive
in interfaceDiscount
-
getMaxTimesUsed
- Specified by:
getMaxTimesUsed
in interfaceDiscount
-
setMaxTimesUsed
- Specified by:
setMaxTimesUsed
in interfaceDiscount
-
getName
-
setName
-
getStartDate
- Specified by:
getStartDate
in interfaceDiscount
-
setStartDate
- Specified by:
setStartDate
in interfaceDiscount
-
getTimesUsed
- Specified by:
getTimesUsed
in interfaceDiscount
-
setTimesUsed
- Specified by:
setTimesUsed
in interfaceDiscount
-
getOrderItemID
- Specified by:
getOrderItemID
in interfaceDiscount
-
setOrderItemID
- Specified by:
setOrderItemID
in interfaceDiscount
-
getOrderItem
- Specified by:
getOrderItem
in interfaceDiscount
-
setOrderItem
- Specified by:
setOrderItem
in interfaceDiscount
-
getSkuDiscounts
- Specified by:
getSkuDiscounts
in interfaceDiscount
-
setSkuDiscounts
- Specified by:
setSkuDiscounts
in interfaceDiscount
-
getDiscountRanges
- Specified by:
getDiscountRanges
in interfaceDiscount
-
setDiscountRanges
- Specified by:
setDiscountRanges
in interfaceDiscount
-
getOrderItems
- Specified by:
getOrderItems
in interfaceDiscount
-
setOrderItems
- Specified by:
setOrderItems
in interfaceDiscount
-
getTotalQuantity
- Specified by:
getTotalQuantity
in interfaceDiscount
-
setTotalQuantity
- Specified by:
setTotalQuantity
in interfaceDiscount
-
getTotalAmount
- Specified by:
getTotalAmount
in interfaceDiscount
-
setTotalAmount
- Specified by:
setTotalAmount
in interfaceDiscount
-
getTotalWeight
- Specified by:
getTotalWeight
in interfaceDiscount
-
setTotalWeight
- Specified by:
setTotalWeight
in interfaceDiscount
-
getDiscountInformation
- Specified by:
getDiscountInformation
in interfaceDiscount
-
setDiscountInformation
- Specified by:
setDiscountInformation
in interfaceDiscount
-