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

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

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
CACHE_ENABLED, DATA_SOURCE, LOCK_EXPIRATION_TIME, SESSION_FACTORY, TABLE_COLUMNS, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER
 
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, getExpandoBridge, 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, toEscapedModel, toModel, toModels
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isEscapedModel, isNew, setEscapedModel, 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, toEscapedModel
 
Methods inherited from interface com.liferay.portal.model.BaseModel
clone, getExpandoBridge, getPrimaryKeyObj, isEscapedModel, isNew, setEscapedModel, 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