Class CPDefinitionSpecificationOptionValueWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPDefinitionSpecificationOptionValue>
com.liferay.commerce.product.model.CPDefinitionSpecificationOptionValueWrapper
All Implemented Interfaces:
CPDefinitionSpecificationOptionValue, CPDefinitionSpecificationOptionValueModel, com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<CPDefinitionSpecificationOptionValue>, com.liferay.portal.kernel.model.change.tracking.CTModel<CPDefinitionSpecificationOptionValue>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.ExternalReferenceCodeModel, com.liferay.portal.kernel.model.GroupedModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.ModelWrapper<CPDefinitionSpecificationOptionValue>, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.PersistedModel, com.liferay.portal.kernel.model.ShardedModel, com.liferay.portal.kernel.model.StagedGroupedModel, com.liferay.portal.kernel.model.StagedModel, Serializable, Cloneable, Comparable<CPDefinitionSpecificationOptionValue>

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

This class is a wrapper for CPDefinitionSpecificationOptionValue.

See Also:
Generated:
  • Constructor Details

  • Method Details

    • getModelAttributes

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

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

      public CPDefinitionSpecificationOptionValue cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<CPDefinitionSpecificationOptionValue>
      Specified by:
      cloneWithOriginalValues in interface CPDefinitionSpecificationOptionValueModel
    • getAvailableLanguageIds

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

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

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

      public long getCPDefinitionId()
      Returns the cp definition ID of this cp definition specification option value.
      Specified by:
      getCPDefinitionId in interface CPDefinitionSpecificationOptionValueModel
      Returns:
      the cp definition ID of this cp definition specification option value
    • getCPDefinitionSpecificationOptionValueId

      public long getCPDefinitionSpecificationOptionValueId()
      Returns the cp definition specification option value ID of this cp definition specification option value.
      Specified by:
      getCPDefinitionSpecificationOptionValueId in interface CPDefinitionSpecificationOptionValueModel
      Returns:
      the cp definition specification option value ID of this cp definition specification option value
    • getCPOptionCategory

      public CPOptionCategory getCPOptionCategory() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPOptionCategory in interface CPDefinitionSpecificationOptionValue
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPOptionCategoryId

      public long getCPOptionCategoryId()
      Returns the cp option category ID of this cp definition specification option value.
      Specified by:
      getCPOptionCategoryId in interface CPDefinitionSpecificationOptionValueModel
      Returns:
      the cp option category ID of this cp definition specification option value
    • getCPSpecificationOption

      public CPSpecificationOption getCPSpecificationOption() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPSpecificationOption in interface CPDefinitionSpecificationOptionValue
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPSpecificationOptionId

      public long getCPSpecificationOptionId()
      Returns the cp specification option ID of this cp definition specification option value.
      Specified by:
      getCPSpecificationOptionId in interface CPDefinitionSpecificationOptionValueModel
      Returns:
      the cp specification option ID of this cp definition specification option value
    • getCreateDate

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

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

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

      public String getExternalReferenceCode()
      Returns the external reference code of this cp definition specification option value.
      Specified by:
      getExternalReferenceCode in interface CPDefinitionSpecificationOptionValueModel
      Specified by:
      getExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Returns:
      the external reference code of this cp definition specification option value
    • getGroupId

      public long getGroupId()
      Returns the group ID of this cp definition specification option value.
      Specified by:
      getGroupId in interface CPDefinitionSpecificationOptionValueModel
      Specified by:
      getGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Returns:
      the group ID of this cp definition specification option value
    • getKey

      public String getKey()
      Returns the key of this cp definition specification option value.
      Specified by:
      getKey in interface CPDefinitionSpecificationOptionValueModel
      Returns:
      the key of this cp definition specification option value
    • getLastPublishDate

      public Date getLastPublishDate()
      Returns the last publish date of this cp definition specification option value.
      Specified by:
      getLastPublishDate in interface CPDefinitionSpecificationOptionValueModel
      Specified by:
      getLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModel
      Returns:
      the last publish date of this cp definition specification option value
    • getModifiedDate

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

      public long getMvccVersion()
      Returns the mvcc version of this cp definition specification option value.
      Specified by:
      getMvccVersion in interface CPDefinitionSpecificationOptionValueModel
      Specified by:
      getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Returns:
      the mvcc version of this cp definition specification option value
    • getPrimaryKey

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

      public double getPriority()
      Returns the priority of this cp definition specification option value.
      Specified by:
      getPriority in interface CPDefinitionSpecificationOptionValueModel
      Returns:
      the priority of this cp definition specification option value
    • getUserId

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

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

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

      public String getUuid()
      Returns the uuid of this cp definition specification option value.
      Specified by:
      getUuid in interface CPDefinitionSpecificationOptionValueModel
      Specified by:
      getUuid in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the uuid of this cp definition specification option value
    • getValue

      public String getValue()
      Returns the value of this cp definition specification option value.
      Specified by:
      getValue in interface CPDefinitionSpecificationOptionValueModel
      Returns:
      the value of this cp definition specification option value
    • getValue

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

      public String getValue(Locale locale, boolean useDefault)
      Returns the localized value of this cp definition specification option value in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getValue in interface CPDefinitionSpecificationOptionValueModel
      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 value of this cp definition specification option value. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getValue

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

      public String getValue(String languageId, boolean useDefault)
      Returns the localized value of this cp definition specification option value in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getValue in interface CPDefinitionSpecificationOptionValueModel
      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 value of this cp definition specification option value
    • getValueCurrentLanguageId

      public String getValueCurrentLanguageId()
      Specified by:
      getValueCurrentLanguageId in interface CPDefinitionSpecificationOptionValueModel
    • getValueCurrentValue

      public String getValueCurrentValue()
      Specified by:
      getValueCurrentValue in interface CPDefinitionSpecificationOptionValueModel
    • getValueMap

      public Map<Locale,String> getValueMap()
      Returns a map of the locales and localized values of this cp definition specification option value.
      Specified by:
      getValueMap in interface CPDefinitionSpecificationOptionValueModel
      Returns:
      the locales and localized values of this cp definition specification option value
    • 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 CPDefinitionSpecificationOptionValueModel
      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 CPDefinitionSpecificationOptionValueModel
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • setCompanyId

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

      public void setCPDefinitionId(long CPDefinitionId)
      Sets the cp definition ID of this cp definition specification option value.
      Specified by:
      setCPDefinitionId in interface CPDefinitionSpecificationOptionValueModel
      Parameters:
      CPDefinitionId - the cp definition ID of this cp definition specification option value
    • setCPDefinitionSpecificationOptionValueId

      public void setCPDefinitionSpecificationOptionValueId(long CPDefinitionSpecificationOptionValueId)
      Sets the cp definition specification option value ID of this cp definition specification option value.
      Specified by:
      setCPDefinitionSpecificationOptionValueId in interface CPDefinitionSpecificationOptionValueModel
      Parameters:
      CPDefinitionSpecificationOptionValueId - the cp definition specification option value ID of this cp definition specification option value
    • setCPOptionCategoryId

      public void setCPOptionCategoryId(long CPOptionCategoryId)
      Sets the cp option category ID of this cp definition specification option value.
      Specified by:
      setCPOptionCategoryId in interface CPDefinitionSpecificationOptionValueModel
      Parameters:
      CPOptionCategoryId - the cp option category ID of this cp definition specification option value
    • setCPSpecificationOptionId

      public void setCPSpecificationOptionId(long CPSpecificationOptionId)
      Sets the cp specification option ID of this cp definition specification option value.
      Specified by:
      setCPSpecificationOptionId in interface CPDefinitionSpecificationOptionValueModel
      Parameters:
      CPSpecificationOptionId - the cp specification option ID of this cp definition specification option value
    • setCreateDate

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

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

      public void setExternalReferenceCode(String externalReferenceCode)
      Sets the external reference code of this cp definition specification option value.
      Specified by:
      setExternalReferenceCode in interface CPDefinitionSpecificationOptionValueModel
      Specified by:
      setExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Parameters:
      externalReferenceCode - the external reference code of this cp definition specification option value
    • setGroupId

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

      public void setKey(String key)
      Sets the key of this cp definition specification option value.
      Specified by:
      setKey in interface CPDefinitionSpecificationOptionValueModel
      Parameters:
      key - the key of this cp definition specification option value
    • setLastPublishDate

      public void setLastPublishDate(Date lastPublishDate)
      Sets the last publish date of this cp definition specification option value.
      Specified by:
      setLastPublishDate in interface CPDefinitionSpecificationOptionValueModel
      Specified by:
      setLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModel
      Parameters:
      lastPublishDate - the last publish date of this cp definition specification option value
    • setModifiedDate

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

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

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

      public void setPriority(double priority)
      Sets the priority of this cp definition specification option value.
      Specified by:
      setPriority in interface CPDefinitionSpecificationOptionValueModel
      Parameters:
      priority - the priority of this cp definition specification option value
    • setUserId

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

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

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

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

      public void setValue(String value)
      Sets the value of this cp definition specification option value.
      Specified by:
      setValue in interface CPDefinitionSpecificationOptionValueModel
      Parameters:
      value - the value of this cp definition specification option value
    • setValue

      public void setValue(String value, Locale locale)
      Sets the localized value of this cp definition specification option value in the language.
      Specified by:
      setValue in interface CPDefinitionSpecificationOptionValueModel
      Parameters:
      value - the localized value of this cp definition specification option value
      locale - the locale of the language
    • setValue

      public void setValue(String value, Locale locale, Locale defaultLocale)
      Sets the localized value of this cp definition specification option value in the language, and sets the default locale.
      Specified by:
      setValue in interface CPDefinitionSpecificationOptionValueModel
      Parameters:
      value - the localized value of this cp definition specification option value
      locale - the locale of the language
      defaultLocale - the default locale
    • setValueCurrentLanguageId

      public void setValueCurrentLanguageId(String languageId)
      Specified by:
      setValueCurrentLanguageId in interface CPDefinitionSpecificationOptionValueModel
    • setValueMap

      public void setValueMap(Map<Locale,String> valueMap)
      Sets the localized values of this cp definition specification option value from the map of locales and localized values.
      Specified by:
      setValueMap in interface CPDefinitionSpecificationOptionValueModel
      Parameters:
      valueMap - the locales and localized values of this cp definition specification option value
    • setValueMap

      public void setValueMap(Map<Locale,String> valueMap, Locale defaultLocale)
      Sets the localized values of this cp definition specification option value from the map of locales and localized values, and sets the default locale.
      Specified by:
      setValueMap in interface CPDefinitionSpecificationOptionValueModel
      Parameters:
      valueMap - the locales and localized values of this cp definition specification option value
      defaultLocale - the default locale
    • toXmlString

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

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

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

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

      protected CPDefinitionSpecificationOptionValueWrapper wrap(CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPDefinitionSpecificationOptionValue>