Class CPInstanceUnitOfMeasureWrapper

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

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

This class is a wrapper for CPInstanceUnitOfMeasure.

See Also:
Generated:
  • Constructor Details

    • CPInstanceUnitOfMeasureWrapper

      public CPInstanceUnitOfMeasureWrapper(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
  • Method Details

    • getModelAttributes

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

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

      public CPInstanceUnitOfMeasure cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<CPInstanceUnitOfMeasure>
      Specified by:
      cloneWithOriginalValues in interface CPInstanceUnitOfMeasureModel
    • getActive

      public boolean getActive()
      Returns the active of this cp instance unit of measure.
      Specified by:
      getActive in interface CPInstanceUnitOfMeasureModel
      Returns:
      the active of this cp instance unit of measure
    • getAvailableLanguageIds

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

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

      public long getCPInstanceId()
      Returns the cp instance ID of this cp instance unit of measure.
      Specified by:
      getCPInstanceId in interface CPInstanceUnitOfMeasureModel
      Returns:
      the cp instance ID of this cp instance unit of measure
    • getCPInstanceUnitOfMeasureId

      public long getCPInstanceUnitOfMeasureId()
      Returns the cp instance unit of measure ID of this cp instance unit of measure.
      Specified by:
      getCPInstanceUnitOfMeasureId in interface CPInstanceUnitOfMeasureModel
      Returns:
      the cp instance unit of measure ID of this cp instance unit of measure
    • getCreateDate

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

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

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

      public BigDecimal getIncrementalOrderQuantity()
      Returns the incremental order quantity of this cp instance unit of measure.
      Specified by:
      getIncrementalOrderQuantity in interface CPInstanceUnitOfMeasureModel
      Returns:
      the incremental order quantity of this cp instance unit of measure
    • getKey

      public String getKey()
      Returns the key of this cp instance unit of measure.
      Specified by:
      getKey in interface CPInstanceUnitOfMeasureModel
      Returns:
      the key of this cp instance unit of measure
    • getModifiedDate

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

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

      public String getName()
      Returns the name of this cp instance unit of measure.
      Specified by:
      getName in interface CPInstanceUnitOfMeasureModel
      Returns:
      the name of this cp instance unit of measure
    • getName

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

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

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

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

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

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

      public int getPrecision()
      Returns the precision of this cp instance unit of measure.
      Specified by:
      getPrecision in interface CPInstanceUnitOfMeasureModel
      Returns:
      the precision of this cp instance unit of measure
    • getPricingQuantity

      public BigDecimal getPricingQuantity()
      Returns the pricing quantity of this cp instance unit of measure.
      Specified by:
      getPricingQuantity in interface CPInstanceUnitOfMeasureModel
      Returns:
      the pricing quantity of this cp instance unit of measure
    • getPrimary

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

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

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

      public BigDecimal getRate()
      Returns the rate of this cp instance unit of measure.
      Specified by:
      getRate in interface CPInstanceUnitOfMeasureModel
      Returns:
      the rate of this cp instance unit of measure
    • getSku

      public String getSku()
      Returns the sku of this cp instance unit of measure.
      Specified by:
      getSku in interface CPInstanceUnitOfMeasureModel
      Returns:
      the sku of this cp instance unit of measure
    • getUserId

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

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

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

      public String getUuid()
      Returns the uuid of this cp instance unit of measure.
      Specified by:
      getUuid in interface CPInstanceUnitOfMeasureModel
      Specified by:
      getUuid in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the uuid of this cp instance unit of measure
    • isActive

      public boolean isActive()
      Returns true if this cp instance unit of measure is active.
      Specified by:
      isActive in interface CPInstanceUnitOfMeasureModel
      Returns:
      true if this cp instance unit of measure is active; false otherwise
    • isPrimary

      public boolean isPrimary()
      Returns true if this cp instance unit of measure is primary.
      Specified by:
      isPrimary in interface CPInstanceUnitOfMeasureModel
      Returns:
      true if this cp instance unit of measure 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 CPInstanceUnitOfMeasureModel
      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 CPInstanceUnitOfMeasureModel
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • setActive

      public void setActive(boolean active)
      Sets whether this cp instance unit of measure is active.
      Specified by:
      setActive in interface CPInstanceUnitOfMeasureModel
      Parameters:
      active - the active of this cp instance unit of measure
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this cp instance unit of measure.
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface CPInstanceUnitOfMeasureModel
      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 instance unit of measure
    • setCPInstanceId

      public void setCPInstanceId(long CPInstanceId)
      Sets the cp instance ID of this cp instance unit of measure.
      Specified by:
      setCPInstanceId in interface CPInstanceUnitOfMeasureModel
      Parameters:
      CPInstanceId - the cp instance ID of this cp instance unit of measure
    • setCPInstanceUnitOfMeasureId

      public void setCPInstanceUnitOfMeasureId(long CPInstanceUnitOfMeasureId)
      Sets the cp instance unit of measure ID of this cp instance unit of measure.
      Specified by:
      setCPInstanceUnitOfMeasureId in interface CPInstanceUnitOfMeasureModel
      Parameters:
      CPInstanceUnitOfMeasureId - the cp instance unit of measure ID of this cp instance unit of measure
    • setCreateDate

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

      public void setCtCollectionId(long ctCollectionId)
      Sets the ct collection ID of this cp instance unit of measure.
      Specified by:
      setCtCollectionId in interface CPInstanceUnitOfMeasureModel
      Specified by:
      setCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPInstanceUnitOfMeasure>
      Parameters:
      ctCollectionId - the ct collection ID of this cp instance unit of measure
    • setIncrementalOrderQuantity

      public void setIncrementalOrderQuantity(BigDecimal incrementalOrderQuantity)
      Sets the incremental order quantity of this cp instance unit of measure.
      Specified by:
      setIncrementalOrderQuantity in interface CPInstanceUnitOfMeasureModel
      Parameters:
      incrementalOrderQuantity - the incremental order quantity of this cp instance unit of measure
    • setKey

      public void setKey(String key)
      Sets the key of this cp instance unit of measure.
      Specified by:
      setKey in interface CPInstanceUnitOfMeasureModel
      Parameters:
      key - the key of this cp instance unit of measure
    • setModifiedDate

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

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

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

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

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

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

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

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

      public void setPrecision(int precision)
      Sets the precision of this cp instance unit of measure.
      Specified by:
      setPrecision in interface CPInstanceUnitOfMeasureModel
      Parameters:
      precision - the precision of this cp instance unit of measure
    • setPricingQuantity

      public void setPricingQuantity(BigDecimal pricingQuantity)
      Sets the pricing quantity of this cp instance unit of measure.
      Specified by:
      setPricingQuantity in interface CPInstanceUnitOfMeasureModel
      Parameters:
      pricingQuantity - the pricing quantity of this cp instance unit of measure
    • setPrimary

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

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

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

      public void setRate(BigDecimal rate)
      Sets the rate of this cp instance unit of measure.
      Specified by:
      setRate in interface CPInstanceUnitOfMeasureModel
      Parameters:
      rate - the rate of this cp instance unit of measure
    • setSku

      public void setSku(String sku)
      Sets the sku of this cp instance unit of measure.
      Specified by:
      setSku in interface CPInstanceUnitOfMeasureModel
      Parameters:
      sku - the sku of this cp instance unit of measure
    • setUserId

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

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

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

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

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

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

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

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

      protected CPInstanceUnitOfMeasureWrapper wrap(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPInstanceUnitOfMeasure>