Class ShippingRuleBean
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.shipping.ShippingRuleBean
- All Implemented Interfaces:
BusinessObject
,ShippingRule
,Serializable
Object representing a discount within the system.
ShippingRuleBean
is the default implementation of the ShippingRule
interface for
the application.
The database stores discounts in the sscShippingRule
table, and
this interface can be used to represent a single row of that table. The
Hibernate configuration file ShippingRuleBean.hbm.xml
maps that
table's columns to the properties in this object.
- Author:
- Jason McWilliams
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private String
private String
private String
private String
private boolean
private String
private int
private String
private static final long
private int
private Collection
private Collection
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCode()
boolean
getName()
int
int
void
void
setDescription
(String description) void
void
void
void
setIsActive
(boolean isActive) void
void
setRuleOrder
(int ruleOrder) void
setRuleType
(String ruleType) void
setShippingRuleID
(int shippingRuleID) void
setShippingRuleRanges
(Collection shippingRuleRanges) void
setSkuShippingRules
(Collection skuShippingRules) 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:
-
shippingRuleID
private int shippingRuleID -
code
-
name
-
description
-
isActive
private boolean isActive -
ruleType
-
ruleOrder
private int ruleOrder -
extra1
-
extra2
-
extra3
-
skuShippingRules
-
shippingRuleRanges
-
-
Constructor Details
-
ShippingRuleBean
public ShippingRuleBean()
-
-
Method Details
-
getShippingRuleID
public int getShippingRuleID()- Specified by:
getShippingRuleID
in interfaceShippingRule
-
setShippingRuleID
public void setShippingRuleID(int shippingRuleID) - Specified by:
setShippingRuleID
in interfaceShippingRule
-
getCode
- Specified by:
getCode
in interfaceShippingRule
-
setCode
- Specified by:
setCode
in interfaceShippingRule
-
getName
- Specified by:
getName
in interfaceShippingRule
-
setName
- Specified by:
setName
in interfaceShippingRule
-
getDescription
- Specified by:
getDescription
in interfaceShippingRule
-
setDescription
- Specified by:
setDescription
in interfaceShippingRule
-
getIsActive
public boolean getIsActive()- Specified by:
getIsActive
in interfaceShippingRule
-
setIsActive
public void setIsActive(boolean isActive) - Specified by:
setIsActive
in interfaceShippingRule
-
getRuleType
- Specified by:
getRuleType
in interfaceShippingRule
-
setRuleType
- Specified by:
setRuleType
in interfaceShippingRule
-
getRuleOrder
public int getRuleOrder()- Specified by:
getRuleOrder
in interfaceShippingRule
-
setRuleOrder
public void setRuleOrder(int ruleOrder) - Specified by:
setRuleOrder
in interfaceShippingRule
-
getExtra1
- Specified by:
getExtra1
in interfaceShippingRule
-
setExtra1
- Specified by:
setExtra1
in interfaceShippingRule
-
getExtra2
- Specified by:
getExtra2
in interfaceShippingRule
-
setExtra2
- Specified by:
setExtra2
in interfaceShippingRule
-
getExtra3
- Specified by:
getExtra3
in interfaceShippingRule
-
setExtra3
- Specified by:
setExtra3
in interfaceShippingRule
-
getSkuShippingRules
- Specified by:
getSkuShippingRules
in interfaceShippingRule
-
setSkuShippingRules
- Specified by:
setSkuShippingRules
in interfaceShippingRule
-
getShippingRuleRanges
- Specified by:
getShippingRuleRanges
in interfaceShippingRule
-
setShippingRuleRanges
- Specified by:
setShippingRuleRanges
in interfaceShippingRule
-