@ProviderType public interface CommerceDiscountModel extends com.liferay.portal.kernel.model.BaseModel<CommerceDiscount>, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.ShardedModel, com.liferay.portal.kernel.model.StagedAuditedModel, com.liferay.portal.kernel.model.WorkflowedModel
This interface and its corresponding implementation com.liferay.commerce.discount.model.impl.CommerceDiscountModelImpl
exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in com.liferay.commerce.discount.model.impl.CommerceDiscountImpl
.
CommerceDiscount
Modifier and Type | Method and Description |
---|---|
CommerceDiscount |
cloneWithOriginalValues() |
boolean |
getActive()
Returns the active of this commerce discount.
|
long |
getCommerceDiscountId()
Returns the commerce discount ID of this commerce discount.
|
long |
getCompanyId()
Returns the company ID of this commerce discount.
|
java.lang.String |
getCouponCode()
Returns the coupon code of this commerce discount.
|
java.util.Date |
getCreateDate()
Returns the create date of this commerce discount.
|
java.util.Date |
getDisplayDate()
Returns the display date of this commerce discount.
|
java.util.Date |
getExpirationDate()
Returns the expiration date of this commerce discount.
|
java.lang.String |
getExternalReferenceCode()
Returns the external reference code of this commerce discount.
|
java.util.Date |
getLastPublishDate()
Returns the last publish date of this commerce discount.
|
java.lang.String |
getLevel()
Returns the level of this commerce discount.
|
java.math.BigDecimal |
getLevel1()
Returns the level1 of this commerce discount.
|
java.math.BigDecimal |
getLevel2()
Returns the level2 of this commerce discount.
|
java.math.BigDecimal |
getLevel3()
Returns the level3 of this commerce discount.
|
java.math.BigDecimal |
getLevel4()
Returns the level4 of this commerce discount.
|
int |
getLimitationTimes()
Returns the limitation times of this commerce discount.
|
int |
getLimitationTimesPerAccount()
Returns the limitation times per account of this commerce discount.
|
java.lang.String |
getLimitationType()
Returns the limitation type of this commerce discount.
|
java.math.BigDecimal |
getMaximumDiscountAmount()
Returns the maximum discount amount of this commerce discount.
|
java.util.Date |
getModifiedDate()
Returns the modified date of this commerce discount.
|
long |
getMvccVersion()
Returns the mvcc version of this commerce discount.
|
int |
getNumberOfUse()
Returns the number of use of this commerce discount.
|
long |
getPrimaryKey()
Returns the primary key of this commerce discount.
|
boolean |
getRulesConjunction()
Returns the rules conjunction of this commerce discount.
|
int |
getStatus()
Returns the status of this commerce discount.
|
long |
getStatusByUserId()
Returns the status by user ID of this commerce discount.
|
java.lang.String |
getStatusByUserName()
Returns the status by user name of this commerce discount.
|
java.lang.String |
getStatusByUserUuid()
Returns the status by user uuid of this commerce discount.
|
java.util.Date |
getStatusDate()
Returns the status date of this commerce discount.
|
java.lang.String |
getTarget()
Returns the target of this commerce discount.
|
java.lang.String |
getTitle()
Returns the title of this commerce discount.
|
boolean |
getUseCouponCode()
Returns the use coupon code of this commerce discount.
|
boolean |
getUsePercentage()
Returns the use percentage of this commerce discount.
|
long |
getUserId()
Returns the user ID of this commerce discount.
|
java.lang.String |
getUserName()
Returns the user name of this commerce discount.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this commerce discount.
|
java.lang.String |
getUuid()
Returns the uuid of this commerce discount.
|
boolean |
isActive()
Returns
true if this commerce discount is active. |
boolean |
isApproved()
Returns
true if this commerce discount is approved. |
boolean |
isDenied()
Returns
true if this commerce discount is denied. |
boolean |
isDraft()
Returns
true if this commerce discount is a draft. |
boolean |
isExpired()
Returns
true if this commerce discount is expired. |
boolean |
isInactive()
Returns
true if this commerce discount is inactive. |
boolean |
isIncomplete()
Returns
true if this commerce discount is incomplete. |
boolean |
isPending()
Returns
true if this commerce discount is pending. |
boolean |
isRulesConjunction()
Returns
true if this commerce discount is rules conjunction. |
boolean |
isScheduled()
Returns
true if this commerce discount is scheduled. |
boolean |
isUseCouponCode()
Returns
true if this commerce discount is use coupon code. |
boolean |
isUsePercentage()
Returns
true if this commerce discount is use percentage. |
void |
setActive(boolean active)
Sets whether this commerce discount is active.
|
void |
setCommerceDiscountId(long commerceDiscountId)
Sets the commerce discount ID of this commerce discount.
|
void |
setCompanyId(long companyId)
Sets the company ID of this commerce discount.
|
void |
setCouponCode(java.lang.String couponCode)
Sets the coupon code of this commerce discount.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this commerce discount.
|
void |
setDisplayDate(java.util.Date displayDate)
Sets the display date of this commerce discount.
|
void |
setExpirationDate(java.util.Date expirationDate)
Sets the expiration date of this commerce discount.
|
void |
setExternalReferenceCode(java.lang.String externalReferenceCode)
Sets the external reference code of this commerce discount.
|
void |
setLastPublishDate(java.util.Date lastPublishDate)
Sets the last publish date of this commerce discount.
|
void |
setLevel(java.lang.String level)
Sets the level of this commerce discount.
|
void |
setLevel1(java.math.BigDecimal level1)
Sets the level1 of this commerce discount.
|
void |
setLevel2(java.math.BigDecimal level2)
Sets the level2 of this commerce discount.
|
void |
setLevel3(java.math.BigDecimal level3)
Sets the level3 of this commerce discount.
|
void |
setLevel4(java.math.BigDecimal level4)
Sets the level4 of this commerce discount.
|
void |
setLimitationTimes(int limitationTimes)
Sets the limitation times of this commerce discount.
|
void |
setLimitationTimesPerAccount(int limitationTimesPerAccount)
Sets the limitation times per account of this commerce discount.
|
void |
setLimitationType(java.lang.String limitationType)
Sets the limitation type of this commerce discount.
|
void |
setMaximumDiscountAmount(java.math.BigDecimal maximumDiscountAmount)
Sets the maximum discount amount of this commerce discount.
|
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this commerce discount.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this commerce discount.
|
void |
setNumberOfUse(int numberOfUse)
Sets the number of use of this commerce discount.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this commerce discount.
|
void |
setRulesConjunction(boolean rulesConjunction)
Sets whether this commerce discount is rules conjunction.
|
void |
setStatus(int status)
Sets the status of this commerce discount.
|
void |
setStatusByUserId(long statusByUserId)
Sets the status by user ID of this commerce discount.
|
void |
setStatusByUserName(java.lang.String statusByUserName)
Sets the status by user name of this commerce discount.
|
void |
setStatusByUserUuid(java.lang.String statusByUserUuid)
Sets the status by user uuid of this commerce discount.
|
void |
setStatusDate(java.util.Date statusDate)
Sets the status date of this commerce discount.
|
void |
setTarget(java.lang.String target)
Sets the target of this commerce discount.
|
void |
setTitle(java.lang.String title)
Sets the title of this commerce discount.
|
void |
setUseCouponCode(boolean useCouponCode)
Sets whether this commerce discount is use coupon code.
|
void |
setUsePercentage(boolean usePercentage)
Sets whether this commerce discount is use percentage.
|
void |
setUserId(long userId)
Sets the user ID of this commerce discount.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this commerce discount.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this commerce discount.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this commerce discount.
|
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
long getPrimaryKey()
void setPrimaryKey(long primaryKey)
primaryKey
- the primary key of this commerce discountlong getMvccVersion()
getMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
void setMvccVersion(long mvccVersion)
setMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
mvccVersion
- the mvcc version of this commerce discount@AutoEscape java.lang.String getUuid()
getUuid
in interface com.liferay.portal.kernel.model.StagedModel
void setUuid(java.lang.String uuid)
setUuid
in interface com.liferay.portal.kernel.model.StagedModel
uuid
- the uuid of this commerce discount@AutoEscape java.lang.String getExternalReferenceCode()
void setExternalReferenceCode(java.lang.String externalReferenceCode)
externalReferenceCode
- the external reference code of this commerce discountlong getCommerceDiscountId()
void setCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount ID of this commerce discountlong getCompanyId()
getCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
getCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
getCompanyId
in interface com.liferay.portal.kernel.model.StagedModel
void setCompanyId(long companyId)
setCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
setCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
setCompanyId
in interface com.liferay.portal.kernel.model.StagedModel
companyId
- the company ID of this commerce discountlong getUserId()
getUserId
in interface com.liferay.portal.kernel.model.AuditedModel
void setUserId(long userId)
setUserId
in interface com.liferay.portal.kernel.model.AuditedModel
userId
- the user ID of this commerce discountjava.lang.String getUserUuid()
getUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
void setUserUuid(java.lang.String userUuid)
setUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
userUuid
- the user uuid of this commerce discount@AutoEscape java.lang.String getUserName()
getUserName
in interface com.liferay.portal.kernel.model.AuditedModel
void setUserName(java.lang.String userName)
setUserName
in interface com.liferay.portal.kernel.model.AuditedModel
userName
- the user name of this commerce discountjava.util.Date getCreateDate()
getCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
getCreateDate
in interface com.liferay.portal.kernel.model.StagedModel
void setCreateDate(java.util.Date createDate)
setCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
setCreateDate
in interface com.liferay.portal.kernel.model.StagedModel
createDate
- the create date of this commerce discountjava.util.Date getModifiedDate()
getModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
getModifiedDate
in interface com.liferay.portal.kernel.model.StagedModel
void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
setModifiedDate
in interface com.liferay.portal.kernel.model.StagedModel
modifiedDate
- the modified date of this commerce discount@AutoEscape java.lang.String getTitle()
void setTitle(java.lang.String title)
title
- the title of this commerce discount@AutoEscape java.lang.String getTarget()
void setTarget(java.lang.String target)
target
- the target of this commerce discountboolean getUseCouponCode()
boolean isUseCouponCode()
true
if this commerce discount is use coupon code.true
if this commerce discount is use coupon code; false
otherwisevoid setUseCouponCode(boolean useCouponCode)
useCouponCode
- the use coupon code of this commerce discount@AutoEscape java.lang.String getCouponCode()
void setCouponCode(java.lang.String couponCode)
couponCode
- the coupon code of this commerce discountboolean getUsePercentage()
boolean isUsePercentage()
true
if this commerce discount is use percentage.true
if this commerce discount is use percentage; false
otherwisevoid setUsePercentage(boolean usePercentage)
usePercentage
- the use percentage of this commerce discountjava.math.BigDecimal getMaximumDiscountAmount()
void setMaximumDiscountAmount(java.math.BigDecimal maximumDiscountAmount)
maximumDiscountAmount
- the maximum discount amount of this commerce discount@AutoEscape java.lang.String getLevel()
void setLevel(java.lang.String level)
level
- the level of this commerce discountjava.math.BigDecimal getLevel1()
void setLevel1(java.math.BigDecimal level1)
level1
- the level1 of this commerce discountjava.math.BigDecimal getLevel2()
void setLevel2(java.math.BigDecimal level2)
level2
- the level2 of this commerce discountjava.math.BigDecimal getLevel3()
void setLevel3(java.math.BigDecimal level3)
level3
- the level3 of this commerce discountjava.math.BigDecimal getLevel4()
void setLevel4(java.math.BigDecimal level4)
level4
- the level4 of this commerce discount@AutoEscape java.lang.String getLimitationType()
void setLimitationType(java.lang.String limitationType)
limitationType
- the limitation type of this commerce discountint getLimitationTimes()
void setLimitationTimes(int limitationTimes)
limitationTimes
- the limitation times of this commerce discountint getLimitationTimesPerAccount()
void setLimitationTimesPerAccount(int limitationTimesPerAccount)
limitationTimesPerAccount
- the limitation times per account of this commerce discountint getNumberOfUse()
void setNumberOfUse(int numberOfUse)
numberOfUse
- the number of use of this commerce discountboolean getRulesConjunction()
boolean isRulesConjunction()
true
if this commerce discount is rules conjunction.true
if this commerce discount is rules conjunction; false
otherwisevoid setRulesConjunction(boolean rulesConjunction)
rulesConjunction
- the rules conjunction of this commerce discountboolean getActive()
boolean isActive()
true
if this commerce discount is active.true
if this commerce discount is active; false
otherwisevoid setActive(boolean active)
active
- the active of this commerce discountjava.util.Date getDisplayDate()
void setDisplayDate(java.util.Date displayDate)
displayDate
- the display date of this commerce discountjava.util.Date getExpirationDate()
void setExpirationDate(java.util.Date expirationDate)
expirationDate
- the expiration date of this commerce discountjava.util.Date getLastPublishDate()
void setLastPublishDate(java.util.Date lastPublishDate)
lastPublishDate
- the last publish date of this commerce discountint getStatus()
getStatus
in interface com.liferay.portal.kernel.model.WorkflowedModel
void setStatus(int status)
setStatus
in interface com.liferay.portal.kernel.model.WorkflowedModel
status
- the status of this commerce discountlong getStatusByUserId()
getStatusByUserId
in interface com.liferay.portal.kernel.model.WorkflowedModel
void setStatusByUserId(long statusByUserId)
setStatusByUserId
in interface com.liferay.portal.kernel.model.WorkflowedModel
statusByUserId
- the status by user ID of this commerce discountjava.lang.String getStatusByUserUuid()
getStatusByUserUuid
in interface com.liferay.portal.kernel.model.WorkflowedModel
void setStatusByUserUuid(java.lang.String statusByUserUuid)
setStatusByUserUuid
in interface com.liferay.portal.kernel.model.WorkflowedModel
statusByUserUuid
- the status by user uuid of this commerce discount@AutoEscape java.lang.String getStatusByUserName()
getStatusByUserName
in interface com.liferay.portal.kernel.model.WorkflowedModel
void setStatusByUserName(java.lang.String statusByUserName)
setStatusByUserName
in interface com.liferay.portal.kernel.model.WorkflowedModel
statusByUserName
- the status by user name of this commerce discountjava.util.Date getStatusDate()
getStatusDate
in interface com.liferay.portal.kernel.model.WorkflowedModel
void setStatusDate(java.util.Date statusDate)
setStatusDate
in interface com.liferay.portal.kernel.model.WorkflowedModel
statusDate
- the status date of this commerce discountboolean isApproved()
true
if this commerce discount is approved.isApproved
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this commerce discount is approved; false
otherwiseboolean isDenied()
true
if this commerce discount is denied.isDenied
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this commerce discount is denied; false
otherwiseboolean isDraft()
true
if this commerce discount is a draft.isDraft
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this commerce discount is a draft; false
otherwiseboolean isExpired()
true
if this commerce discount is expired.isExpired
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this commerce discount is expired; false
otherwiseboolean isInactive()
true
if this commerce discount is inactive.isInactive
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this commerce discount is inactive; false
otherwiseboolean isIncomplete()
true
if this commerce discount is incomplete.isIncomplete
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this commerce discount is incomplete; false
otherwiseboolean isPending()
true
if this commerce discount is pending.isPending
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this commerce discount is pending; false
otherwiseboolean isScheduled()
true
if this commerce discount is scheduled.isScheduled
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this commerce discount is scheduled; false
otherwiseCommerceDiscount cloneWithOriginalValues()
cloneWithOriginalValues
in interface com.liferay.portal.kernel.model.BaseModel<CommerceDiscount>