Class CommerceDiscountRuleWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceDiscountRule>
com.liferay.commerce.discount.model.CommerceDiscountRuleWrapper
All Implemented Interfaces:
CommerceDiscountRule, CommerceDiscountRuleModel, com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<CommerceDiscountRule>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.ModelWrapper<CommerceDiscountRule>, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.PersistedModel, com.liferay.portal.kernel.model.ShardedModel, Serializable, Cloneable, Comparable<CommerceDiscountRule>

public class CommerceDiscountRuleWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceDiscountRule> implements CommerceDiscountRule, com.liferay.portal.kernel.model.ModelWrapper<CommerceDiscountRule>

This class is a wrapper for CommerceDiscountRule.

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.CommerceDiscountRule

    COMMERCE_DISCOUNT_RULE_ID_ACCESSOR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    long
    Returns the commerce discount ID of this commerce discount rule.
    long
    Returns the commerce discount rule ID of this commerce discount rule.
    long
    Returns the company ID of this commerce discount rule.
    Returns the create date of this commerce discount rule.
     
    Returns the modified date of this commerce discount rule.
    long
    Returns the mvcc version of this commerce discount rule.
    Returns the name of this commerce discount rule.
    long
    Returns the primary key of this commerce discount rule.
    com.liferay.portal.kernel.util.UnicodeProperties
     
     
    Returns the type of this commerce discount rule.
    Returns the type settings of this commerce discount rule.
    long
    Returns the user ID of this commerce discount rule.
    Returns the user name of this commerce discount rule.
    Returns the user uuid of this commerce discount rule.
    void
     
    void
    setCommerceDiscountId(long commerceDiscountId)
    Sets the commerce discount ID of this commerce discount rule.
    void
    setCommerceDiscountRuleId(long commerceDiscountRuleId)
    Sets the commerce discount rule ID of this commerce discount rule.
    void
    setCompanyId(long companyId)
    Sets the company ID of this commerce discount rule.
    void
    setCreateDate(Date createDate)
    Sets the create date of this commerce discount rule.
    void
     
    void
    setModifiedDate(Date modifiedDate)
    Sets the modified date of this commerce discount rule.
    void
    setMvccVersion(long mvccVersion)
    Sets the mvcc version of this commerce discount rule.
    void
    Sets the name of this commerce discount rule.
    void
    setPrimaryKey(long primaryKey)
    Sets the primary key of this commerce discount rule.
    void
    setSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties unicodeProperties)
     
    void
    Sets the type of this commerce discount rule.
    void
    setTypeSettings(String typeSettings)
    Sets the type settings of this commerce discount rule.
    void
    setUserId(long userId)
    Sets the user ID of this commerce discount rule.
    void
    setUserName(String userName)
    Sets the user name of this commerce discount rule.
    void
    setUserUuid(String userUuid)
    Sets the user uuid of this commerce discount rule.
     
    wrap(CommerceDiscountRule commerceDiscountRule)
     

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

    • CommerceDiscountRuleWrapper

      public CommerceDiscountRuleWrapper(CommerceDiscountRule commerceDiscountRule)
  • Method Details

    • getModelAttributes

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

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

      public CommerceDiscountRule cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<CommerceDiscountRule>
      Specified by:
      cloneWithOriginalValues in interface CommerceDiscountRuleModel
    • getCommerceDiscountId

      public long getCommerceDiscountId()
      Returns the commerce discount ID of this commerce discount rule.
      Specified by:
      getCommerceDiscountId in interface CommerceDiscountRuleModel
      Returns:
      the commerce discount ID of this commerce discount rule
    • getCommerceDiscountRuleId

      public long getCommerceDiscountRuleId()
      Returns the commerce discount rule ID of this commerce discount rule.
      Specified by:
      getCommerceDiscountRuleId in interface CommerceDiscountRuleModel
      Returns:
      the commerce discount rule ID of this commerce discount rule
    • getCompanyId

      public long getCompanyId()
      Returns the company ID of this commerce discount rule.
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCompanyId in interface CommerceDiscountRuleModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Returns:
      the company ID of this commerce discount rule
    • getCreateDate

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

      public Date getModifiedDate()
      Returns the modified date of this commerce discount rule.
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getModifiedDate in interface CommerceDiscountRuleModel
      Returns:
      the modified date of this commerce discount rule
    • getMvccVersion

      public long getMvccVersion()
      Returns the mvcc version of this commerce discount rule.
      Specified by:
      getMvccVersion in interface CommerceDiscountRuleModel
      Specified by:
      getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Returns:
      the mvcc version of this commerce discount rule
    • getName

      public String getName()
      Returns the name of this commerce discount rule.
      Specified by:
      getName in interface CommerceDiscountRuleModel
      Returns:
      the name of this commerce discount rule
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this commerce discount rule.
      Specified by:
      getPrimaryKey in interface CommerceDiscountRuleModel
      Returns:
      the primary key of this commerce discount rule
    • getSettingsProperties

      public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties()
      Specified by:
      getSettingsProperties in interface CommerceDiscountRule
    • getSettingsProperty

      public String getSettingsProperty(String key)
      Specified by:
      getSettingsProperty in interface CommerceDiscountRule
    • getType

      public String getType()
      Returns the type of this commerce discount rule.
      Specified by:
      getType in interface CommerceDiscountRuleModel
      Returns:
      the type of this commerce discount rule
    • getTypeSettings

      public String getTypeSettings()
      Returns the type settings of this commerce discount rule.
      Specified by:
      getTypeSettings in interface CommerceDiscountRuleModel
      Returns:
      the type settings of this commerce discount rule
    • getUserId

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

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

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

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

      public void setCommerceDiscountId(long commerceDiscountId)
      Sets the commerce discount ID of this commerce discount rule.
      Specified by:
      setCommerceDiscountId in interface CommerceDiscountRuleModel
      Parameters:
      commerceDiscountId - the commerce discount ID of this commerce discount rule
    • setCommerceDiscountRuleId

      public void setCommerceDiscountRuleId(long commerceDiscountRuleId)
      Sets the commerce discount rule ID of this commerce discount rule.
      Specified by:
      setCommerceDiscountRuleId in interface CommerceDiscountRuleModel
      Parameters:
      commerceDiscountRuleId - the commerce discount rule ID of this commerce discount rule
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this commerce discount rule.
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface CommerceDiscountRuleModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Parameters:
      companyId - the company ID of this commerce discount rule
    • setCreateDate

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

      public void setModifiedDate(Date modifiedDate)
      Sets the modified date of this commerce discount rule.
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setModifiedDate in interface CommerceDiscountRuleModel
      Parameters:
      modifiedDate - the modified date of this commerce discount rule
    • setMvccVersion

      public void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this commerce discount rule.
      Specified by:
      setMvccVersion in interface CommerceDiscountRuleModel
      Specified by:
      setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Parameters:
      mvccVersion - the mvcc version of this commerce discount rule
    • setName

      public void setName(String name)
      Sets the name of this commerce discount rule.
      Specified by:
      setName in interface CommerceDiscountRuleModel
      Parameters:
      name - the name of this commerce discount rule
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this commerce discount rule.
      Specified by:
      setPrimaryKey in interface CommerceDiscountRuleModel
      Parameters:
      primaryKey - the primary key of this commerce discount rule
    • setSettingsProperties

      public void setSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties unicodeProperties)
      Specified by:
      setSettingsProperties in interface CommerceDiscountRule
    • setType

      public void setType(String type)
      Sets the type of this commerce discount rule.
      Specified by:
      setType in interface CommerceDiscountRuleModel
      Parameters:
      type - the type of this commerce discount rule
    • setTypeSettings

      public void setTypeSettings(String typeSettings)
      Sets the type settings of this commerce discount rule.
      Specified by:
      setTypeSettings in interface CommerceDiscountRuleModel
      Parameters:
      typeSettings - the type settings of this commerce discount rule
    • setUserId

      public void setUserId(long userId)
      Sets the user ID of this commerce discount rule.
      Specified by:
      setUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserId in interface CommerceDiscountRuleModel
      Parameters:
      userId - the user ID of this commerce discount rule
    • setUserName

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

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

      public String toXmlString()
      Specified by:
      toXmlString in interface CommerceDiscountRuleModel
    • wrap

      protected CommerceDiscountRuleWrapper wrap(CommerceDiscountRule commerceDiscountRule)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceDiscountRule>