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:
  • Constructor Details

    • CommerceDiscountWrapper

      public CommerceDiscountWrapper(CommerceDiscount commerceDiscount)
  • Method Details

    • getModelAttributes

      public Map<String,Object> getModelAttributes()
      Specified by:
      getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<CommerceDiscount>
    • setModelAttributes

      public void setModelAttributes(Map<String,Object> attributes)
      Specified by:
      setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<CommerceDiscount>
    • cloneWithOriginalValues

      public CommerceDiscount cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<CommerceDiscount>
      Specified by:
      cloneWithOriginalValues in interface CommerceDiscountModel
    • getActive

      public boolean getActive()
      Returns the active of this commerce discount.
      Specified by:
      getActive in interface CommerceDiscountModel
      Returns:
      the active of this commerce discount
    • getCommerceDiscountCommerceAccountGroupRels

      public List<CommerceDiscountCommerceAccountGroupRel> getCommerceDiscountCommerceAccountGroupRels()
      Specified by:
      getCommerceDiscountCommerceAccountGroupRels in interface CommerceDiscount
    • getCommerceDiscountId

      public long getCommerceDiscountId()
      Returns the commerce discount ID of this commerce discount.
      Specified by:
      getCommerceDiscountId in interface CommerceDiscountModel
      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 interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCompanyId in interface CommerceDiscountModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the company ID of this commerce discount
    • getCouponCode

      public String getCouponCode()
      Returns the coupon code of this commerce discount.
      Specified by:
      getCouponCode in interface CommerceDiscountModel
      Returns:
      the coupon code of this commerce discount
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this commerce discount.
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCreateDate in interface CommerceDiscountModel
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the create date of this commerce discount
    • getDisplayDate

      public Date getDisplayDate()
      Returns the display date of this commerce discount.
      Specified by:
      getDisplayDate in interface CommerceDiscountModel
      Returns:
      the display date of this commerce discount
    • getExpirationDate

      public Date getExpirationDate()
      Returns the expiration date of this commerce discount.
      Specified by:
      getExpirationDate in interface CommerceDiscountModel
      Returns:
      the expiration date of this commerce discount
    • getExternalReferenceCode

      public String getExternalReferenceCode()
      Returns the external reference code of this commerce discount.
      Specified by:
      getExternalReferenceCode in interface CommerceDiscountModel
      Specified by:
      getExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Returns:
      the external reference code of this commerce discount
    • getLastPublishDate

      public Date getLastPublishDate()
      Returns the last publish date of this commerce discount.
      Specified by:
      getLastPublishDate in interface CommerceDiscountModel
      Returns:
      the last publish date of this commerce discount
    • getLevel

      public String getLevel()
      Returns the level of this commerce discount.
      Specified by:
      getLevel in interface CommerceDiscountModel
      Returns:
      the level of this commerce discount
    • getLevel1

      public BigDecimal getLevel1()
      Returns the level1 of this commerce discount.
      Specified by:
      getLevel1 in interface CommerceDiscountModel
      Returns:
      the level1 of this commerce discount
    • getLevel2

      public BigDecimal getLevel2()
      Returns the level2 of this commerce discount.
      Specified by:
      getLevel2 in interface CommerceDiscountModel
      Returns:
      the level2 of this commerce discount
    • getLevel3

      public BigDecimal getLevel3()
      Returns the level3 of this commerce discount.
      Specified by:
      getLevel3 in interface CommerceDiscountModel
      Returns:
      the level3 of this commerce discount
    • getLevel4

      public BigDecimal getLevel4()
      Returns the level4 of this commerce discount.
      Specified by:
      getLevel4 in interface CommerceDiscountModel
      Returns:
      the level4 of this commerce discount
    • getLimitationTimes

      public int getLimitationTimes()
      Returns the limitation times of this commerce discount.
      Specified by:
      getLimitationTimes in interface CommerceDiscountModel
      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 interface CommerceDiscountModel
      Returns:
      the limitation times per account of this commerce discount
    • getLimitationType

      public String getLimitationType()
      Returns the limitation type of this commerce discount.
      Specified by:
      getLimitationType in interface CommerceDiscountModel
      Returns:
      the limitation type of this commerce discount
    • getMaximumDiscountAmount

      public BigDecimal getMaximumDiscountAmount()
      Returns the maximum discount amount of this commerce discount.
      Specified by:
      getMaximumDiscountAmount in interface CommerceDiscountModel
      Returns:
      the maximum discount amount of this commerce discount
    • getModifiedDate

      public Date getModifiedDate()
      Returns the modified date of this commerce discount.
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getModifiedDate in interface CommerceDiscountModel
      Specified by:
      getModifiedDate in interface com.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 interface CommerceDiscountModel
      Specified by:
      getMvccVersion in interface com.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 interface CommerceDiscountModel
      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 interface CommerceDiscountModel
      Returns:
      the primary key of this commerce discount
    • getRulesConjunction

      public boolean getRulesConjunction()
      Returns the rules conjunction of this commerce discount.
      Specified by:
      getRulesConjunction in interface CommerceDiscountModel
      Returns:
      the rules conjunction of this commerce discount
    • getStatus

      public int getStatus()
      Returns the status of this commerce discount.
      Specified by:
      getStatus in interface CommerceDiscountModel
      Specified by:
      getStatus in interface com.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 interface CommerceDiscountModel
      Specified by:
      getStatusByUserId in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status by user ID of this commerce discount
    • getStatusByUserName

      public String getStatusByUserName()
      Returns the status by user name of this commerce discount.
      Specified by:
      getStatusByUserName in interface CommerceDiscountModel
      Specified by:
      getStatusByUserName in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status by user name of this commerce discount
    • getStatusByUserUuid

      public String getStatusByUserUuid()
      Returns the status by user uuid of this commerce discount.
      Specified by:
      getStatusByUserUuid in interface CommerceDiscountModel
      Specified by:
      getStatusByUserUuid in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status by user uuid of this commerce discount
    • getStatusDate

      public Date getStatusDate()
      Returns the status date of this commerce discount.
      Specified by:
      getStatusDate in interface CommerceDiscountModel
      Specified by:
      getStatusDate in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status date of this commerce discount
    • getTarget

      public String getTarget()
      Returns the target of this commerce discount.
      Specified by:
      getTarget in interface CommerceDiscountModel
      Returns:
      the target of this commerce discount
    • getTitle

      public String getTitle()
      Returns the title of this commerce discount.
      Specified by:
      getTitle in interface CommerceDiscountModel
      Returns:
      the title of this commerce discount
    • getUseCouponCode

      public boolean getUseCouponCode()
      Returns the use coupon code of this commerce discount.
      Specified by:
      getUseCouponCode in interface CommerceDiscountModel
      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 interface CommerceDiscountModel
      Returns:
      the use percentage of this commerce discount
    • getUserId

      public long getUserId()
      Returns the user ID of this commerce discount.
      Specified by:
      getUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserId in interface CommerceDiscountModel
      Returns:
      the user ID of this commerce discount
    • getUserName

      public String getUserName()
      Returns the user name of this commerce discount.
      Specified by:
      getUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserName in interface CommerceDiscountModel
      Returns:
      the user name of this commerce discount
    • getUserUuid

      public String getUserUuid()
      Returns the user uuid of this commerce discount.
      Specified by:
      getUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserUuid in interface CommerceDiscountModel
      Returns:
      the user uuid of this commerce discount
    • getUuid

      public String getUuid()
      Returns the uuid of this commerce discount.
      Specified by:
      getUuid in interface CommerceDiscountModel
      Specified by:
      getUuid in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the uuid of this commerce discount
    • isActive

      public boolean isActive()
      Returns true if this commerce discount is active.
      Specified by:
      isActive in interface CommerceDiscountModel
      Returns:
      true if this commerce discount is active; false otherwise
    • isApproved

      public boolean isApproved()
      Returns true if this commerce discount is approved.
      Specified by:
      isApproved in interface CommerceDiscountModel
      Specified by:
      isApproved in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this commerce discount is approved; false otherwise
    • isDenied

      public boolean isDenied()
      Returns true if this commerce discount is denied.
      Specified by:
      isDenied in interface CommerceDiscountModel
      Specified by:
      isDenied in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this commerce discount is denied; false otherwise
    • isDraft

      public boolean isDraft()
      Returns true if this commerce discount is a draft.
      Specified by:
      isDraft in interface CommerceDiscountModel
      Specified by:
      isDraft in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this commerce discount is a draft; false otherwise
    • isExpired

      public boolean isExpired()
      Returns true if this commerce discount is expired.
      Specified by:
      isExpired in interface CommerceDiscountModel
      Specified by:
      isExpired in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this commerce discount is expired; false otherwise
    • isInactive

      public boolean isInactive()
      Returns true if this commerce discount is inactive.
      Specified by:
      isInactive in interface CommerceDiscountModel
      Specified by:
      isInactive in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this commerce discount is inactive; false otherwise
    • isIncomplete

      public boolean isIncomplete()
      Returns true if this commerce discount is incomplete.
      Specified by:
      isIncomplete in interface CommerceDiscountModel
      Specified by:
      isIncomplete in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this commerce discount is incomplete; false otherwise
    • isPending

      public boolean isPending()
      Returns true if this commerce discount is pending.
      Specified by:
      isPending in interface CommerceDiscountModel
      Specified by:
      isPending in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this commerce discount is pending; false otherwise
    • isRulesConjunction

      public boolean isRulesConjunction()
      Returns true if this commerce discount is rules conjunction.
      Specified by:
      isRulesConjunction in interface CommerceDiscountModel
      Returns:
      true if this commerce discount is rules conjunction; false otherwise
    • isScheduled

      public boolean isScheduled()
      Returns true if this commerce discount is scheduled.
      Specified by:
      isScheduled in interface CommerceDiscountModel
      Specified by:
      isScheduled in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this commerce discount is scheduled; false otherwise
    • isUseCouponCode

      public boolean isUseCouponCode()
      Returns true if this commerce discount is use coupon code.
      Specified by:
      isUseCouponCode in interface CommerceDiscountModel
      Returns:
      true if this commerce discount is use coupon code; false otherwise
    • isUsePercentage

      public boolean isUsePercentage()
      Returns true if this commerce discount is use percentage.
      Specified by:
      isUsePercentage in interface CommerceDiscountModel
      Returns:
      true if this commerce discount is use percentage; false otherwise
    • persist

      public void persist()
      Specified by:
      persist in interface com.liferay.portal.kernel.model.PersistedModel
    • setActive

      public void setActive(boolean active)
      Sets whether this commerce discount is active.
      Specified by:
      setActive in interface CommerceDiscountModel
      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 interface CommerceDiscountModel
      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 interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface CommerceDiscountModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      companyId - the company ID of this commerce discount
    • setCouponCode

      public void setCouponCode(String couponCode)
      Sets the coupon code of this commerce discount.
      Specified by:
      setCouponCode in interface CommerceDiscountModel
      Parameters:
      couponCode - the coupon code of this commerce discount
    • setCreateDate

      public void setCreateDate(Date createDate)
      Sets the create date of this commerce discount.
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCreateDate in interface CommerceDiscountModel
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      createDate - the create date of this commerce discount
    • setDisplayDate

      public void setDisplayDate(Date displayDate)
      Sets the display date of this commerce discount.
      Specified by:
      setDisplayDate in interface CommerceDiscountModel
      Parameters:
      displayDate - the display date of this commerce discount
    • setExpirationDate

      public void setExpirationDate(Date expirationDate)
      Sets the expiration date of this commerce discount.
      Specified by:
      setExpirationDate in interface CommerceDiscountModel
      Parameters:
      expirationDate - the expiration date of this commerce discount
    • setExternalReferenceCode

      public void setExternalReferenceCode(String externalReferenceCode)
      Sets the external reference code of this commerce discount.
      Specified by:
      setExternalReferenceCode in interface CommerceDiscountModel
      Specified by:
      setExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Parameters:
      externalReferenceCode - the external reference code of this commerce discount
    • setLastPublishDate

      public void setLastPublishDate(Date lastPublishDate)
      Sets the last publish date of this commerce discount.
      Specified by:
      setLastPublishDate in interface CommerceDiscountModel
      Parameters:
      lastPublishDate - the last publish date of this commerce discount
    • setLevel

      public void setLevel(String level)
      Sets the level of this commerce discount.
      Specified by:
      setLevel in interface CommerceDiscountModel
      Parameters:
      level - the level of this commerce discount
    • setLevel1

      public void setLevel1(BigDecimal level1)
      Sets the level1 of this commerce discount.
      Specified by:
      setLevel1 in interface CommerceDiscountModel
      Parameters:
      level1 - the level1 of this commerce discount
    • setLevel2

      public void setLevel2(BigDecimal level2)
      Sets the level2 of this commerce discount.
      Specified by:
      setLevel2 in interface CommerceDiscountModel
      Parameters:
      level2 - the level2 of this commerce discount
    • setLevel3

      public void setLevel3(BigDecimal level3)
      Sets the level3 of this commerce discount.
      Specified by:
      setLevel3 in interface CommerceDiscountModel
      Parameters:
      level3 - the level3 of this commerce discount
    • setLevel4

      public void setLevel4(BigDecimal level4)
      Sets the level4 of this commerce discount.
      Specified by:
      setLevel4 in interface CommerceDiscountModel
      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 interface CommerceDiscountModel
      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 interface CommerceDiscountModel
      Parameters:
      limitationTimesPerAccount - the limitation times per account of this commerce discount
    • setLimitationType

      public void setLimitationType(String limitationType)
      Sets the limitation type of this commerce discount.
      Specified by:
      setLimitationType in interface CommerceDiscountModel
      Parameters:
      limitationType - the limitation type of this commerce discount
    • setMaximumDiscountAmount

      public void setMaximumDiscountAmount(BigDecimal maximumDiscountAmount)
      Sets the maximum discount amount of this commerce discount.
      Specified by:
      setMaximumDiscountAmount in interface CommerceDiscountModel
      Parameters:
      maximumDiscountAmount - the maximum discount amount of this commerce discount
    • setModifiedDate

      public void setModifiedDate(Date modifiedDate)
      Sets the modified date of this commerce discount.
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setModifiedDate in interface CommerceDiscountModel
      Specified by:
      setModifiedDate in interface com.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 interface CommerceDiscountModel
      Specified by:
      setMvccVersion in interface com.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 interface CommerceDiscountModel
      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 interface CommerceDiscountModel
      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 interface CommerceDiscountModel
      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 interface CommerceDiscountModel
      Specified by:
      setStatus in interface com.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 interface CommerceDiscountModel
      Specified by:
      setStatusByUserId in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      statusByUserId - the status by user ID of this commerce discount
    • setStatusByUserName

      public void setStatusByUserName(String statusByUserName)
      Sets the status by user name of this commerce discount.
      Specified by:
      setStatusByUserName in interface CommerceDiscountModel
      Specified by:
      setStatusByUserName in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      statusByUserName - the status by user name of this commerce discount
    • setStatusByUserUuid

      public void setStatusByUserUuid(String statusByUserUuid)
      Sets the status by user uuid of this commerce discount.
      Specified by:
      setStatusByUserUuid in interface CommerceDiscountModel
      Specified by:
      setStatusByUserUuid in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      statusByUserUuid - the status by user uuid of this commerce discount
    • setStatusDate

      public void setStatusDate(Date statusDate)
      Sets the status date of this commerce discount.
      Specified by:
      setStatusDate in interface CommerceDiscountModel
      Specified by:
      setStatusDate in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      statusDate - the status date of this commerce discount
    • setTarget

      public void setTarget(String target)
      Sets the target of this commerce discount.
      Specified by:
      setTarget in interface CommerceDiscountModel
      Parameters:
      target - the target of this commerce discount
    • setTitle

      public void setTitle(String title)
      Sets the title of this commerce discount.
      Specified by:
      setTitle in interface CommerceDiscountModel
      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 interface CommerceDiscountModel
      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 interface CommerceDiscountModel
      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 interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserId in interface CommerceDiscountModel
      Parameters:
      userId - the user ID of this commerce discount
    • setUserName

      public void setUserName(String userName)
      Sets the user name of this commerce discount.
      Specified by:
      setUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserName in interface CommerceDiscountModel
      Parameters:
      userName - the user name of this commerce discount
    • setUserUuid

      public void setUserUuid(String userUuid)
      Sets the user uuid of this commerce discount.
      Specified by:
      setUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserUuid in interface CommerceDiscountModel
      Parameters:
      userUuid - the user uuid of this commerce discount
    • setUuid

      public void setUuid(String uuid)
      Sets the uuid of this commerce discount.
      Specified by:
      setUuid in interface CommerceDiscountModel
      Specified by:
      setUuid in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      uuid - the uuid of this commerce discount
    • toXmlString

      public String toXmlString()
      Specified by:
      toXmlString in interface CommerceDiscountModel
    • getStagedModelType

      public com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
      Specified by:
      getStagedModelType in interface com.liferay.portal.kernel.model.StagedModel
    • wrap

      protected CommerceDiscountWrapper wrap(CommerceDiscount commerceDiscount)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceDiscount>