com.softslate.commerce.businessobjects.product
Class DiscountBean

java.lang.Object
  extended by com.softslate.commerce.businessobjects.core.BaseBusinessObject
      extended by 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

Field Summary
private  java.lang.String cartItemsType
           
private  java.lang.String cartItemsValue
           
private  java.lang.String code
           
private  java.lang.String couponCode
           
private  java.lang.String description
           
private  int discountID
           
private  java.util.Map discountInformation
           
private  int discountOrder
           
private  java.util.Collection discountRanges
           
private  java.lang.String expirationDate
           
private  java.lang.String extra1
           
private  java.lang.String extra2
           
private  java.lang.String extra3
           
private  boolean isActive
           
private  boolean isTimesPerCustomer
           
private  java.lang.String itemsAppliesType
           
private  java.lang.String itemsAppliesValue
           
private  java.lang.Integer maxTimesUsed
           
private  java.lang.String name
           
private  java.util.Collection orderItems
           
private  java.lang.Double reward
           
private  java.lang.String rewardType
           
private static long serialVersionUID
           
private  java.util.Collection skuDiscounts
           
private  java.lang.String startDate
           
private  java.lang.Integer timesUsed
           
private  java.lang.Double totalAmount
           
private  java.lang.Integer totalQuantity
           
private  java.lang.Double totalWeight
           
private  java.lang.String usersAppliesType
           
private  java.lang.String usersAppliesValue
           
 
Constructor Summary
DiscountBean()
           
 
Method Summary
 java.lang.String getCartItemsType()
           
 java.lang.String getCartItemsValue()
           
 java.lang.String getCode()
           
 java.lang.String getCouponCode()
           
 java.lang.String getDescription()
           
 int getDiscountID()
           
 java.util.Map getDiscountInformation()
           
 int getDiscountOrder()
           
 java.util.Collection getDiscountRanges()
           
 java.lang.String getExpirationDate()
           
 java.lang.String getExtra1()
           
 java.lang.String getExtra2()
           
 java.lang.String getExtra3()
           
 boolean getIsActive()
           
 boolean getIsTimesPerCustomer()
           
 java.lang.String getItemsAppliesType()
           
 java.lang.String getItemsAppliesValue()
           
 java.lang.Integer getMaxTimesUsed()
           
 java.lang.String getName()
           
 java.util.Collection getOrderItems()
           
 java.lang.Double getReward()
           
 java.lang.String getRewardType()
           
 java.util.Collection getSkuDiscounts()
           
 java.lang.String getStartDate()
           
 java.lang.Integer getTimesUsed()
           
 java.lang.Double getTotalAmount()
           
 java.lang.Integer getTotalQuantity()
           
 java.lang.Double getTotalWeight()
           
 java.lang.String getUsersAppliesType()
           
 java.lang.String getUsersAppliesValue()
           
 void setActive(boolean isActive)
           
 void setCartItemsType(java.lang.String cartItemsType)
           
 void setCartItemsValue(java.lang.String cartItemsValue)
           
 void setCode(java.lang.String code)
           
 void setCouponCode(java.lang.String couponCode)
           
 void setDescription(java.lang.String description)
           
 void setDiscountID(int discountID)
           
 void setDiscountInformation(java.util.Map discountInformation)
           
 void setDiscountOrder(int discountOrder)
           
 void setDiscountRanges(java.util.Collection discountRanges)
           
 void setExpirationDate(java.lang.String expirationDate)
           
 void setExtra1(java.lang.String extra1)
           
 void setExtra2(java.lang.String extra2)
           
 void setExtra3(java.lang.String extra3)
           
 void setIsActive(boolean isActive)
           
 void setIsTimesPerCustomer(boolean isTimesPerCustomer)
           
 void setItemsAppliesType(java.lang.String itemsAppliesType)
           
 void setItemsAppliesValue(java.lang.String itemsAppliesValue)
           
 void setMaxTimesUsed(java.lang.Integer maxTimesUsed)
           
 void setName(java.lang.String name)
           
 void setOrderItems(java.util.Collection orderItems)
           
 void setReward(java.lang.Double reward)
           
 void setRewardType(java.lang.String rewardType)
           
 void setSkuDiscounts(java.util.Collection skuDiscounts)
           
 void setStartDate(java.lang.String startDate)
           
 void setTimesUsed(java.lang.Integer timesUsed)
           
 void setTotalAmount(java.lang.Double totalAmount)
           
 void setTotalQuantity(java.lang.Integer totalQuantity)
           
 void setTotalWeight(java.lang.Double totalWeight)
           
 void setUsersAppliesType(java.lang.String usersAppliesType)
           
 void setUsersAppliesValue(java.lang.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 Detail

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

cartItemsType

private java.lang.String cartItemsType

cartItemsValue

private java.lang.String cartItemsValue

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

orderItems

private java.util.Collection orderItems

totalQuantity

private java.lang.Integer totalQuantity

totalAmount

private java.lang.Double totalAmount

totalWeight

private java.lang.Double totalWeight

discountInformation

private java.util.Map discountInformation
Constructor Detail

DiscountBean

public DiscountBean()
Method Detail

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

getCartItemsType

public java.lang.String getCartItemsType()
Specified by:
getCartItemsType in interface Discount

setCartItemsType

public void setCartItemsType(java.lang.String cartItemsType)
Specified by:
setCartItemsType in interface Discount

getCartItemsValue

public java.lang.String getCartItemsValue()
Specified by:
getCartItemsValue in interface Discount

setCartItemsValue

public void setCartItemsValue(java.lang.String cartItemsValue)
Specified by:
setCartItemsValue 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

getOrderItems

public java.util.Collection getOrderItems()
Specified by:
getOrderItems in interface Discount

setOrderItems

public void setOrderItems(java.util.Collection orderItems)
Specified by:
setOrderItems in interface Discount

getTotalQuantity

public java.lang.Integer getTotalQuantity()
Specified by:
getTotalQuantity in interface Discount

setTotalQuantity

public void setTotalQuantity(java.lang.Integer totalQuantity)
Specified by:
setTotalQuantity in interface Discount

getTotalAmount

public java.lang.Double getTotalAmount()
Specified by:
getTotalAmount in interface Discount

setTotalAmount

public void setTotalAmount(java.lang.Double totalAmount)
Specified by:
setTotalAmount in interface Discount

getTotalWeight

public java.lang.Double getTotalWeight()
Specified by:
getTotalWeight in interface Discount

setTotalWeight

public void setTotalWeight(java.lang.Double totalWeight)
Specified by:
setTotalWeight in interface Discount

getDiscountInformation

public java.util.Map getDiscountInformation()
Specified by:
getDiscountInformation in interface Discount

setDiscountInformation

public void setDiscountInformation(java.util.Map discountInformation)
Specified by:
setDiscountInformation in interface Discount


Copyright © SoftSlate, LLC 2003–2005