@ProviderType public class ShoppingCouponWrapper extends java.lang.Object implements ShoppingCoupon, com.liferay.portal.kernel.model.ModelWrapper<ShoppingCoupon>
This class is a wrapper for ShoppingCoupon.
ShoppingCoupon,
Serialized FormCOUPON_ID_ACCESSOR| Constructor and Description |
|---|
ShoppingCouponWrapper(ShoppingCoupon shoppingCoupon) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
int |
compareTo(ShoppingCoupon shoppingCoupon) |
boolean |
equals(java.lang.Object obj) |
boolean |
getActive()
Returns the active of this shopping coupon.
|
java.lang.String |
getCode()
Returns the code of this shopping coupon.
|
long |
getCompanyId()
Returns the company ID of this shopping coupon.
|
long |
getCouponId()
Returns the coupon ID of this shopping coupon.
|
java.util.Date |
getCreateDate()
Returns the create date of this shopping coupon.
|
java.lang.String |
getDescription()
Returns the description of this shopping coupon.
|
double |
getDiscount()
Returns the discount of this shopping coupon.
|
java.lang.String |
getDiscountType()
Returns the discount type of this shopping coupon.
|
java.util.Date |
getEndDate()
Returns the end date of this shopping coupon.
|
com.liferay.expando.kernel.model.ExpandoBridge |
getExpandoBridge() |
long |
getGroupId()
Returns the group ID of this shopping coupon.
|
java.lang.String |
getLimitCategories()
Returns the limit categories of this shopping coupon.
|
java.lang.String |
getLimitSkus()
Returns the limit skus of this shopping coupon.
|
double |
getMinOrder()
Returns the min order of this shopping coupon.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.util.Date |
getModifiedDate()
Returns the modified date of this shopping coupon.
|
java.lang.String |
getName()
Returns the name of this shopping coupon.
|
long |
getPrimaryKey()
Returns the primary key of this shopping coupon.
|
java.io.Serializable |
getPrimaryKeyObj() |
java.util.Date |
getStartDate()
Returns the start date of this shopping coupon.
|
long |
getUserId()
Returns the user ID of this shopping coupon.
|
java.lang.String |
getUserName()
Returns the user name of this shopping coupon.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this shopping coupon.
|
ShoppingCoupon |
getWrappedModel() |
int |
hashCode() |
boolean |
hasValidDateRange() |
boolean |
hasValidEndDate() |
boolean |
hasValidStartDate() |
boolean |
isActive()
Returns
true if this shopping coupon is active. |
boolean |
isCachedModel() |
boolean |
isEntityCacheEnabled() |
boolean |
isEscapedModel() |
boolean |
isFinderCacheEnabled() |
boolean |
isNew() |
void |
persist() |
void |
resetOriginalValues() |
void |
setActive(boolean active)
Sets whether this shopping coupon is active.
|
void |
setCachedModel(boolean cachedModel) |
void |
setCode(java.lang.String code)
Sets the code of this shopping coupon.
|
void |
setCompanyId(long companyId)
Sets the company ID of this shopping coupon.
|
void |
setCouponId(long couponId)
Sets the coupon ID of this shopping coupon.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this shopping coupon.
|
void |
setDescription(java.lang.String description)
Sets the description of this shopping coupon.
|
void |
setDiscount(double discount)
Sets the discount of this shopping coupon.
|
void |
setDiscountType(java.lang.String discountType)
Sets the discount type of this shopping coupon.
|
void |
setEndDate(java.util.Date endDate)
Sets the end date of this shopping coupon.
|
void |
setExpandoBridgeAttributes(com.liferay.portal.kernel.model.BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(com.liferay.expando.kernel.model.ExpandoBridge expandoBridge) |
void |
setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
setGroupId(long groupId)
Sets the group ID of this shopping coupon.
|
void |
setLimitCategories(java.lang.String limitCategories)
Sets the limit categories of this shopping coupon.
|
void |
setLimitSkus(java.lang.String limitSkus)
Sets the limit skus of this shopping coupon.
|
void |
setMinOrder(double minOrder)
Sets the min order of this shopping coupon.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this shopping coupon.
|
void |
setName(java.lang.String name)
Sets the name of this shopping coupon.
|
void |
setNew(boolean n) |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this shopping coupon.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj) |
void |
setStartDate(java.util.Date startDate)
Sets the start date of this shopping coupon.
|
void |
setUserId(long userId)
Sets the user ID of this shopping coupon.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this shopping coupon.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this shopping coupon.
|
com.liferay.portal.kernel.model.CacheModel<ShoppingCoupon> |
toCacheModel() |
ShoppingCoupon |
toEscapedModel() |
java.lang.String |
toString() |
ShoppingCoupon |
toUnescapedModel() |
java.lang.String |
toXmlString() |
public ShoppingCouponWrapper(ShoppingCoupon shoppingCoupon)
public java.lang.Class<?> getModelClass()
getModelClass in interface com.liferay.portal.kernel.model.ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface com.liferay.portal.kernel.model.ClassedModelpublic java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>public ShoppingCoupon toEscapedModel()
toEscapedModel in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>toEscapedModel in interface ShoppingCouponModelpublic ShoppingCoupon toUnescapedModel()
toUnescapedModel in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>toUnescapedModel in interface ShoppingCouponModelpublic boolean getActive()
getActive in interface ShoppingCouponModelpublic boolean hasValidDateRange()
hasValidDateRange in interface ShoppingCouponpublic boolean hasValidEndDate()
hasValidEndDate in interface ShoppingCouponpublic boolean hasValidStartDate()
hasValidStartDate in interface ShoppingCouponpublic boolean isActive()
true if this shopping coupon is active.isActive in interface ShoppingCouponModeltrue if this shopping coupon is active; false otherwisepublic boolean isCachedModel()
isCachedModel in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>isCachedModel in interface ShoppingCouponModelpublic boolean isEscapedModel()
isEscapedModel in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>isEscapedModel in interface ShoppingCouponModelpublic boolean isNew()
isNew in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>isNew in interface ShoppingCouponModelpublic com.liferay.expando.kernel.model.ExpandoBridge getExpandoBridge()
getExpandoBridge in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>getExpandoBridge in interface com.liferay.portal.kernel.model.ClassedModelgetExpandoBridge in interface ShoppingCouponModelpublic com.liferay.portal.kernel.model.CacheModel<ShoppingCoupon> toCacheModel()
toCacheModel in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>toCacheModel in interface ShoppingCouponModelpublic double getDiscount()
getDiscount in interface ShoppingCouponModelpublic double getMinOrder()
getMinOrder in interface ShoppingCouponModelpublic int compareTo(ShoppingCoupon shoppingCoupon)
compareTo in interface ShoppingCouponModelcompareTo in interface java.lang.Comparable<ShoppingCoupon>public int hashCode()
hashCode in interface ShoppingCouponModelhashCode in class java.lang.Objectpublic java.io.Serializable getPrimaryKeyObj()
getPrimaryKeyObj in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>getPrimaryKeyObj in interface com.liferay.portal.kernel.model.ClassedModelgetPrimaryKeyObj in interface ShoppingCouponModelpublic java.lang.Object clone()
clone in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>clone in interface ShoppingCouponModelclone in class java.lang.Objectpublic java.lang.String getCode()
getCode in interface ShoppingCouponModelpublic java.lang.String getDescription()
getDescription in interface ShoppingCouponModelpublic java.lang.String getDiscountType()
getDiscountType in interface ShoppingCouponModelpublic java.lang.String getLimitCategories()
getLimitCategories in interface ShoppingCouponModelpublic java.lang.String getLimitSkus()
getLimitSkus in interface ShoppingCouponModelpublic java.lang.String getName()
getName in interface ShoppingCouponModelpublic java.lang.String getUserName()
getUserName in interface com.liferay.portal.kernel.model.AuditedModelgetUserName in interface ShoppingCouponModelpublic java.lang.String getUserUuid()
getUserUuid in interface com.liferay.portal.kernel.model.AuditedModelgetUserUuid in interface ShoppingCouponModelpublic java.lang.String toString()
toString in interface ShoppingCouponModeltoString in class java.lang.Objectpublic java.lang.String toXmlString()
toXmlString in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>toXmlString in interface ShoppingCouponModelpublic java.util.Date getCreateDate()
getCreateDate in interface com.liferay.portal.kernel.model.AuditedModelgetCreateDate in interface ShoppingCouponModelpublic java.util.Date getEndDate()
getEndDate in interface ShoppingCouponModelpublic java.util.Date getModifiedDate()
getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelgetModifiedDate in interface ShoppingCouponModelpublic java.util.Date getStartDate()
getStartDate in interface ShoppingCouponModelpublic long getCompanyId()
getCompanyId in interface com.liferay.portal.kernel.model.AuditedModelgetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelgetCompanyId in interface ShoppingCouponModelpublic long getCouponId()
getCouponId in interface ShoppingCouponModelpublic long getGroupId()
getGroupId in interface com.liferay.portal.kernel.model.GroupedModelgetGroupId in interface ShoppingCouponModelpublic long getPrimaryKey()
getPrimaryKey in interface ShoppingCouponModelpublic long getUserId()
getUserId in interface com.liferay.portal.kernel.model.AuditedModelgetUserId in interface ShoppingCouponModelpublic void persist()
persist in interface com.liferay.portal.kernel.model.PersistedModelpublic void setActive(boolean active)
setActive in interface ShoppingCouponModelactive - the active of this shopping couponpublic void setCachedModel(boolean cachedModel)
setCachedModel in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>setCachedModel in interface ShoppingCouponModelpublic void setCode(java.lang.String code)
setCode in interface ShoppingCouponModelcode - the code of this shopping couponpublic void setCompanyId(long companyId)
setCompanyId in interface com.liferay.portal.kernel.model.AuditedModelsetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelsetCompanyId in interface ShoppingCouponModelcompanyId - the company ID of this shopping couponpublic void setCouponId(long couponId)
setCouponId in interface ShoppingCouponModelcouponId - the coupon ID of this shopping couponpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface com.liferay.portal.kernel.model.AuditedModelsetCreateDate in interface ShoppingCouponModelcreateDate - the create date of this shopping couponpublic void setDescription(java.lang.String description)
setDescription in interface ShoppingCouponModeldescription - the description of this shopping couponpublic void setDiscount(double discount)
setDiscount in interface ShoppingCouponModeldiscount - the discount of this shopping couponpublic void setDiscountType(java.lang.String discountType)
setDiscountType in interface ShoppingCouponModeldiscountType - the discount type of this shopping couponpublic void setEndDate(java.util.Date endDate)
setEndDate in interface ShoppingCouponModelendDate - the end date of this shopping couponpublic void setExpandoBridgeAttributes(com.liferay.expando.kernel.model.ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>setExpandoBridgeAttributes in interface ShoppingCouponModelpublic void setExpandoBridgeAttributes(com.liferay.portal.kernel.model.BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>setExpandoBridgeAttributes in interface ShoppingCouponModelpublic void setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext)
setExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>setExpandoBridgeAttributes in interface ShoppingCouponModelpublic void setGroupId(long groupId)
setGroupId in interface com.liferay.portal.kernel.model.GroupedModelsetGroupId in interface ShoppingCouponModelgroupId - the group ID of this shopping couponpublic void setLimitCategories(java.lang.String limitCategories)
setLimitCategories in interface ShoppingCouponModellimitCategories - the limit categories of this shopping couponpublic void setLimitSkus(java.lang.String limitSkus)
setLimitSkus in interface ShoppingCouponModellimitSkus - the limit skus of this shopping couponpublic void setMinOrder(double minOrder)
setMinOrder in interface ShoppingCouponModelminOrder - the min order of this shopping couponpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelsetModifiedDate in interface ShoppingCouponModelmodifiedDate - the modified date of this shopping couponpublic void setName(java.lang.String name)
setName in interface ShoppingCouponModelname - the name of this shopping couponpublic void setNew(boolean n)
setNew in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>setNew in interface ShoppingCouponModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ShoppingCouponModelprimaryKey - the primary key of this shopping couponpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
setPrimaryKeyObj in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>setPrimaryKeyObj in interface com.liferay.portal.kernel.model.ClassedModelsetPrimaryKeyObj in interface ShoppingCouponModelpublic void setStartDate(java.util.Date startDate)
setStartDate in interface ShoppingCouponModelstartDate - the start date of this shopping couponpublic void setUserId(long userId)
setUserId in interface com.liferay.portal.kernel.model.AuditedModelsetUserId in interface ShoppingCouponModeluserId - the user ID of this shopping couponpublic void setUserName(java.lang.String userName)
setUserName in interface com.liferay.portal.kernel.model.AuditedModelsetUserName in interface ShoppingCouponModeluserName - the user name of this shopping couponpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface com.liferay.portal.kernel.model.AuditedModelsetUserUuid in interface ShoppingCouponModeluserUuid - the user uuid of this shopping couponpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic ShoppingCoupon getWrappedModel()
getWrappedModel in interface com.liferay.portal.kernel.model.ModelWrapper<ShoppingCoupon>public boolean isEntityCacheEnabled()
isEntityCacheEnabled in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>public boolean isFinderCacheEnabled()
isFinderCacheEnabled in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>public void resetOriginalValues()
resetOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCoupon>