Class CommerceDiscountWrapper
java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceDiscount>
com.liferay.commerce.discount.model.CommerceDiscountWrapper
- All Implemented Interfaces:
CommerceDiscount
,CommerceDiscountModel
,com.liferay.portal.kernel.model.AuditedModel
,com.liferay.portal.kernel.model.BaseModel<CommerceDiscount>
,com.liferay.portal.kernel.model.ClassedModel
,com.liferay.portal.kernel.model.ExternalReferenceCodeModel
,com.liferay.portal.kernel.model.ModelWrapper<CommerceDiscount>
,com.liferay.portal.kernel.model.MVCCModel
,com.liferay.portal.kernel.model.PersistedModel
,com.liferay.portal.kernel.model.ShardedModel
,com.liferay.portal.kernel.model.StagedAuditedModel
,com.liferay.portal.kernel.model.StagedModel
,com.liferay.portal.kernel.model.WorkflowedModel
,Serializable
,Cloneable
,Comparable<CommerceDiscount>
public class CommerceDiscountWrapper
extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceDiscount>
implements CommerceDiscount, com.liferay.portal.kernel.model.ModelWrapper<CommerceDiscount>
This class is a wrapper for CommerceDiscount
.
- See Also:
- Generated:
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
model
Fields inherited from interface com.liferay.commerce.discount.model.CommerceDiscount
COMMERCE_DISCOUNT_ID_ACCESSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the active of this commerce discount.long
Returns the commerce discount ID of this commerce discount.long
Returns the company ID of this commerce discount.Returns the coupon code of this commerce discount.Returns the create date of this commerce discount.Returns the display date of this commerce discount.Returns the expiration date of this commerce discount.Returns the external reference code of this commerce discount.Returns the last publish date of this commerce discount.getLevel()
Returns the level of this commerce discount.Returns the level1 of this commerce discount.Returns the level2 of this commerce discount.Returns the level3 of this commerce discount.Returns the level4 of this commerce discount.int
Returns the limitation times of this commerce discount.int
Returns the limitation times per account of this commerce discount.Returns the limitation type of this commerce discount.Returns the maximum discount amount of this commerce discount.Returns the modified date of this commerce discount.long
Returns the mvcc version of this commerce discount.int
Returns the number of use of this commerce discount.long
Returns the primary key of this commerce discount.boolean
Returns the rules conjunction of this commerce discount.com.liferay.exportimport.kernel.lar.StagedModelType
int
Returns the status of this commerce discount.long
Returns the status by user ID of this commerce discount.Returns the status by user name of this commerce discount.Returns the status by user uuid of this commerce discount.Returns the status date of this commerce discount.Returns the target of this commerce discount.getTitle()
Returns the title of this commerce discount.boolean
Returns the use coupon code of this commerce discount.boolean
Returns the use percentage of this commerce discount.long
Returns the user ID of this commerce discount.Returns the user name of this commerce discount.Returns the user uuid of this commerce discount.getUuid()
Returns the uuid of this commerce discount.boolean
isActive()
Returnstrue
if this commerce discount is active.boolean
Returnstrue
if this commerce discount is approved.boolean
isDenied()
Returnstrue
if this commerce discount is denied.boolean
isDraft()
Returnstrue
if this commerce discount is a draft.boolean
Returnstrue
if this commerce discount is expired.boolean
Returnstrue
if this commerce discount is inactive.boolean
Returnstrue
if this commerce discount is incomplete.boolean
Returnstrue
if this commerce discount is pending.boolean
Returnstrue
if this commerce discount is rules conjunction.boolean
Returnstrue
if this commerce discount is scheduled.boolean
Returnstrue
if this commerce discount is use coupon code.boolean
Returnstrue
if this commerce discount is use percentage.void
persist()
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
(String couponCode) Sets the coupon code of this commerce discount.void
setCreateDate
(Date createDate) Sets the create date of this commerce discount.void
setDisplayDate
(Date displayDate) Sets the display date of this commerce discount.void
setExpirationDate
(Date expirationDate) Sets the expiration date of this commerce discount.void
setExternalReferenceCode
(String externalReferenceCode) Sets the external reference code of this commerce discount.void
setLastPublishDate
(Date lastPublishDate) Sets the last publish date of this commerce discount.void
Sets the level of this commerce discount.void
setLevel1
(BigDecimal level1) Sets the level1 of this commerce discount.void
setLevel2
(BigDecimal level2) Sets the level2 of this commerce discount.void
setLevel3
(BigDecimal level3) Sets the level3 of this commerce discount.void
setLevel4
(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
(String limitationType) Sets the limitation type of this commerce discount.void
setMaximumDiscountAmount
(BigDecimal maximumDiscountAmount) Sets the maximum discount amount of this commerce discount.void
setModelAttributes
(Map<String, Object> attributes) void
setModifiedDate
(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
(String statusByUserName) Sets the status by user name of this commerce discount.void
setStatusByUserUuid
(String statusByUserUuid) Sets the status by user uuid of this commerce discount.void
setStatusDate
(Date statusDate) Sets the status date of this commerce discount.void
Sets the target of this commerce discount.void
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
(String userName) Sets the user name of this commerce discount.void
setUserUuid
(String userUuid) Sets the user uuid of this commerce discount.void
Sets the uuid of this commerce discount.protected CommerceDiscountWrapper
wrap
(CommerceDiscount commerceDiscount) Methods inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassName
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.liferay.portal.kernel.model.ModelWrapper
getWrappedModel
Methods inherited from interface com.liferay.portal.kernel.model.StagedModel
clone
-
Constructor Details
-
CommerceDiscountWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributes
in interfacecom.liferay.portal.kernel.model.BaseModel<CommerceDiscount>
-
setModelAttributes
- Specified by:
setModelAttributes
in interfacecom.liferay.portal.kernel.model.BaseModel<CommerceDiscount>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValues
in interfacecom.liferay.portal.kernel.model.BaseModel<CommerceDiscount>
- Specified by:
cloneWithOriginalValues
in interfaceCommerceDiscountModel
-
getActive
public boolean getActive()Returns the active of this commerce discount.- Specified by:
getActive
in interfaceCommerceDiscountModel
- Returns:
- the active of this commerce discount
-
getCommerceDiscountCommerceAccountGroupRels
- Specified by:
getCommerceDiscountCommerceAccountGroupRels
in interfaceCommerceDiscount
-
getCommerceDiscountId
public long getCommerceDiscountId()Returns the commerce discount ID of this commerce discount.- Specified by:
getCommerceDiscountId
in interfaceCommerceDiscountModel
- Returns:
- the commerce discount ID of this commerce discount
-
getCompanyId
public long getCompanyId()Returns the company ID of this commerce discount.- Specified by:
getCompanyId
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
getCompanyId
in interfaceCommerceDiscountModel
- Specified by:
getCompanyId
in interfacecom.liferay.portal.kernel.model.ShardedModel
- Specified by:
getCompanyId
in interfacecom.liferay.portal.kernel.model.StagedModel
- Returns:
- the company ID of this commerce discount
-
getCouponCode
Returns the coupon code of this commerce discount.- Specified by:
getCouponCode
in interfaceCommerceDiscountModel
- Returns:
- the coupon code of this commerce discount
-
getCreateDate
Returns the create date of this commerce discount.- Specified by:
getCreateDate
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
getCreateDate
in interfaceCommerceDiscountModel
- Specified by:
getCreateDate
in interfacecom.liferay.portal.kernel.model.StagedModel
- Returns:
- the create date of this commerce discount
-
getDisplayDate
Returns the display date of this commerce discount.- Specified by:
getDisplayDate
in interfaceCommerceDiscountModel
- Returns:
- the display date of this commerce discount
-
getExpirationDate
Returns the expiration date of this commerce discount.- Specified by:
getExpirationDate
in interfaceCommerceDiscountModel
- Returns:
- the expiration date of this commerce discount
-
getExternalReferenceCode
Returns the external reference code of this commerce discount.- Specified by:
getExternalReferenceCode
in interfaceCommerceDiscountModel
- Specified by:
getExternalReferenceCode
in interfacecom.liferay.portal.kernel.model.ExternalReferenceCodeModel
- Returns:
- the external reference code of this commerce discount
-
getLastPublishDate
Returns the last publish date of this commerce discount.- Specified by:
getLastPublishDate
in interfaceCommerceDiscountModel
- Returns:
- the last publish date of this commerce discount
-
getLevel
Returns the level of this commerce discount.- Specified by:
getLevel
in interfaceCommerceDiscountModel
- Returns:
- the level of this commerce discount
-
getLevel1
Returns the level1 of this commerce discount.- Specified by:
getLevel1
in interfaceCommerceDiscountModel
- Returns:
- the level1 of this commerce discount
-
getLevel2
Returns the level2 of this commerce discount.- Specified by:
getLevel2
in interfaceCommerceDiscountModel
- Returns:
- the level2 of this commerce discount
-
getLevel3
Returns the level3 of this commerce discount.- Specified by:
getLevel3
in interfaceCommerceDiscountModel
- Returns:
- the level3 of this commerce discount
-
getLevel4
Returns the level4 of this commerce discount.- Specified by:
getLevel4
in interfaceCommerceDiscountModel
- Returns:
- the level4 of this commerce discount
-
getLimitationTimes
public int getLimitationTimes()Returns the limitation times of this commerce discount.- Specified by:
getLimitationTimes
in interfaceCommerceDiscountModel
- Returns:
- the limitation times of this commerce discount
-
getLimitationTimesPerAccount
public int getLimitationTimesPerAccount()Returns the limitation times per account of this commerce discount.- Specified by:
getLimitationTimesPerAccount
in interfaceCommerceDiscountModel
- Returns:
- the limitation times per account of this commerce discount
-
getLimitationType
Returns the limitation type of this commerce discount.- Specified by:
getLimitationType
in interfaceCommerceDiscountModel
- Returns:
- the limitation type of this commerce discount
-
getMaximumDiscountAmount
Returns the maximum discount amount of this commerce discount.- Specified by:
getMaximumDiscountAmount
in interfaceCommerceDiscountModel
- Returns:
- the maximum discount amount of this commerce discount
-
getModifiedDate
Returns the modified date of this commerce discount.- Specified by:
getModifiedDate
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
getModifiedDate
in interfaceCommerceDiscountModel
- Specified by:
getModifiedDate
in interfacecom.liferay.portal.kernel.model.StagedModel
- Returns:
- the modified date of this commerce discount
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this commerce discount.- Specified by:
getMvccVersion
in interfaceCommerceDiscountModel
- Specified by:
getMvccVersion
in interfacecom.liferay.portal.kernel.model.MVCCModel
- Returns:
- the mvcc version of this commerce discount
-
getNumberOfUse
public int getNumberOfUse()Returns the number of use of this commerce discount.- Specified by:
getNumberOfUse
in interfaceCommerceDiscountModel
- Returns:
- the number of use of this commerce discount
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this commerce discount.- Specified by:
getPrimaryKey
in interfaceCommerceDiscountModel
- Returns:
- the primary key of this commerce discount
-
getRulesConjunction
public boolean getRulesConjunction()Returns the rules conjunction of this commerce discount.- Specified by:
getRulesConjunction
in interfaceCommerceDiscountModel
- Returns:
- the rules conjunction of this commerce discount
-
getStatus
public int getStatus()Returns the status of this commerce discount.- Specified by:
getStatus
in interfaceCommerceDiscountModel
- Specified by:
getStatus
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
- the status of this commerce discount
-
getStatusByUserId
public long getStatusByUserId()Returns the status by user ID of this commerce discount.- Specified by:
getStatusByUserId
in interfaceCommerceDiscountModel
- Specified by:
getStatusByUserId
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
- the status by user ID of this commerce discount
-
getStatusByUserName
Returns the status by user name of this commerce discount.- Specified by:
getStatusByUserName
in interfaceCommerceDiscountModel
- Specified by:
getStatusByUserName
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
- the status by user name of this commerce discount
-
getStatusByUserUuid
Returns the status by user uuid of this commerce discount.- Specified by:
getStatusByUserUuid
in interfaceCommerceDiscountModel
- Specified by:
getStatusByUserUuid
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
- the status by user uuid of this commerce discount
-
getStatusDate
Returns the status date of this commerce discount.- Specified by:
getStatusDate
in interfaceCommerceDiscountModel
- Specified by:
getStatusDate
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
- the status date of this commerce discount
-
getTarget
Returns the target of this commerce discount.- Specified by:
getTarget
in interfaceCommerceDiscountModel
- Returns:
- the target of this commerce discount
-
getTitle
Returns the title of this commerce discount.- Specified by:
getTitle
in interfaceCommerceDiscountModel
- Returns:
- the title of this commerce discount
-
getUseCouponCode
public boolean getUseCouponCode()Returns the use coupon code of this commerce discount.- Specified by:
getUseCouponCode
in interfaceCommerceDiscountModel
- Returns:
- the use coupon code of this commerce discount
-
getUsePercentage
public boolean getUsePercentage()Returns the use percentage of this commerce discount.- Specified by:
getUsePercentage
in interfaceCommerceDiscountModel
- Returns:
- the use percentage of this commerce discount
-
getUserId
public long getUserId()Returns the user ID of this commerce discount.- Specified by:
getUserId
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
getUserId
in interfaceCommerceDiscountModel
- Returns:
- the user ID of this commerce discount
-
getUserName
Returns the user name of this commerce discount.- Specified by:
getUserName
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
getUserName
in interfaceCommerceDiscountModel
- Returns:
- the user name of this commerce discount
-
getUserUuid
Returns the user uuid of this commerce discount.- Specified by:
getUserUuid
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
getUserUuid
in interfaceCommerceDiscountModel
- Returns:
- the user uuid of this commerce discount
-
getUuid
Returns the uuid of this commerce discount.- Specified by:
getUuid
in interfaceCommerceDiscountModel
- Specified by:
getUuid
in interfacecom.liferay.portal.kernel.model.StagedModel
- Returns:
- the uuid of this commerce discount
-
isActive
public boolean isActive()Returnstrue
if this commerce discount is active.- Specified by:
isActive
in interfaceCommerceDiscountModel
- Returns:
true
if this commerce discount is active;false
otherwise
-
isApproved
public boolean isApproved()Returnstrue
if this commerce discount is approved.- Specified by:
isApproved
in interfaceCommerceDiscountModel
- Specified by:
isApproved
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this commerce discount is approved;false
otherwise
-
isDenied
public boolean isDenied()Returnstrue
if this commerce discount is denied.- Specified by:
isDenied
in interfaceCommerceDiscountModel
- Specified by:
isDenied
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this commerce discount is denied;false
otherwise
-
isDraft
public boolean isDraft()Returnstrue
if this commerce discount is a draft.- Specified by:
isDraft
in interfaceCommerceDiscountModel
- Specified by:
isDraft
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this commerce discount is a draft;false
otherwise
-
isExpired
public boolean isExpired()Returnstrue
if this commerce discount is expired.- Specified by:
isExpired
in interfaceCommerceDiscountModel
- Specified by:
isExpired
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this commerce discount is expired;false
otherwise
-
isInactive
public boolean isInactive()Returnstrue
if this commerce discount is inactive.- Specified by:
isInactive
in interfaceCommerceDiscountModel
- Specified by:
isInactive
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this commerce discount is inactive;false
otherwise
-
isIncomplete
public boolean isIncomplete()Returnstrue
if this commerce discount is incomplete.- Specified by:
isIncomplete
in interfaceCommerceDiscountModel
- Specified by:
isIncomplete
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this commerce discount is incomplete;false
otherwise
-
isPending
public boolean isPending()Returnstrue
if this commerce discount is pending.- Specified by:
isPending
in interfaceCommerceDiscountModel
- Specified by:
isPending
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this commerce discount is pending;false
otherwise
-
isRulesConjunction
public boolean isRulesConjunction()Returnstrue
if this commerce discount is rules conjunction.- Specified by:
isRulesConjunction
in interfaceCommerceDiscountModel
- Returns:
true
if this commerce discount is rules conjunction;false
otherwise
-
isScheduled
public boolean isScheduled()Returnstrue
if this commerce discount is scheduled.- Specified by:
isScheduled
in interfaceCommerceDiscountModel
- Specified by:
isScheduled
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this commerce discount is scheduled;false
otherwise
-
isUseCouponCode
public boolean isUseCouponCode()Returnstrue
if this commerce discount is use coupon code.- Specified by:
isUseCouponCode
in interfaceCommerceDiscountModel
- Returns:
true
if this commerce discount is use coupon code;false
otherwise
-
isUsePercentage
public boolean isUsePercentage()Returnstrue
if this commerce discount is use percentage.- Specified by:
isUsePercentage
in interfaceCommerceDiscountModel
- Returns:
true
if this commerce discount is use percentage;false
otherwise
-
persist
public void persist()- Specified by:
persist
in interfacecom.liferay.portal.kernel.model.PersistedModel
-
setActive
public void setActive(boolean active) Sets whether this commerce discount is active.- Specified by:
setActive
in interfaceCommerceDiscountModel
- Parameters:
active
- the active of this commerce discount
-
setCommerceDiscountId
public void setCommerceDiscountId(long commerceDiscountId) Sets the commerce discount ID of this commerce discount.- Specified by:
setCommerceDiscountId
in interfaceCommerceDiscountModel
- Parameters:
commerceDiscountId
- the commerce discount ID of this commerce discount
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this commerce discount.- Specified by:
setCompanyId
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
setCompanyId
in interfaceCommerceDiscountModel
- Specified by:
setCompanyId
in interfacecom.liferay.portal.kernel.model.ShardedModel
- Specified by:
setCompanyId
in interfacecom.liferay.portal.kernel.model.StagedModel
- Parameters:
companyId
- the company ID of this commerce discount
-
setCouponCode
Sets the coupon code of this commerce discount.- Specified by:
setCouponCode
in interfaceCommerceDiscountModel
- Parameters:
couponCode
- the coupon code of this commerce discount
-
setCreateDate
Sets the create date of this commerce discount.- Specified by:
setCreateDate
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
setCreateDate
in interfaceCommerceDiscountModel
- Specified by:
setCreateDate
in interfacecom.liferay.portal.kernel.model.StagedModel
- Parameters:
createDate
- the create date of this commerce discount
-
setDisplayDate
Sets the display date of this commerce discount.- Specified by:
setDisplayDate
in interfaceCommerceDiscountModel
- Parameters:
displayDate
- the display date of this commerce discount
-
setExpirationDate
Sets the expiration date of this commerce discount.- Specified by:
setExpirationDate
in interfaceCommerceDiscountModel
- Parameters:
expirationDate
- the expiration date of this commerce discount
-
setExternalReferenceCode
Sets the external reference code of this commerce discount.- Specified by:
setExternalReferenceCode
in interfaceCommerceDiscountModel
- Specified by:
setExternalReferenceCode
in interfacecom.liferay.portal.kernel.model.ExternalReferenceCodeModel
- Parameters:
externalReferenceCode
- the external reference code of this commerce discount
-
setLastPublishDate
Sets the last publish date of this commerce discount.- Specified by:
setLastPublishDate
in interfaceCommerceDiscountModel
- Parameters:
lastPublishDate
- the last publish date of this commerce discount
-
setLevel
Sets the level of this commerce discount.- Specified by:
setLevel
in interfaceCommerceDiscountModel
- Parameters:
level
- the level of this commerce discount
-
setLevel1
Sets the level1 of this commerce discount.- Specified by:
setLevel1
in interfaceCommerceDiscountModel
- Parameters:
level1
- the level1 of this commerce discount
-
setLevel2
Sets the level2 of this commerce discount.- Specified by:
setLevel2
in interfaceCommerceDiscountModel
- Parameters:
level2
- the level2 of this commerce discount
-
setLevel3
Sets the level3 of this commerce discount.- Specified by:
setLevel3
in interfaceCommerceDiscountModel
- Parameters:
level3
- the level3 of this commerce discount
-
setLevel4
Sets the level4 of this commerce discount.- Specified by:
setLevel4
in interfaceCommerceDiscountModel
- Parameters:
level4
- the level4 of this commerce discount
-
setLimitationTimes
public void setLimitationTimes(int limitationTimes) Sets the limitation times of this commerce discount.- Specified by:
setLimitationTimes
in interfaceCommerceDiscountModel
- Parameters:
limitationTimes
- the limitation times of this commerce discount
-
setLimitationTimesPerAccount
public void setLimitationTimesPerAccount(int limitationTimesPerAccount) Sets the limitation times per account of this commerce discount.- Specified by:
setLimitationTimesPerAccount
in interfaceCommerceDiscountModel
- Parameters:
limitationTimesPerAccount
- the limitation times per account of this commerce discount
-
setLimitationType
Sets the limitation type of this commerce discount.- Specified by:
setLimitationType
in interfaceCommerceDiscountModel
- Parameters:
limitationType
- the limitation type of this commerce discount
-
setMaximumDiscountAmount
Sets the maximum discount amount of this commerce discount.- Specified by:
setMaximumDiscountAmount
in interfaceCommerceDiscountModel
- Parameters:
maximumDiscountAmount
- the maximum discount amount of this commerce discount
-
setModifiedDate
Sets the modified date of this commerce discount.- Specified by:
setModifiedDate
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
setModifiedDate
in interfaceCommerceDiscountModel
- Specified by:
setModifiedDate
in interfacecom.liferay.portal.kernel.model.StagedModel
- Parameters:
modifiedDate
- the modified date of this commerce discount
-
setMvccVersion
public void setMvccVersion(long mvccVersion) Sets the mvcc version of this commerce discount.- Specified by:
setMvccVersion
in interfaceCommerceDiscountModel
- Specified by:
setMvccVersion
in interfacecom.liferay.portal.kernel.model.MVCCModel
- Parameters:
mvccVersion
- the mvcc version of this commerce discount
-
setNumberOfUse
public void setNumberOfUse(int numberOfUse) Sets the number of use of this commerce discount.- Specified by:
setNumberOfUse
in interfaceCommerceDiscountModel
- Parameters:
numberOfUse
- the number of use of this commerce discount
-
setPrimaryKey
public void setPrimaryKey(long primaryKey) Sets the primary key of this commerce discount.- Specified by:
setPrimaryKey
in interfaceCommerceDiscountModel
- Parameters:
primaryKey
- the primary key of this commerce discount
-
setRulesConjunction
public void setRulesConjunction(boolean rulesConjunction) Sets whether this commerce discount is rules conjunction.- Specified by:
setRulesConjunction
in interfaceCommerceDiscountModel
- Parameters:
rulesConjunction
- the rules conjunction of this commerce discount
-
setStatus
public void setStatus(int status) Sets the status of this commerce discount.- Specified by:
setStatus
in interfaceCommerceDiscountModel
- Specified by:
setStatus
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Parameters:
status
- the status of this commerce discount
-
setStatusByUserId
public void setStatusByUserId(long statusByUserId) Sets the status by user ID of this commerce discount.- Specified by:
setStatusByUserId
in interfaceCommerceDiscountModel
- Specified by:
setStatusByUserId
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Parameters:
statusByUserId
- the status by user ID of this commerce discount
-
setStatusByUserName
Sets the status by user name of this commerce discount.- Specified by:
setStatusByUserName
in interfaceCommerceDiscountModel
- Specified by:
setStatusByUserName
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Parameters:
statusByUserName
- the status by user name of this commerce discount
-
setStatusByUserUuid
Sets the status by user uuid of this commerce discount.- Specified by:
setStatusByUserUuid
in interfaceCommerceDiscountModel
- Specified by:
setStatusByUserUuid
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Parameters:
statusByUserUuid
- the status by user uuid of this commerce discount
-
setStatusDate
Sets the status date of this commerce discount.- Specified by:
setStatusDate
in interfaceCommerceDiscountModel
- Specified by:
setStatusDate
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Parameters:
statusDate
- the status date of this commerce discount
-
setTarget
Sets the target of this commerce discount.- Specified by:
setTarget
in interfaceCommerceDiscountModel
- Parameters:
target
- the target of this commerce discount
-
setTitle
Sets the title of this commerce discount.- Specified by:
setTitle
in interfaceCommerceDiscountModel
- Parameters:
title
- the title of this commerce discount
-
setUseCouponCode
public void setUseCouponCode(boolean useCouponCode) Sets whether this commerce discount is use coupon code.- Specified by:
setUseCouponCode
in interfaceCommerceDiscountModel
- Parameters:
useCouponCode
- the use coupon code of this commerce discount
-
setUsePercentage
public void setUsePercentage(boolean usePercentage) Sets whether this commerce discount is use percentage.- Specified by:
setUsePercentage
in interfaceCommerceDiscountModel
- Parameters:
usePercentage
- the use percentage of this commerce discount
-
setUserId
public void setUserId(long userId) Sets the user ID of this commerce discount.- Specified by:
setUserId
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
setUserId
in interfaceCommerceDiscountModel
- Parameters:
userId
- the user ID of this commerce discount
-
setUserName
Sets the user name of this commerce discount.- Specified by:
setUserName
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
setUserName
in interfaceCommerceDiscountModel
- Parameters:
userName
- the user name of this commerce discount
-
setUserUuid
Sets the user uuid of this commerce discount.- Specified by:
setUserUuid
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
setUserUuid
in interfaceCommerceDiscountModel
- Parameters:
userUuid
- the user uuid of this commerce discount
-
setUuid
Sets the uuid of this commerce discount.- Specified by:
setUuid
in interfaceCommerceDiscountModel
- Specified by:
setUuid
in interfacecom.liferay.portal.kernel.model.StagedModel
- Parameters:
uuid
- the uuid of this commerce discount
-
toXmlString
- Specified by:
toXmlString
in interfaceCommerceDiscountModel
-
getStagedModelType
public com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()- Specified by:
getStagedModelType
in interfacecom.liferay.portal.kernel.model.StagedModel
-
wrap
- Specified by:
wrap
in classcom.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceDiscount>
-