Class CPMeasurementUnitWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPMeasurementUnit>
com.liferay.commerce.product.model.CPMeasurementUnitWrapper
All Implemented Interfaces:
CPMeasurementUnit, CPMeasurementUnitModel, com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<CPMeasurementUnit>, com.liferay.portal.kernel.model.change.tracking.CTModel<CPMeasurementUnit>, 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<CPMeasurementUnit>, 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<CPMeasurementUnit>

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

This class is a wrapper for CPMeasurementUnit.

See Also:
Generated:
  • Constructor Details

    • CPMeasurementUnitWrapper

      public CPMeasurementUnitWrapper(CPMeasurementUnit cpMeasurementUnit)
  • Method Details

    • getModelAttributes

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

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

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

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

      public long getCompanyId()
      Returns the company ID of this cp measurement unit.
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCompanyId in interface CPMeasurementUnitModel
      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 measurement unit
    • getCPMeasurementUnitId

      public long getCPMeasurementUnitId()
      Returns the cp measurement unit ID of this cp measurement unit.
      Specified by:
      getCPMeasurementUnitId in interface CPMeasurementUnitModel
      Returns:
      the cp measurement unit ID of this cp measurement unit
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this cp measurement unit.
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCreateDate in interface CPMeasurementUnitModel
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the create date of this cp measurement unit
    • getCtCollectionId

      public long getCtCollectionId()
      Returns the ct collection ID of this cp measurement unit.
      Specified by:
      getCtCollectionId in interface CPMeasurementUnitModel
      Specified by:
      getCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPMeasurementUnit>
      Returns:
      the ct collection ID of this cp measurement unit
    • getDefaultLanguageId

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

      public String getExternalReferenceCode()
      Returns the external reference code of this cp measurement unit.
      Specified by:
      getExternalReferenceCode in interface CPMeasurementUnitModel
      Specified by:
      getExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Returns:
      the external reference code of this cp measurement unit
    • getGroupId

      public long getGroupId()
      Returns the group ID of this cp measurement unit.
      Specified by:
      getGroupId in interface CPMeasurementUnitModel
      Specified by:
      getGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Returns:
      the group ID of this cp measurement unit
    • getKey

      public String getKey()
      Returns the key of this cp measurement unit.
      Specified by:
      getKey in interface CPMeasurementUnitModel
      Returns:
      the key of this cp measurement unit
    • getLastPublishDate

      public Date getLastPublishDate()
      Returns the last publish date of this cp measurement unit.
      Specified by:
      getLastPublishDate in interface CPMeasurementUnitModel
      Specified by:
      getLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModel
      Returns:
      the last publish date of this cp measurement unit
    • getModifiedDate

      public Date getModifiedDate()
      Returns the modified date of this cp measurement unit.
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getModifiedDate in interface CPMeasurementUnitModel
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the modified date of this cp measurement unit
    • getMvccVersion

      public long getMvccVersion()
      Returns the mvcc version of this cp measurement unit.
      Specified by:
      getMvccVersion in interface CPMeasurementUnitModel
      Specified by:
      getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Returns:
      the mvcc version of this cp measurement unit
    • getName

      public String getName()
      Returns the name of this cp measurement unit.
      Specified by:
      getName in interface CPMeasurementUnitModel
      Returns:
      the name of this cp measurement unit
    • getName

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

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

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

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

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

      public Map<Locale,String> getNameMap()
      Returns a map of the locales and localized names of this cp measurement unit.
      Specified by:
      getNameMap in interface CPMeasurementUnitModel
      Returns:
      the locales and localized names of this cp measurement unit
    • getPrimary

      public boolean getPrimary()
      Returns the primary of this cp measurement unit.
      Specified by:
      getPrimary in interface CPMeasurementUnitModel
      Returns:
      the primary of this cp measurement unit
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this cp measurement unit.
      Specified by:
      getPrimaryKey in interface CPMeasurementUnitModel
      Specified by:
      getPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPMeasurementUnit>
      Returns:
      the primary key of this cp measurement unit
    • getPriority

      public double getPriority()
      Returns the priority of this cp measurement unit.
      Specified by:
      getPriority in interface CPMeasurementUnitModel
      Returns:
      the priority of this cp measurement unit
    • getRate

      public double getRate()
      Returns the rate of this cp measurement unit.
      Specified by:
      getRate in interface CPMeasurementUnitModel
      Returns:
      the rate of this cp measurement unit
    • getType

      public int getType()
      Returns the type of this cp measurement unit.
      Specified by:
      getType in interface CPMeasurementUnitModel
      Returns:
      the type of this cp measurement unit
    • getUserId

      public long getUserId()
      Returns the user ID of this cp measurement unit.
      Specified by:
      getUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserId in interface CPMeasurementUnitModel
      Returns:
      the user ID of this cp measurement unit
    • getUserName

      public String getUserName()
      Returns the user name of this cp measurement unit.
      Specified by:
      getUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserName in interface CPMeasurementUnitModel
      Returns:
      the user name of this cp measurement unit
    • getUserUuid

      public String getUserUuid()
      Returns the user uuid of this cp measurement unit.
      Specified by:
      getUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserUuid in interface CPMeasurementUnitModel
      Returns:
      the user uuid of this cp measurement unit
    • getUuid

      public String getUuid()
      Returns the uuid of this cp measurement unit.
      Specified by:
      getUuid in interface CPMeasurementUnitModel
      Specified by:
      getUuid in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the uuid of this cp measurement unit
    • isPrimary

      public boolean isPrimary()
      Returns true if this cp measurement unit is primary.
      Specified by:
      isPrimary in interface CPMeasurementUnitModel
      Returns:
      true if this cp measurement unit is primary; 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 CPMeasurementUnitModel
      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 CPMeasurementUnitModel
      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 measurement unit.
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface CPMeasurementUnitModel
      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 measurement unit
    • setCPMeasurementUnitId

      public void setCPMeasurementUnitId(long CPMeasurementUnitId)
      Sets the cp measurement unit ID of this cp measurement unit.
      Specified by:
      setCPMeasurementUnitId in interface CPMeasurementUnitModel
      Parameters:
      CPMeasurementUnitId - the cp measurement unit ID of this cp measurement unit
    • setCreateDate

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

      public void setCtCollectionId(long ctCollectionId)
      Sets the ct collection ID of this cp measurement unit.
      Specified by:
      setCtCollectionId in interface CPMeasurementUnitModel
      Specified by:
      setCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPMeasurementUnit>
      Parameters:
      ctCollectionId - the ct collection ID of this cp measurement unit
    • setExternalReferenceCode

      public void setExternalReferenceCode(String externalReferenceCode)
      Sets the external reference code of this cp measurement unit.
      Specified by:
      setExternalReferenceCode in interface CPMeasurementUnitModel
      Specified by:
      setExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Parameters:
      externalReferenceCode - the external reference code of this cp measurement unit
    • setGroupId

      public void setGroupId(long groupId)
      Sets the group ID of this cp measurement unit.
      Specified by:
      setGroupId in interface CPMeasurementUnitModel
      Specified by:
      setGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Parameters:
      groupId - the group ID of this cp measurement unit
    • setKey

      public void setKey(String key)
      Sets the key of this cp measurement unit.
      Specified by:
      setKey in interface CPMeasurementUnitModel
      Parameters:
      key - the key of this cp measurement unit
    • setLastPublishDate

      public void setLastPublishDate(Date lastPublishDate)
      Sets the last publish date of this cp measurement unit.
      Specified by:
      setLastPublishDate in interface CPMeasurementUnitModel
      Specified by:
      setLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModel
      Parameters:
      lastPublishDate - the last publish date of this cp measurement unit
    • setModifiedDate

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

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

      public void setName(String name)
      Sets the name of this cp measurement unit.
      Specified by:
      setName in interface CPMeasurementUnitModel
      Parameters:
      name - the name of this cp measurement unit
    • setName

      public void setName(String name, Locale locale)
      Sets the localized name of this cp measurement unit in the language.
      Specified by:
      setName in interface CPMeasurementUnitModel
      Parameters:
      name - the localized name of this cp measurement unit
      locale - the locale of the language
    • setName

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

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

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

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

      public void setPrimary(boolean primary)
      Sets whether this cp measurement unit is primary.
      Specified by:
      setPrimary in interface CPMeasurementUnitModel
      Parameters:
      primary - the primary of this cp measurement unit
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this cp measurement unit.
      Specified by:
      setPrimaryKey in interface CPMeasurementUnitModel
      Specified by:
      setPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPMeasurementUnit>
      Parameters:
      primaryKey - the primary key of this cp measurement unit
    • setPriority

      public void setPriority(double priority)
      Sets the priority of this cp measurement unit.
      Specified by:
      setPriority in interface CPMeasurementUnitModel
      Parameters:
      priority - the priority of this cp measurement unit
    • setRate

      public void setRate(double rate)
      Sets the rate of this cp measurement unit.
      Specified by:
      setRate in interface CPMeasurementUnitModel
      Parameters:
      rate - the rate of this cp measurement unit
    • setType

      public void setType(int type)
      Sets the type of this cp measurement unit.
      Specified by:
      setType in interface CPMeasurementUnitModel
      Parameters:
      type - the type of this cp measurement unit
    • setUserId

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

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

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

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

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

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

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

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

      protected CPMeasurementUnitWrapper wrap(CPMeasurementUnit cpMeasurementUnit)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPMeasurementUnit>