Class CPDefinitionOptionRelWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPDefinitionOptionRel>
com.liferay.commerce.product.model.CPDefinitionOptionRelWrapper
All Implemented Interfaces:
CPDefinitionOptionRel, CPDefinitionOptionRelModel, com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<CPDefinitionOptionRel>, com.liferay.portal.kernel.model.change.tracking.CTModel<CPDefinitionOptionRel>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.GroupedModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.ModelWrapper<CPDefinitionOptionRel>, 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, Serializable, Cloneable, Comparable<CPDefinitionOptionRel>

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

This class is a wrapper for CPDefinitionOptionRel.

See Also:
Generated:
  • Constructor Details

    • CPDefinitionOptionRelWrapper

      public CPDefinitionOptionRelWrapper(CPDefinitionOptionRel cpDefinitionOptionRel)
  • Method Details

    • getModelAttributes

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

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

      public CPDefinitionOptionRel cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<CPDefinitionOptionRel>
      Specified by:
      cloneWithOriginalValues in interface CPDefinitionOptionRelModel
    • fetchPreselectedCPDefinitionOptionValueRel

      public CPDefinitionOptionValueRel fetchPreselectedCPDefinitionOptionValueRel()
      Specified by:
      fetchPreselectedCPDefinitionOptionValueRel in interface CPDefinitionOptionRel
    • getAvailableLanguageIds

      public String[] getAvailableLanguageIds()
      Specified by:
      getAvailableLanguageIds in interface CPDefinitionOptionRelModel
      Specified by:
      getAvailableLanguageIds in interface com.liferay.portal.kernel.model.LocalizedModel
    • getCommerceOptionTypeKey

      public String getCommerceOptionTypeKey()
      Returns the commerce option type key of this cp definition option rel.
      Specified by:
      getCommerceOptionTypeKey in interface CPDefinitionOptionRelModel
      Returns:
      the commerce option type key of this cp definition option rel
    • getCompanyId

      public long getCompanyId()
      Returns the company ID of this cp definition option rel.
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCompanyId in interface CPDefinitionOptionRelModel
      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 cp definition option rel
    • getCPDefinition

      public CPDefinition getCPDefinition() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPDefinition in interface CPDefinitionOptionRel
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPDefinitionId

      public long getCPDefinitionId()
      Returns the cp definition ID of this cp definition option rel.
      Specified by:
      getCPDefinitionId in interface CPDefinitionOptionRelModel
      Returns:
      the cp definition ID of this cp definition option rel
    • getCPDefinitionOptionRelId

      public long getCPDefinitionOptionRelId()
      Returns the cp definition option rel ID of this cp definition option rel.
      Specified by:
      getCPDefinitionOptionRelId in interface CPDefinitionOptionRelModel
      Returns:
      the cp definition option rel ID of this cp definition option rel
    • getCPDefinitionOptionValueRels

      public List<CPDefinitionOptionValueRel> getCPDefinitionOptionValueRels()
      Specified by:
      getCPDefinitionOptionValueRels in interface CPDefinitionOptionRel
    • getCPDefinitionOptionValueRelsCount

      public int getCPDefinitionOptionValueRelsCount()
      Specified by:
      getCPDefinitionOptionValueRelsCount in interface CPDefinitionOptionRel
    • getCPOption

      public CPOption getCPOption() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPOption in interface CPDefinitionOptionRel
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPOptionId

      public long getCPOptionId()
      Returns the cp option ID of this cp definition option rel.
      Specified by:
      getCPOptionId in interface CPDefinitionOptionRelModel
      Returns:
      the cp option ID of this cp definition option rel
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this cp definition option rel.
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCreateDate in interface CPDefinitionOptionRelModel
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the create date of this cp definition option rel
    • getCtCollectionId

      public long getCtCollectionId()
      Returns the ct collection ID of this cp definition option rel.
      Specified by:
      getCtCollectionId in interface CPDefinitionOptionRelModel
      Specified by:
      getCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPDefinitionOptionRel>
      Returns:
      the ct collection ID of this cp definition option rel
    • getDefaultLanguageId

      public String getDefaultLanguageId()
      Specified by:
      getDefaultLanguageId in interface CPDefinitionOptionRelModel
      Specified by:
      getDefaultLanguageId in interface com.liferay.portal.kernel.model.LocalizedModel
    • getDefinedExternally

      public boolean getDefinedExternally()
      Returns the defined externally of this cp definition option rel.
      Specified by:
      getDefinedExternally in interface CPDefinitionOptionRelModel
      Returns:
      the defined externally of this cp definition option rel
    • getDescription

      public String getDescription()
      Returns the description of this cp definition option rel.
      Specified by:
      getDescription in interface CPDefinitionOptionRelModel
      Returns:
      the description of this cp definition option rel
    • getDescription

      public String getDescription(Locale locale)
      Returns the localized description of this cp definition option rel in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface CPDefinitionOptionRelModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized description of this cp definition option rel
    • getDescription

      public String getDescription(Locale locale, boolean useDefault)
      Returns the localized description of this cp definition option rel in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface CPDefinitionOptionRelModel
      Parameters:
      locale - the local of the language
      useDefault - whether to use the default language if no localization exists for the requested language
      Returns:
      the localized description of this cp definition option rel. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getDescription

      public String getDescription(String languageId)
      Returns the localized description of this cp definition option rel in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface CPDefinitionOptionRelModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized description of this cp definition option rel
    • getDescription

      public String getDescription(String languageId, boolean useDefault)
      Returns the localized description of this cp definition option rel in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface CPDefinitionOptionRelModel
      Parameters:
      languageId - the ID of the language
      useDefault - whether to use the default language if no localization exists for the requested language
      Returns:
      the localized description of this cp definition option rel
    • getDescriptionCurrentLanguageId

      public String getDescriptionCurrentLanguageId()
      Specified by:
      getDescriptionCurrentLanguageId in interface CPDefinitionOptionRelModel
    • getDescriptionCurrentValue

      public String getDescriptionCurrentValue()
      Specified by:
      getDescriptionCurrentValue in interface CPDefinitionOptionRelModel
    • getDescriptionMap

      public Map<Locale,String> getDescriptionMap()
      Returns a map of the locales and localized descriptions of this cp definition option rel.
      Specified by:
      getDescriptionMap in interface CPDefinitionOptionRelModel
      Returns:
      the locales and localized descriptions of this cp definition option rel
    • getFacetable

      public boolean getFacetable()
      Returns the facetable of this cp definition option rel.
      Specified by:
      getFacetable in interface CPDefinitionOptionRelModel
      Returns:
      the facetable of this cp definition option rel
    • getGroupId

      public long getGroupId()
      Returns the group ID of this cp definition option rel.
      Specified by:
      getGroupId in interface CPDefinitionOptionRelModel
      Specified by:
      getGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Returns:
      the group ID of this cp definition option rel
    • getInfoItemServiceKey

      public String getInfoItemServiceKey()
      Returns the info item service key of this cp definition option rel.
      Specified by:
      getInfoItemServiceKey in interface CPDefinitionOptionRelModel
      Returns:
      the info item service key of this cp definition option rel
    • getKey

      public String getKey()
      Returns the key of this cp definition option rel.
      Specified by:
      getKey in interface CPDefinitionOptionRelModel
      Returns:
      the key of this cp definition option rel
    • getModifiedDate

      public Date getModifiedDate()
      Returns the modified date of this cp definition option rel.
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getModifiedDate in interface CPDefinitionOptionRelModel
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the modified date of this cp definition option rel
    • getMvccVersion

      public long getMvccVersion()
      Returns the mvcc version of this cp definition option rel.
      Specified by:
      getMvccVersion in interface CPDefinitionOptionRelModel
      Specified by:
      getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Returns:
      the mvcc version of this cp definition option rel
    • getName

      public String getName()
      Returns the name of this cp definition option rel.
      Specified by:
      getName in interface CPDefinitionOptionRelModel
      Returns:
      the name of this cp definition option rel
    • getName

      public String getName(Locale locale)
      Returns the localized name of this cp definition option rel in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getName in interface CPDefinitionOptionRelModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized name of this cp definition option rel
    • getName

      public String getName(Locale locale, boolean useDefault)
      Returns the localized name of this cp definition option rel in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getName in interface CPDefinitionOptionRelModel
      Parameters:
      locale - the local of the language
      useDefault - whether to use the default language if no localization exists for the requested language
      Returns:
      the localized name of this cp definition option rel. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getName

      public String getName(String languageId)
      Returns the localized name of this cp definition option rel in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getName in interface CPDefinitionOptionRelModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized name of this cp definition option rel
    • getName

      public String getName(String languageId, boolean useDefault)
      Returns the localized name of this cp definition option rel in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getName in interface CPDefinitionOptionRelModel
      Parameters:
      languageId - the ID of the language
      useDefault - whether to use the default language if no localization exists for the requested language
      Returns:
      the localized name of this cp definition option rel
    • getNameCurrentLanguageId

      public String getNameCurrentLanguageId()
      Specified by:
      getNameCurrentLanguageId in interface CPDefinitionOptionRelModel
    • getNameCurrentValue

      public String getNameCurrentValue()
      Specified by:
      getNameCurrentValue in interface CPDefinitionOptionRelModel
    • getNameMap

      public Map<Locale,String> getNameMap()
      Returns a map of the locales and localized names of this cp definition option rel.
      Specified by:
      getNameMap in interface CPDefinitionOptionRelModel
      Returns:
      the locales and localized names of this cp definition option rel
    • getPriceType

      public String getPriceType()
      Returns the price type of this cp definition option rel.
      Specified by:
      getPriceType in interface CPDefinitionOptionRelModel
      Returns:
      the price type of this cp definition option rel
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this cp definition option rel.
      Specified by:
      getPrimaryKey in interface CPDefinitionOptionRelModel
      Specified by:
      getPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPDefinitionOptionRel>
      Returns:
      the primary key of this cp definition option rel
    • getPriority

      public double getPriority()
      Returns the priority of this cp definition option rel.
      Specified by:
      getPriority in interface CPDefinitionOptionRelModel
      Returns:
      the priority of this cp definition option rel
    • getRequired

      public boolean getRequired()
      Returns the required of this cp definition option rel.
      Specified by:
      getRequired in interface CPDefinitionOptionRelModel
      Returns:
      the required of this cp definition option rel
    • getSkuContributor

      public boolean getSkuContributor()
      Returns the sku contributor of this cp definition option rel.
      Specified by:
      getSkuContributor in interface CPDefinitionOptionRelModel
      Returns:
      the sku contributor of this cp definition option rel
    • getTypeSettings

      public String getTypeSettings()
      Returns the type settings of this cp definition option rel.
      Specified by:
      getTypeSettings in interface CPDefinitionOptionRelModel
      Returns:
      the type settings of this cp definition option rel
    • getTypeSettingsUnicodeProperties

      public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsUnicodeProperties()
      Specified by:
      getTypeSettingsUnicodeProperties in interface CPDefinitionOptionRel
    • getUserId

      public long getUserId()
      Returns the user ID of this cp definition option rel.
      Specified by:
      getUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserId in interface CPDefinitionOptionRelModel
      Returns:
      the user ID of this cp definition option rel
    • getUserName

      public String getUserName()
      Returns the user name of this cp definition option rel.
      Specified by:
      getUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserName in interface CPDefinitionOptionRelModel
      Returns:
      the user name of this cp definition option rel
    • getUserUuid

      public String getUserUuid()
      Returns the user uuid of this cp definition option rel.
      Specified by:
      getUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserUuid in interface CPDefinitionOptionRelModel
      Returns:
      the user uuid of this cp definition option rel
    • getUuid

      public String getUuid()
      Returns the uuid of this cp definition option rel.
      Specified by:
      getUuid in interface CPDefinitionOptionRelModel
      Specified by:
      getUuid in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the uuid of this cp definition option rel
    • isDefinedExternally

      public boolean isDefinedExternally()
      Returns true if this cp definition option rel is defined externally.
      Specified by:
      isDefinedExternally in interface CPDefinitionOptionRelModel
      Returns:
      true if this cp definition option rel is defined externally; false otherwise
    • isFacetable

      public boolean isFacetable()
      Returns true if this cp definition option rel is facetable.
      Specified by:
      isFacetable in interface CPDefinitionOptionRelModel
      Returns:
      true if this cp definition option rel is facetable; false otherwise
    • isPriceContributor

      public boolean isPriceContributor()
      Specified by:
      isPriceContributor in interface CPDefinitionOptionRel
    • isPriceTypeDynamic

      public boolean isPriceTypeDynamic()
      Specified by:
      isPriceTypeDynamic in interface CPDefinitionOptionRel
    • isPriceTypeStatic

      public boolean isPriceTypeStatic()
      Specified by:
      isPriceTypeStatic in interface CPDefinitionOptionRel
    • isRequired

      public boolean isRequired()
      Returns true if this cp definition option rel is required.
      Specified by:
      isRequired in interface CPDefinitionOptionRelModel
      Returns:
      true if this cp definition option rel is required; false otherwise
    • isSkuContributor

      public boolean isSkuContributor()
      Returns true if this cp definition option rel is sku contributor.
      Specified by:
      isSkuContributor in interface CPDefinitionOptionRelModel
      Returns:
      true if this cp definition option rel is sku contributor; false otherwise
    • persist

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

      public void prepareLocalizedFieldsForImport() throws com.liferay.portal.kernel.exception.LocaleException
      Specified by:
      prepareLocalizedFieldsForImport in interface CPDefinitionOptionRelModel
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • prepareLocalizedFieldsForImport

      public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws com.liferay.portal.kernel.exception.LocaleException
      Specified by:
      prepareLocalizedFieldsForImport in interface CPDefinitionOptionRelModel
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • setCommerceOptionTypeKey

      public void setCommerceOptionTypeKey(String commerceOptionTypeKey)
      Sets the commerce option type key of this cp definition option rel.
      Specified by:
      setCommerceOptionTypeKey in interface CPDefinitionOptionRelModel
      Parameters:
      commerceOptionTypeKey - the commerce option type key of this cp definition option rel
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this cp definition option rel.
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface CPDefinitionOptionRelModel
      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 cp definition option rel
    • setCPDefinitionId

      public void setCPDefinitionId(long CPDefinitionId)
      Sets the cp definition ID of this cp definition option rel.
      Specified by:
      setCPDefinitionId in interface CPDefinitionOptionRelModel
      Parameters:
      CPDefinitionId - the cp definition ID of this cp definition option rel
    • setCPDefinitionOptionRelId

      public void setCPDefinitionOptionRelId(long CPDefinitionOptionRelId)
      Sets the cp definition option rel ID of this cp definition option rel.
      Specified by:
      setCPDefinitionOptionRelId in interface CPDefinitionOptionRelModel
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID of this cp definition option rel
    • setCPOptionId

      public void setCPOptionId(long CPOptionId)
      Sets the cp option ID of this cp definition option rel.
      Specified by:
      setCPOptionId in interface CPDefinitionOptionRelModel
      Parameters:
      CPOptionId - the cp option ID of this cp definition option rel
    • setCreateDate

      public void setCreateDate(Date createDate)
      Sets the create date of this cp definition option rel.
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCreateDate in interface CPDefinitionOptionRelModel
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      createDate - the create date of this cp definition option rel
    • setCtCollectionId

      public void setCtCollectionId(long ctCollectionId)
      Sets the ct collection ID of this cp definition option rel.
      Specified by:
      setCtCollectionId in interface CPDefinitionOptionRelModel
      Specified by:
      setCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPDefinitionOptionRel>
      Parameters:
      ctCollectionId - the ct collection ID of this cp definition option rel
    • setDefinedExternally

      public void setDefinedExternally(boolean definedExternally)
      Sets whether this cp definition option rel is defined externally.
      Specified by:
      setDefinedExternally in interface CPDefinitionOptionRelModel
      Parameters:
      definedExternally - the defined externally of this cp definition option rel
    • setDescription

      public void setDescription(String description)
      Sets the description of this cp definition option rel.
      Specified by:
      setDescription in interface CPDefinitionOptionRelModel
      Parameters:
      description - the description of this cp definition option rel
    • setDescription

      public void setDescription(String description, Locale locale)
      Sets the localized description of this cp definition option rel in the language.
      Specified by:
      setDescription in interface CPDefinitionOptionRelModel
      Parameters:
      description - the localized description of this cp definition option rel
      locale - the locale of the language
    • setDescription

      public void setDescription(String description, Locale locale, Locale defaultLocale)
      Sets the localized description of this cp definition option rel in the language, and sets the default locale.
      Specified by:
      setDescription in interface CPDefinitionOptionRelModel
      Parameters:
      description - the localized description of this cp definition option rel
      locale - the locale of the language
      defaultLocale - the default locale
    • setDescriptionCurrentLanguageId

      public void setDescriptionCurrentLanguageId(String languageId)
      Specified by:
      setDescriptionCurrentLanguageId in interface CPDefinitionOptionRelModel
    • setDescriptionMap

      public void setDescriptionMap(Map<Locale,String> descriptionMap)
      Sets the localized descriptions of this cp definition option rel from the map of locales and localized descriptions.
      Specified by:
      setDescriptionMap in interface CPDefinitionOptionRelModel
      Parameters:
      descriptionMap - the locales and localized descriptions of this cp definition option rel
    • setDescriptionMap

      public void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
      Sets the localized descriptions of this cp definition option rel from the map of locales and localized descriptions, and sets the default locale.
      Specified by:
      setDescriptionMap in interface CPDefinitionOptionRelModel
      Parameters:
      descriptionMap - the locales and localized descriptions of this cp definition option rel
      defaultLocale - the default locale
    • setFacetable

      public void setFacetable(boolean facetable)
      Sets whether this cp definition option rel is facetable.
      Specified by:
      setFacetable in interface CPDefinitionOptionRelModel
      Parameters:
      facetable - the facetable of this cp definition option rel
    • setGroupId

      public void setGroupId(long groupId)
      Sets the group ID of this cp definition option rel.
      Specified by:
      setGroupId in interface CPDefinitionOptionRelModel
      Specified by:
      setGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Parameters:
      groupId - the group ID of this cp definition option rel
    • setInfoItemServiceKey

      public void setInfoItemServiceKey(String infoItemServiceKey)
      Sets the info item service key of this cp definition option rel.
      Specified by:
      setInfoItemServiceKey in interface CPDefinitionOptionRelModel
      Parameters:
      infoItemServiceKey - the info item service key of this cp definition option rel
    • setKey

      public void setKey(String key)
      Sets the key of this cp definition option rel.
      Specified by:
      setKey in interface CPDefinitionOptionRelModel
      Parameters:
      key - the key of this cp definition option rel
    • setModifiedDate

      public void setModifiedDate(Date modifiedDate)
      Sets the modified date of this cp definition option rel.
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setModifiedDate in interface CPDefinitionOptionRelModel
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      modifiedDate - the modified date of this cp definition option rel
    • setMvccVersion

      public void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this cp definition option rel.
      Specified by:
      setMvccVersion in interface CPDefinitionOptionRelModel
      Specified by:
      setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Parameters:
      mvccVersion - the mvcc version of this cp definition option rel
    • setName

      public void setName(String name)
      Sets the name of this cp definition option rel.
      Specified by:
      setName in interface CPDefinitionOptionRelModel
      Parameters:
      name - the name of this cp definition option rel
    • setName

      public void setName(String name, Locale locale)
      Sets the localized name of this cp definition option rel in the language.
      Specified by:
      setName in interface CPDefinitionOptionRelModel
      Parameters:
      name - the localized name of this cp definition option rel
      locale - the locale of the language
    • setName

      public void setName(String name, Locale locale, Locale defaultLocale)
      Sets the localized name of this cp definition option rel in the language, and sets the default locale.
      Specified by:
      setName in interface CPDefinitionOptionRelModel
      Parameters:
      name - the localized name of this cp definition option rel
      locale - the locale of the language
      defaultLocale - the default locale
    • setNameCurrentLanguageId

      public void setNameCurrentLanguageId(String languageId)
      Specified by:
      setNameCurrentLanguageId in interface CPDefinitionOptionRelModel
    • setNameMap

      public void setNameMap(Map<Locale,String> nameMap)
      Sets the localized names of this cp definition option rel from the map of locales and localized names.
      Specified by:
      setNameMap in interface CPDefinitionOptionRelModel
      Parameters:
      nameMap - the locales and localized names of this cp definition option rel
    • setNameMap

      public void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
      Sets the localized names of this cp definition option rel from the map of locales and localized names, and sets the default locale.
      Specified by:
      setNameMap in interface CPDefinitionOptionRelModel
      Parameters:
      nameMap - the locales and localized names of this cp definition option rel
      defaultLocale - the default locale
    • setPriceType

      public void setPriceType(String priceType)
      Sets the price type of this cp definition option rel.
      Specified by:
      setPriceType in interface CPDefinitionOptionRelModel
      Parameters:
      priceType - the price type of this cp definition option rel
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this cp definition option rel.
      Specified by:
      setPrimaryKey in interface CPDefinitionOptionRelModel
      Specified by:
      setPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPDefinitionOptionRel>
      Parameters:
      primaryKey - the primary key of this cp definition option rel
    • setPriority

      public void setPriority(double priority)
      Sets the priority of this cp definition option rel.
      Specified by:
      setPriority in interface CPDefinitionOptionRelModel
      Parameters:
      priority - the priority of this cp definition option rel
    • setRequired

      public void setRequired(boolean required)
      Sets whether this cp definition option rel is required.
      Specified by:
      setRequired in interface CPDefinitionOptionRelModel
      Parameters:
      required - the required of this cp definition option rel
    • setSkuContributor

      public void setSkuContributor(boolean skuContributor)
      Sets whether this cp definition option rel is sku contributor.
      Specified by:
      setSkuContributor in interface CPDefinitionOptionRelModel
      Parameters:
      skuContributor - the sku contributor of this cp definition option rel
    • setTypeSettings

      public void setTypeSettings(String typeSettings)
      Sets the type settings of this cp definition option rel.
      Specified by:
      setTypeSettings in interface CPDefinitionOptionRelModel
      Parameters:
      typeSettings - the type settings of this cp definition option rel
    • setUserId

      public void setUserId(long userId)
      Sets the user ID of this cp definition option rel.
      Specified by:
      setUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserId in interface CPDefinitionOptionRelModel
      Parameters:
      userId - the user ID of this cp definition option rel
    • setUserName

      public void setUserName(String userName)
      Sets the user name of this cp definition option rel.
      Specified by:
      setUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserName in interface CPDefinitionOptionRelModel
      Parameters:
      userName - the user name of this cp definition option rel
    • setUserUuid

      public void setUserUuid(String userUuid)
      Sets the user uuid of this cp definition option rel.
      Specified by:
      setUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserUuid in interface CPDefinitionOptionRelModel
      Parameters:
      userUuid - the user uuid of this cp definition option rel
    • setUuid

      public void setUuid(String uuid)
      Sets the uuid of this cp definition option rel.
      Specified by:
      setUuid in interface CPDefinitionOptionRelModel
      Specified by:
      setUuid in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      uuid - the uuid of this cp definition option rel
    • toXmlString

      public String toXmlString()
      Specified by:
      toXmlString in interface CPDefinitionOptionRelModel
    • getAttributeGetterFunctions

      public Map<String,Function<CPDefinitionOptionRel,Object>> getAttributeGetterFunctions()
      Specified by:
      getAttributeGetterFunctions in interface com.liferay.portal.kernel.model.BaseModel<CPDefinitionOptionRel>
    • getAttributeSetterBiConsumers

      public Map<String,BiConsumer<CPDefinitionOptionRel,Object>> getAttributeSetterBiConsumers()
      Specified by:
      getAttributeSetterBiConsumers in interface com.liferay.portal.kernel.model.BaseModel<CPDefinitionOptionRel>
    • getStagedModelType

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

      protected CPDefinitionOptionRelWrapper wrap(CPDefinitionOptionRel cpDefinitionOptionRel)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPDefinitionOptionRel>