Class CPDefinitionOptionValueRelWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPDefinitionOptionValueRel>
com.liferay.commerce.product.model.CPDefinitionOptionValueRelWrapper
All Implemented Interfaces:
CPDefinitionOptionValueRel, CPDefinitionOptionValueRelModel, com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<CPDefinitionOptionValueRel>, com.liferay.portal.kernel.model.change.tracking.CTModel<CPDefinitionOptionValueRel>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.GroupedModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.ModelWrapper<CPDefinitionOptionValueRel>, 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<CPDefinitionOptionValueRel>

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

This class is a wrapper for CPDefinitionOptionValueRel.

See Also:
Generated:
  • Constructor Details

    • CPDefinitionOptionValueRelWrapper

      public CPDefinitionOptionValueRelWrapper(CPDefinitionOptionValueRel cpDefinitionOptionValueRel)
  • Method Details

    • getModelAttributes

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

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

      public CPDefinitionOptionValueRel cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<CPDefinitionOptionValueRel>
      Specified by:
      cloneWithOriginalValues in interface CPDefinitionOptionValueRelModel
    • fetchCPInstance

      public CPInstance fetchCPInstance()
      Specified by:
      fetchCPInstance in interface CPDefinitionOptionValueRel
    • getAvailableLanguageIds

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

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

      public CPDefinitionOptionRel getCPDefinitionOptionRel() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPDefinitionOptionRel in interface CPDefinitionOptionValueRel
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPDefinitionOptionRelId

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

      public long getCPDefinitionOptionValueRelId()
      Returns the cp definition option value rel ID of this cp definition option value rel.
      Specified by:
      getCPDefinitionOptionValueRelId in interface CPDefinitionOptionValueRelModel
      Returns:
      the cp definition option value rel ID of this cp definition option value rel
    • getCPInstanceUuid

      public String getCPInstanceUuid()
      Returns the cp instance uuid of this cp definition option value rel.
      Specified by:
      getCPInstanceUuid in interface CPDefinitionOptionValueRelModel
      Returns:
      the cp instance uuid of this cp definition option value rel
    • getCProductId

      public long getCProductId()
      Returns the c product ID of this cp definition option value rel.
      Specified by:
      getCProductId in interface CPDefinitionOptionValueRelModel
      Returns:
      the c product ID of this cp definition option value rel
    • getCreateDate

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

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

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

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

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

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

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

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

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

      public String getName(Locale locale, boolean useDefault)
      Returns the localized name of this cp definition option value rel in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getName in interface CPDefinitionOptionValueRelModel
      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 value 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 value rel in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getName in interface CPDefinitionOptionValueRelModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized name of this cp definition option value rel
    • getName

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

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

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

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

      public boolean getPreselected()
      Returns the preselected of this cp definition option value rel.
      Specified by:
      getPreselected in interface CPDefinitionOptionValueRelModel
      Returns:
      the preselected of this cp definition option value rel
    • getPrice

      public BigDecimal getPrice()
      Returns the price of this cp definition option value rel.
      Specified by:
      getPrice in interface CPDefinitionOptionValueRelModel
      Returns:
      the price of this cp definition option value rel
    • getPrimaryKey

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

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

      public BigDecimal getQuantity()
      Returns the quantity of this cp definition option value rel.
      Specified by:
      getQuantity in interface CPDefinitionOptionValueRelModel
      Returns:
      the quantity of this cp definition option value rel
    • getUnitOfMeasureKey

      public String getUnitOfMeasureKey()
      Returns the unit of measure key of this cp definition option value rel.
      Specified by:
      getUnitOfMeasureKey in interface CPDefinitionOptionValueRelModel
      Returns:
      the unit of measure key of this cp definition option value rel
    • getUserId

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

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

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

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

      public boolean isPreselected()
      Returns true if this cp definition option value rel is preselected.
      Specified by:
      isPreselected in interface CPDefinitionOptionValueRelModel
      Returns:
      true if this cp definition option value rel is preselected; 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 CPDefinitionOptionValueRelModel
      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 CPDefinitionOptionValueRelModel
      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 option value rel.
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface CPDefinitionOptionValueRelModel
      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 value rel
    • setCPDefinitionOptionRelId

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

      public void setCPDefinitionOptionValueRelId(long CPDefinitionOptionValueRelId)
      Sets the cp definition option value rel ID of this cp definition option value rel.
      Specified by:
      setCPDefinitionOptionValueRelId in interface CPDefinitionOptionValueRelModel
      Parameters:
      CPDefinitionOptionValueRelId - the cp definition option value rel ID of this cp definition option value rel
    • setCPInstanceUuid

      public void setCPInstanceUuid(String CPInstanceUuid)
      Sets the cp instance uuid of this cp definition option value rel.
      Specified by:
      setCPInstanceUuid in interface CPDefinitionOptionValueRelModel
      Parameters:
      CPInstanceUuid - the cp instance uuid of this cp definition option value rel
    • setCProductId

      public void setCProductId(long CProductId)
      Sets the c product ID of this cp definition option value rel.
      Specified by:
      setCProductId in interface CPDefinitionOptionValueRelModel
      Parameters:
      CProductId - the c product ID of this cp definition option value rel
    • setCreateDate

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

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

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

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

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

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

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

      public void setName(String name, Locale locale)
      Sets the localized name of this cp definition option value rel in the language.
      Specified by:
      setName in interface CPDefinitionOptionValueRelModel
      Parameters:
      name - the localized name of this cp definition option value 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 value rel in the language, and sets the default locale.
      Specified by:
      setName in interface CPDefinitionOptionValueRelModel
      Parameters:
      name - the localized name of this cp definition option value rel
      locale - the locale of the language
      defaultLocale - the default locale
    • setNameCurrentLanguageId

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

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

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

      public void setPreselected(boolean preselected)
      Sets whether this cp definition option value rel is preselected.
      Specified by:
      setPreselected in interface CPDefinitionOptionValueRelModel
      Parameters:
      preselected - the preselected of this cp definition option value rel
    • setPrice

      public void setPrice(BigDecimal price)
      Sets the price of this cp definition option value rel.
      Specified by:
      setPrice in interface CPDefinitionOptionValueRelModel
      Parameters:
      price - the price of this cp definition option value rel
    • setPrimaryKey

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

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

      public void setQuantity(BigDecimal quantity)
      Sets the quantity of this cp definition option value rel.
      Specified by:
      setQuantity in interface CPDefinitionOptionValueRelModel
      Parameters:
      quantity - the quantity of this cp definition option value rel
    • setUnitOfMeasureKey

      public void setUnitOfMeasureKey(String unitOfMeasureKey)
      Sets the unit of measure key of this cp definition option value rel.
      Specified by:
      setUnitOfMeasureKey in interface CPDefinitionOptionValueRelModel
      Parameters:
      unitOfMeasureKey - the unit of measure key of this cp definition option value rel
    • setUserId

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

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

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

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

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

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

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

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

      protected CPDefinitionOptionValueRelWrapper wrap(CPDefinitionOptionValueRel cpDefinitionOptionValueRel)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPDefinitionOptionValueRel>