com.softslate.commerce.businessobjects.product
Class DiscountRangeBean

java.lang.Object
  extended by com.softslate.commerce.businessobjects.core.BaseBusinessObject
      extended by com.softslate.commerce.businessobjects.product.DiscountRangeBean
All Implemented Interfaces:
BusinessObject, DiscountRange, java.io.Serializable

public class DiscountRangeBean
extends BaseBusinessObject
implements DiscountRange, java.io.Serializable

Object representing a discount range within the system. DiscountRangeBean is the default implementation of the DiscountRange interface for the application.

The database stores discount ranges in the sscDiscountRange table, and this interface can be used to represent a single row of that table. The Hibernate configuration file DiscountRangeBean.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.Double ceiling
           
private  Discount discount
           
private  int discountID
           
private  int discountRangeID
           
private  java.lang.Double floor
           
private  boolean isActive
           
private  java.lang.Double reward
           
private  java.lang.String rewardType
           
private static long serialVersionUID
           
 
Constructor Summary
DiscountRangeBean()
           
 
Method Summary
 java.lang.Double getCeiling()
           
 Discount getDiscount()
           
 int getDiscountID()
           
 int getDiscountRangeID()
           
 java.lang.Double getFloor()
           
 boolean getIsActive()
           
 java.lang.Double getReward()
           
 java.lang.String getRewardType()
           
 void setCeiling(java.lang.Double ceiling)
           
 void setDiscount(Discount discount)
           
 void setDiscountID(int discountID)
           
 void setDiscountRangeID(int discountRangeID)
           
 void setFloor(java.lang.Double floor)
           
 void setIsActive(boolean isActive)
           
 void setReward(java.lang.Double reward)
           
 void setRewardType(java.lang.String rewardType)
           
 
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

discountRangeID

private int discountRangeID

discountID

private int discountID

discount

private Discount discount

rewardType

private java.lang.String rewardType

reward

private java.lang.Double reward

floor

private java.lang.Double floor

ceiling

private java.lang.Double ceiling

isActive

private boolean isActive
Constructor Detail

DiscountRangeBean

public DiscountRangeBean()
Method Detail

getCeiling

public java.lang.Double getCeiling()
Specified by:
getCeiling in interface DiscountRange

setCeiling

public void setCeiling(java.lang.Double ceiling)
Specified by:
setCeiling in interface DiscountRange

getDiscount

public Discount getDiscount()
Specified by:
getDiscount in interface DiscountRange

setDiscount

public void setDiscount(Discount discount)
Specified by:
setDiscount in interface DiscountRange

getDiscountID

public int getDiscountID()
Specified by:
getDiscountID in interface DiscountRange

setDiscountID

public void setDiscountID(int discountID)
Specified by:
setDiscountID in interface DiscountRange

getDiscountRangeID

public int getDiscountRangeID()
Specified by:
getDiscountRangeID in interface DiscountRange

setDiscountRangeID

public void setDiscountRangeID(int discountRangeID)
Specified by:
setDiscountRangeID in interface DiscountRange

getFloor

public java.lang.Double getFloor()
Specified by:
getFloor in interface DiscountRange

setFloor

public void setFloor(java.lang.Double floor)
Specified by:
setFloor in interface DiscountRange

getIsActive

public boolean getIsActive()
Specified by:
getIsActive in interface DiscountRange

setIsActive

public void setIsActive(boolean isActive)
Specified by:
setIsActive in interface DiscountRange

getReward

public java.lang.Double getReward()
Specified by:
getReward in interface DiscountRange

setReward

public void setReward(java.lang.Double reward)
Specified by:
setReward in interface DiscountRange

getRewardType

public java.lang.String getRewardType()
Specified by:
getRewardType in interface DiscountRange

setRewardType

public void setRewardType(java.lang.String rewardType)
Specified by:
setRewardType in interface DiscountRange


Copyright ? SoftSlate, LLC 2003?2005