com.liferay.portlet.shopping.model.impl
Class ShoppingCouponImpl

java.lang.Object
  extended bycom.liferay.portal.model.impl.BaseModelImpl
      extended bycom.liferay.portlet.shopping.model.impl.ShoppingCouponModelImpl
          extended bycom.liferay.portlet.shopping.model.impl.ShoppingCouponImpl
All Implemented Interfaces:
com.liferay.portal.model.BaseModel, java.lang.Cloneable, java.lang.Comparable, java.io.Serializable, com.liferay.portlet.shopping.model.ShoppingCoupon, com.liferay.portlet.shopping.model.ShoppingCouponModel

public class ShoppingCouponImpl
extends ShoppingCouponModelImpl
implements com.liferay.portlet.shopping.model.ShoppingCoupon

View Source

Author:
Brian Wing Shun Chan
See Also:
Serialized Form

Field Summary
static java.lang.String DISCOUNT_TYPE_ACTUAL
           
static java.lang.String DISCOUNT_TYPE_FREE_SHIPPING
           
static java.lang.String DISCOUNT_TYPE_PERCENTAGE
           
static java.lang.String DISCOUNT_TYPE_TAX_FREE
           
static java.lang.String[] DISCOUNT_TYPES
           
 
Fields inherited from class com.liferay.portlet.shopping.model.impl.ShoppingCouponModelImpl
LOCK_EXPIRATION_TIME, TABLE_COLUMNS, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, XSS_ALLOW_BY_MODEL, XSS_ALLOW_CODE, XSS_ALLOW_DESCRIPTION, XSS_ALLOW_DISCOUNTTYPE, XSS_ALLOW_LIMITCATEGORIES, XSS_ALLOW_LIMITSKUS, XSS_ALLOW_NAME, XSS_ALLOW_USERNAME
 
Fields inherited from class com.liferay.portal.model.impl.BaseModelImpl
XSS_ALLOW
 
Constructor Summary
ShoppingCouponImpl()
           
 
Method Summary
 boolean hasValidDateRange()
           
 boolean hasValidEndDate()
           
 boolean hasValidStartDate()
           
 
Methods inherited from class com.liferay.portlet.shopping.model.impl.ShoppingCouponModelImpl
clone, compareTo, equals, getActive, getCode, getCompanyId, getCouponId, getCreateDate, getDescription, getDiscount, getDiscountType, getEndDate, getGroupId, getLimitCategories, getLimitSkus, getMinOrder, getModifiedDate, getName, getPrimaryKey, getPrimaryKeyObj, getStartDate, getUserId, getUserName, hashCode, isActive, setActive, setCode, setCompanyId, setCouponId, setCreateDate, setDescription, setDiscount, setDiscountType, setEndDate, setGroupId, setLimitCategories, setLimitSkus, setMinOrder, setModifiedDate, setName, setPrimaryKey, setStartDate, setUserId, setUserName
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isNew, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.shopping.model.ShoppingCouponModel
getActive, getCode, getCompanyId, getCouponId, getCreateDate, getDescription, getDiscount, getDiscountType, getEndDate, getGroupId, getLimitCategories, getLimitSkus, getMinOrder, getModifiedDate, getName, getPrimaryKey, getStartDate, getUserId, getUserName, isActive, setActive, setCode, setCompanyId, setCouponId, setCreateDate, setDescription, setDiscount, setDiscountType, setEndDate, setGroupId, setLimitCategories, setLimitSkus, setMinOrder, setModifiedDate, setName, setPrimaryKey, setStartDate, setUserId, setUserName
 
Methods inherited from interface com.liferay.portal.model.BaseModel
clone, getPrimaryKeyObj, isNew, setNew
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

DISCOUNT_TYPES

public static final java.lang.String[] DISCOUNT_TYPES

DISCOUNT_TYPE_PERCENTAGE

public static final java.lang.String DISCOUNT_TYPE_PERCENTAGE
See Also:
Constant Field Values

DISCOUNT_TYPE_ACTUAL

public static final java.lang.String DISCOUNT_TYPE_ACTUAL
See Also:
Constant Field Values

DISCOUNT_TYPE_FREE_SHIPPING

public static final java.lang.String DISCOUNT_TYPE_FREE_SHIPPING
See Also:
Constant Field Values

DISCOUNT_TYPE_TAX_FREE

public static final java.lang.String DISCOUNT_TYPE_TAX_FREE
See Also:
Constant Field Values
Constructor Detail

ShoppingCouponImpl

public ShoppingCouponImpl()
Method Detail

hasValidStartDate

public boolean hasValidStartDate()
Specified by:
hasValidStartDate in interface com.liferay.portlet.shopping.model.ShoppingCoupon

hasValidEndDate

public boolean hasValidEndDate()
Specified by:
hasValidEndDate in interface com.liferay.portlet.shopping.model.ShoppingCoupon

hasValidDateRange

public boolean hasValidDateRange()
Specified by:
hasValidDateRange in interface com.liferay.portlet.shopping.model.ShoppingCoupon