Class OrderDiscountBean
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.order.OrderDiscountBean
- All Implemented Interfaces:
BusinessObject,OrderDiscount,Serializable
Object representing a order discount within the system.
OrderDiscountBean is the default implementation of the
OrderDiscount interface for the application.
The database stores order discounts in the sscOrderDiscount
table, and this interface can be used to represent a single row of that
table. The Hibernate configuration file OrderDiscount.hbm.xml
maps that table's columns to the properties in this object.
- Author:
- David Tobey
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate Doubleprivate Stringprivate Stringprivate Discountprivate Integerprivate intprivate Stringprivate Stringprivate Stringprivate Doubleprivate Stringprivate Stringprivate Stringprivate Orderprivate intprivate intprivate OrderItemprivate Integerprivate Doubleprivate Stringprivate static final longprivate Doubleprivate Stringprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()intgetFloor()getName()getOrder()intintgetTotal()voidsetCartItemsType(String cartItemsType) voidsetCartItemsValue(String cartItemsValue) voidsetCeiling(Double ceiling) voidvoidsetCouponCode(String couponCode) voidsetDiscount(Discount discount) voidsetDiscountID(Integer discountID) voidsetDiscountOrder(int discountOrder) voidvoidvoidvoidvoidsetItemsAppliesType(String itemsAppliesType) voidsetItemsAppliesValue(String itemsAppliesValue) voidvoidvoidsetOrderDiscountID(int orderDiscountID) voidsetOrderID(int orderID) voidsetOrderItem(OrderItem orderItem) voidsetOrderItemID(Integer orderItemID) voidvoidsetRewardType(String rewardType) voidvoidsetUsersAppliesType(String usersAppliesType) voidsetUsersAppliesValue(String usersAppliesValue) 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:
-
orderDiscountID
private int orderDiscountID -
orderID
private int orderID -
orderItemID
-
total
-
discountID
-
code
-
name
-
usersAppliesType
-
usersAppliesValue
-
itemsAppliesType
-
itemsAppliesValue
-
cartItemsType
-
cartItemsValue
-
rewardType
-
reward
-
couponCode
-
floor
-
ceiling
-
extra1
-
extra2
-
extra3
-
discountOrder
private int discountOrder -
order
-
orderItem
-
discount
-
-
Constructor Details
-
OrderDiscountBean
public OrderDiscountBean()
-
-
Method Details
-
getDiscount
- Specified by:
getDiscountin interfaceOrderDiscount
-
setDiscount
- Specified by:
setDiscountin interfaceOrderDiscount
-
getOrder
- Specified by:
getOrderin interfaceOrderDiscount
-
setOrder
- Specified by:
setOrderin interfaceOrderDiscount
-
getOrderItem
- Specified by:
getOrderItemin interfaceOrderDiscount
-
setOrderItem
- Specified by:
setOrderItemin interfaceOrderDiscount
-
getCode
- Specified by:
getCodein interfaceOrderDiscount
-
setCode
- Specified by:
setCodein interfaceOrderDiscount
-
getCouponCode
- Specified by:
getCouponCodein interfaceOrderDiscount
-
setCouponCode
- Specified by:
setCouponCodein interfaceOrderDiscount
-
getExtra1
- Specified by:
getExtra1in interfaceOrderDiscount
-
setExtra1
- Specified by:
setExtra1in interfaceOrderDiscount
-
getExtra2
- Specified by:
getExtra2in interfaceOrderDiscount
-
setExtra2
- Specified by:
setExtra2in interfaceOrderDiscount
-
getExtra3
- Specified by:
getExtra3in interfaceOrderDiscount
-
setExtra3
- Specified by:
setExtra3in interfaceOrderDiscount
-
getName
- Specified by:
getNamein interfaceOrderDiscount
-
setName
- Specified by:
setNamein interfaceOrderDiscount
-
getItemsAppliesType
- Specified by:
getItemsAppliesTypein interfaceOrderDiscount
-
setItemsAppliesType
- Specified by:
setItemsAppliesTypein interfaceOrderDiscount
-
getItemsAppliesValue
- Specified by:
getItemsAppliesValuein interfaceOrderDiscount
-
setItemsAppliesValue
- Specified by:
setItemsAppliesValuein interfaceOrderDiscount
-
getUsersAppliesType
- Specified by:
getUsersAppliesTypein interfaceOrderDiscount
-
setUsersAppliesType
- Specified by:
setUsersAppliesTypein interfaceOrderDiscount
-
getUsersAppliesValue
- Specified by:
getUsersAppliesValuein interfaceOrderDiscount
-
setUsersAppliesValue
- Specified by:
setUsersAppliesValuein interfaceOrderDiscount
-
getCartItemsType
- Specified by:
getCartItemsTypein interfaceOrderDiscount
-
setCartItemsType
- Specified by:
setCartItemsTypein interfaceOrderDiscount
-
getCartItemsValue
- Specified by:
getCartItemsValuein interfaceOrderDiscount
-
setCartItemsValue
- Specified by:
setCartItemsValuein interfaceOrderDiscount
-
getReward
- Specified by:
getRewardin interfaceOrderDiscount
-
setReward
- Specified by:
setRewardin interfaceOrderDiscount
-
getRewardType
- Specified by:
getRewardTypein interfaceOrderDiscount
-
setRewardType
- Specified by:
setRewardTypein interfaceOrderDiscount
-
getCeiling
- Specified by:
getCeilingin interfaceOrderDiscount
-
setCeiling
- Specified by:
setCeilingin interfaceOrderDiscount
-
getDiscountID
- Specified by:
getDiscountIDin interfaceOrderDiscount
-
setDiscountID
- Specified by:
setDiscountIDin interfaceOrderDiscount
-
getFloor
- Specified by:
getFloorin interfaceOrderDiscount
-
setFloor
- Specified by:
setFloorin interfaceOrderDiscount
-
getOrderDiscountID
public int getOrderDiscountID()- Specified by:
getOrderDiscountIDin interfaceOrderDiscount
-
setOrderDiscountID
public void setOrderDiscountID(int orderDiscountID) - Specified by:
setOrderDiscountIDin interfaceOrderDiscount
-
getOrderID
public int getOrderID()- Specified by:
getOrderIDin interfaceOrderDiscount
-
setOrderID
public void setOrderID(int orderID) - Specified by:
setOrderIDin interfaceOrderDiscount
-
getOrderItemID
- Specified by:
getOrderItemIDin interfaceOrderDiscount
-
setOrderItemID
- Specified by:
setOrderItemIDin interfaceOrderDiscount
-
getTotal
- Specified by:
getTotalin interfaceOrderDiscount
-
setTotal
- Specified by:
setTotalin interfaceOrderDiscount
-
getDiscountOrder
public int getDiscountOrder()- Specified by:
getDiscountOrderin interfaceOrderDiscount
-
setDiscountOrder
public void setDiscountOrder(int discountOrder) - Specified by:
setDiscountOrderin interfaceOrderDiscount
-