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
Modifier and TypeFieldDescriptionprivate String
private String
private Double
private String
private String
private Discount
private Integer
private int
private String
private String
private String
private Double
private String
private String
private String
private Order
private int
private int
private OrderItem
private Integer
private Double
private String
private static final long
private Double
private String
private String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCode()
int
getFloor()
getName()
getOrder()
int
int
getTotal()
void
setCartItemsType
(String cartItemsType) void
setCartItemsValue
(String cartItemsValue) void
setCeiling
(Double ceiling) void
void
setCouponCode
(String couponCode) void
setDiscount
(Discount discount) void
setDiscountID
(Integer discountID) void
setDiscountOrder
(int discountOrder) void
void
void
void
void
setItemsAppliesType
(String itemsAppliesType) void
setItemsAppliesValue
(String itemsAppliesValue) void
void
void
setOrderDiscountID
(int orderDiscountID) void
setOrderID
(int orderID) void
setOrderItem
(OrderItem orderItem) void
setOrderItemID
(Integer orderItemID) void
void
setRewardType
(String rewardType) void
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:
-
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:
getDiscount
in interfaceOrderDiscount
-
setDiscount
- Specified by:
setDiscount
in interfaceOrderDiscount
-
getOrder
- Specified by:
getOrder
in interfaceOrderDiscount
-
setOrder
- Specified by:
setOrder
in interfaceOrderDiscount
-
getOrderItem
- Specified by:
getOrderItem
in interfaceOrderDiscount
-
setOrderItem
- Specified by:
setOrderItem
in interfaceOrderDiscount
-
getCode
- Specified by:
getCode
in interfaceOrderDiscount
-
setCode
- Specified by:
setCode
in interfaceOrderDiscount
-
getCouponCode
- Specified by:
getCouponCode
in interfaceOrderDiscount
-
setCouponCode
- Specified by:
setCouponCode
in interfaceOrderDiscount
-
getExtra1
- Specified by:
getExtra1
in interfaceOrderDiscount
-
setExtra1
- Specified by:
setExtra1
in interfaceOrderDiscount
-
getExtra2
- Specified by:
getExtra2
in interfaceOrderDiscount
-
setExtra2
- Specified by:
setExtra2
in interfaceOrderDiscount
-
getExtra3
- Specified by:
getExtra3
in interfaceOrderDiscount
-
setExtra3
- Specified by:
setExtra3
in interfaceOrderDiscount
-
getName
- Specified by:
getName
in interfaceOrderDiscount
-
setName
- Specified by:
setName
in interfaceOrderDiscount
-
getItemsAppliesType
- Specified by:
getItemsAppliesType
in interfaceOrderDiscount
-
setItemsAppliesType
- Specified by:
setItemsAppliesType
in interfaceOrderDiscount
-
getItemsAppliesValue
- Specified by:
getItemsAppliesValue
in interfaceOrderDiscount
-
setItemsAppliesValue
- Specified by:
setItemsAppliesValue
in interfaceOrderDiscount
-
getUsersAppliesType
- Specified by:
getUsersAppliesType
in interfaceOrderDiscount
-
setUsersAppliesType
- Specified by:
setUsersAppliesType
in interfaceOrderDiscount
-
getUsersAppliesValue
- Specified by:
getUsersAppliesValue
in interfaceOrderDiscount
-
setUsersAppliesValue
- Specified by:
setUsersAppliesValue
in interfaceOrderDiscount
-
getCartItemsType
- Specified by:
getCartItemsType
in interfaceOrderDiscount
-
setCartItemsType
- Specified by:
setCartItemsType
in interfaceOrderDiscount
-
getCartItemsValue
- Specified by:
getCartItemsValue
in interfaceOrderDiscount
-
setCartItemsValue
- Specified by:
setCartItemsValue
in interfaceOrderDiscount
-
getReward
- Specified by:
getReward
in interfaceOrderDiscount
-
setReward
- Specified by:
setReward
in interfaceOrderDiscount
-
getRewardType
- Specified by:
getRewardType
in interfaceOrderDiscount
-
setRewardType
- Specified by:
setRewardType
in interfaceOrderDiscount
-
getCeiling
- Specified by:
getCeiling
in interfaceOrderDiscount
-
setCeiling
- Specified by:
setCeiling
in interfaceOrderDiscount
-
getDiscountID
- Specified by:
getDiscountID
in interfaceOrderDiscount
-
setDiscountID
- Specified by:
setDiscountID
in interfaceOrderDiscount
-
getFloor
- Specified by:
getFloor
in interfaceOrderDiscount
-
setFloor
- Specified by:
setFloor
in interfaceOrderDiscount
-
getOrderDiscountID
public int getOrderDiscountID()- Specified by:
getOrderDiscountID
in interfaceOrderDiscount
-
setOrderDiscountID
public void setOrderDiscountID(int orderDiscountID) - Specified by:
setOrderDiscountID
in interfaceOrderDiscount
-
getOrderID
public int getOrderID()- Specified by:
getOrderID
in interfaceOrderDiscount
-
setOrderID
public void setOrderID(int orderID) - Specified by:
setOrderID
in interfaceOrderDiscount
-
getOrderItemID
- Specified by:
getOrderItemID
in interfaceOrderDiscount
-
setOrderItemID
- Specified by:
setOrderItemID
in interfaceOrderDiscount
-
getTotal
- Specified by:
getTotal
in interfaceOrderDiscount
-
setTotal
- Specified by:
setTotal
in interfaceOrderDiscount
-
getDiscountOrder
public int getDiscountOrder()- Specified by:
getDiscountOrder
in interfaceOrderDiscount
-
setDiscountOrder
public void setDiscountOrder(int discountOrder) - Specified by:
setDiscountOrder
in interfaceOrderDiscount
-