Class CPInstanceWrapper

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

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

This class is a wrapper for CPInstance.

See Also:
Generated:
  • Constructor Details

    • CPInstanceWrapper

      public CPInstanceWrapper(CPInstance cpInstance)
  • Method Details

    • getModelAttributes

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

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

      public CPInstance cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<CPInstance>
      Specified by:
      cloneWithOriginalValues in interface CPInstanceModel
    • fetchCPInstanceUnitOfMeasure

      public CPInstanceUnitOfMeasure fetchCPInstanceUnitOfMeasure(String key)
      Specified by:
      fetchCPInstanceUnitOfMeasure in interface CPInstance
    • getCommerceCatalog

      public CommerceCatalog getCommerceCatalog() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceCatalog in interface CPInstance
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCompanyId

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

      public BigDecimal getCost()
      Returns the cost of this cp instance.
      Specified by:
      getCost in interface CPInstanceModel
      Returns:
      the cost of this cp instance
    • getCPDefinition

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

      public long getCPDefinitionId()
      Returns the cp definition ID of this cp instance.
      Specified by:
      getCPDefinitionId in interface CPInstanceModel
      Returns:
      the cp definition ID of this cp instance
    • getCPInstanceId

      public long getCPInstanceId()
      Returns the cp instance ID of this cp instance.
      Specified by:
      getCPInstanceId in interface CPInstanceModel
      Returns:
      the cp instance ID of this cp instance
    • getCPInstanceUnitOfMeasure

      public CPInstanceUnitOfMeasure getCPInstanceUnitOfMeasure(String key) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPInstanceUnitOfMeasure in interface CPInstance
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPInstanceUnitOfMeasures

      public List<CPInstanceUnitOfMeasure> getCPInstanceUnitOfMeasures(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Specified by:
      getCPInstanceUnitOfMeasures in interface CPInstance
    • getCPInstanceUuid

      public String getCPInstanceUuid()
      Returns the cp instance uuid of this cp instance.
      Specified by:
      getCPInstanceUuid in interface CPInstanceModel
      Returns:
      the cp instance uuid of this cp instance
    • getCPSubscriptionInfo

      public CPSubscriptionInfo getCPSubscriptionInfo() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPSubscriptionInfo in interface CPInstance
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCreateDate

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

      public long getCtCollectionId()
      Returns the ct collection ID of this cp instance.
      Specified by:
      getCtCollectionId in interface CPInstanceModel
      Specified by:
      getCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPInstance>
      Returns:
      the ct collection ID of this cp instance
    • getDeliveryMaxSubscriptionCycles

      public long getDeliveryMaxSubscriptionCycles()
      Returns the delivery max subscription cycles of this cp instance.
      Specified by:
      getDeliveryMaxSubscriptionCycles in interface CPInstanceModel
      Returns:
      the delivery max subscription cycles of this cp instance
    • getDeliverySubscriptionEnabled

      public boolean getDeliverySubscriptionEnabled()
      Returns the delivery subscription enabled of this cp instance.
      Specified by:
      getDeliverySubscriptionEnabled in interface CPInstanceModel
      Returns:
      the delivery subscription enabled of this cp instance
    • getDeliverySubscriptionLength

      public int getDeliverySubscriptionLength()
      Returns the delivery subscription length of this cp instance.
      Specified by:
      getDeliverySubscriptionLength in interface CPInstanceModel
      Returns:
      the delivery subscription length of this cp instance
    • getDeliverySubscriptionType

      public String getDeliverySubscriptionType()
      Returns the delivery subscription type of this cp instance.
      Specified by:
      getDeliverySubscriptionType in interface CPInstanceModel
      Returns:
      the delivery subscription type of this cp instance
    • getDeliverySubscriptionTypeSettings

      public String getDeliverySubscriptionTypeSettings()
      Returns the delivery subscription type settings of this cp instance.
      Specified by:
      getDeliverySubscriptionTypeSettings in interface CPInstanceModel
      Returns:
      the delivery subscription type settings of this cp instance
    • getDeliverySubscriptionTypeSettingsUnicodeProperties

      public com.liferay.portal.kernel.util.UnicodeProperties getDeliverySubscriptionTypeSettingsUnicodeProperties()
      Specified by:
      getDeliverySubscriptionTypeSettingsUnicodeProperties in interface CPInstance
    • getDepth

      public double getDepth()
      Returns the depth of this cp instance.
      Specified by:
      getDepth in interface CPInstanceModel
      Returns:
      the depth of this cp instance
    • getDiscontinued

      public boolean getDiscontinued()
      Returns the discontinued of this cp instance.
      Specified by:
      getDiscontinued in interface CPInstanceModel
      Returns:
      the discontinued of this cp instance
    • getDiscontinuedDate

      public Date getDiscontinuedDate()
      Returns the discontinued date of this cp instance.
      Specified by:
      getDiscontinuedDate in interface CPInstanceModel
      Returns:
      the discontinued date of this cp instance
    • getDisplayDate

      public Date getDisplayDate()
      Returns the display date of this cp instance.
      Specified by:
      getDisplayDate in interface CPInstanceModel
      Returns:
      the display date of this cp instance
    • getExpirationDate

      public Date getExpirationDate()
      Returns the expiration date of this cp instance.
      Specified by:
      getExpirationDate in interface CPInstanceModel
      Returns:
      the expiration date of this cp instance
    • getExternalReferenceCode

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

      public long getGroupId()
      Returns the group ID of this cp instance.
      Specified by:
      getGroupId in interface CPInstanceModel
      Specified by:
      getGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Returns:
      the group ID of this cp instance
    • getGtin

      public String getGtin()
      Returns the gtin of this cp instance.
      Specified by:
      getGtin in interface CPInstanceModel
      Returns:
      the gtin of this cp instance
    • getHeight

      public double getHeight()
      Returns the height of this cp instance.
      Specified by:
      getHeight in interface CPInstanceModel
      Returns:
      the height of this cp instance
    • getLastPublishDate

      public Date getLastPublishDate()
      Returns the last publish date of this cp instance.
      Specified by:
      getLastPublishDate in interface CPInstanceModel
      Specified by:
      getLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModel
      Returns:
      the last publish date of this cp instance
    • getManufacturerPartNumber

      public String getManufacturerPartNumber()
      Returns the manufacturer part number of this cp instance.
      Specified by:
      getManufacturerPartNumber in interface CPInstanceModel
      Returns:
      the manufacturer part number of this cp instance
    • getMaxSubscriptionCycles

      public long getMaxSubscriptionCycles()
      Returns the max subscription cycles of this cp instance.
      Specified by:
      getMaxSubscriptionCycles in interface CPInstanceModel
      Returns:
      the max subscription cycles of this cp instance
    • getModifiedDate

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

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

      public boolean getOverrideSubscriptionInfo()
      Returns the override subscription info of this cp instance.
      Specified by:
      getOverrideSubscriptionInfo in interface CPInstanceModel
      Returns:
      the override subscription info of this cp instance
    • getPrice

      public BigDecimal getPrice()
      Returns the price of this cp instance.
      Specified by:
      getPrice in interface CPInstanceModel
      Returns:
      the price of this cp instance
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this cp instance.
      Specified by:
      getPrimaryKey in interface CPInstanceModel
      Specified by:
      getPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPInstance>
      Returns:
      the primary key of this cp instance
    • getPromoPrice

      public BigDecimal getPromoPrice()
      Returns the promo price of this cp instance.
      Specified by:
      getPromoPrice in interface CPInstanceModel
      Returns:
      the promo price of this cp instance
    • getPublished

      public boolean getPublished()
      Returns the published of this cp instance.
      Specified by:
      getPublished in interface CPInstanceModel
      Returns:
      the published of this cp instance
    • getPurchasable

      public boolean getPurchasable()
      Returns the purchasable of this cp instance.
      Specified by:
      getPurchasable in interface CPInstanceModel
      Returns:
      the purchasable of this cp instance
    • getReplacementCPInstanceUuid

      public String getReplacementCPInstanceUuid()
      Returns the replacement cp instance uuid of this cp instance.
      Specified by:
      getReplacementCPInstanceUuid in interface CPInstanceModel
      Returns:
      the replacement cp instance uuid of this cp instance
    • getReplacementCProductId

      public long getReplacementCProductId()
      Returns the replacement c product ID of this cp instance.
      Specified by:
      getReplacementCProductId in interface CPInstanceModel
      Returns:
      the replacement c product ID of this cp instance
    • getSku

      public String getSku()
      Returns the sku of this cp instance.
      Specified by:
      getSku in interface CPInstanceModel
      Returns:
      the sku of this cp instance
    • getStatus

      public int getStatus()
      Returns the status of this cp instance.
      Specified by:
      getStatus in interface CPInstanceModel
      Specified by:
      getStatus in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status of this cp instance
    • getStatusByUserId

      public long getStatusByUserId()
      Returns the status by user ID of this cp instance.
      Specified by:
      getStatusByUserId in interface CPInstanceModel
      Specified by:
      getStatusByUserId in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status by user ID of this cp instance
    • getStatusByUserName

      public String getStatusByUserName()
      Returns the status by user name of this cp instance.
      Specified by:
      getStatusByUserName in interface CPInstanceModel
      Specified by:
      getStatusByUserName in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status by user name of this cp instance
    • getStatusByUserUuid

      public String getStatusByUserUuid()
      Returns the status by user uuid of this cp instance.
      Specified by:
      getStatusByUserUuid in interface CPInstanceModel
      Specified by:
      getStatusByUserUuid in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status by user uuid of this cp instance
    • getStatusDate

      public Date getStatusDate()
      Returns the status date of this cp instance.
      Specified by:
      getStatusDate in interface CPInstanceModel
      Specified by:
      getStatusDate in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status date of this cp instance
    • getSubscriptionEnabled

      public boolean getSubscriptionEnabled()
      Returns the subscription enabled of this cp instance.
      Specified by:
      getSubscriptionEnabled in interface CPInstanceModel
      Returns:
      the subscription enabled of this cp instance
    • getSubscriptionLength

      public int getSubscriptionLength()
      Returns the subscription length of this cp instance.
      Specified by:
      getSubscriptionLength in interface CPInstanceModel
      Returns:
      the subscription length of this cp instance
    • getSubscriptionType

      public String getSubscriptionType()
      Returns the subscription type of this cp instance.
      Specified by:
      getSubscriptionType in interface CPInstanceModel
      Returns:
      the subscription type of this cp instance
    • getSubscriptionTypeSettings

      public String getSubscriptionTypeSettings()
      Returns the subscription type settings of this cp instance.
      Specified by:
      getSubscriptionTypeSettings in interface CPInstanceModel
      Returns:
      the subscription type settings of this cp instance
    • getSubscriptionTypeSettingsUnicodeProperties

      public com.liferay.portal.kernel.util.UnicodeProperties getSubscriptionTypeSettingsUnicodeProperties()
      Specified by:
      getSubscriptionTypeSettingsUnicodeProperties in interface CPInstance
    • getUnspsc

      public String getUnspsc()
      Returns the unspsc of this cp instance.
      Specified by:
      getUnspsc in interface CPInstanceModel
      Returns:
      the unspsc of this cp instance
    • getUserId

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

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

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

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

      public double getWeight()
      Returns the weight of this cp instance.
      Specified by:
      getWeight in interface CPInstanceModel
      Returns:
      the weight of this cp instance
    • getWidth

      public double getWidth()
      Returns the width of this cp instance.
      Specified by:
      getWidth in interface CPInstanceModel
      Returns:
      the width of this cp instance
    • hasCPInstanceUnitOfMeasures

      public boolean hasCPInstanceUnitOfMeasures()
      Specified by:
      hasCPInstanceUnitOfMeasures in interface CPInstance
    • isApproved

      public boolean isApproved()
      Returns true if this cp instance is approved.
      Specified by:
      isApproved in interface CPInstanceModel
      Specified by:
      isApproved in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this cp instance is approved; false otherwise
    • isDeliverySubscriptionEnabled

      public boolean isDeliverySubscriptionEnabled()
      Returns true if this cp instance is delivery subscription enabled.
      Specified by:
      isDeliverySubscriptionEnabled in interface CPInstanceModel
      Returns:
      true if this cp instance is delivery subscription enabled; false otherwise
    • isDenied

      public boolean isDenied()
      Returns true if this cp instance is denied.
      Specified by:
      isDenied in interface CPInstanceModel
      Specified by:
      isDenied in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this cp instance is denied; false otherwise
    • isDiscontinued

      public boolean isDiscontinued()
      Returns true if this cp instance is discontinued.
      Specified by:
      isDiscontinued in interface CPInstanceModel
      Returns:
      true if this cp instance is discontinued; false otherwise
    • isDraft

      public boolean isDraft()
      Returns true if this cp instance is a draft.
      Specified by:
      isDraft in interface CPInstanceModel
      Specified by:
      isDraft in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this cp instance is a draft; false otherwise
    • isExpired

      public boolean isExpired()
      Returns true if this cp instance is expired.
      Specified by:
      isExpired in interface CPInstanceModel
      Specified by:
      isExpired in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this cp instance is expired; false otherwise
    • isInactive

      public boolean isInactive()
      Returns true if this cp instance is inactive.
      Specified by:
      isInactive in interface CPInstanceModel
      Specified by:
      isInactive in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this cp instance is inactive; false otherwise
    • isIncomplete

      public boolean isIncomplete()
      Returns true if this cp instance is incomplete.
      Specified by:
      isIncomplete in interface CPInstanceModel
      Specified by:
      isIncomplete in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this cp instance is incomplete; false otherwise
    • isOverrideSubscriptionInfo

      public boolean isOverrideSubscriptionInfo()
      Returns true if this cp instance is override subscription info.
      Specified by:
      isOverrideSubscriptionInfo in interface CPInstanceModel
      Returns:
      true if this cp instance is override subscription info; false otherwise
    • isPending

      public boolean isPending()
      Returns true if this cp instance is pending.
      Specified by:
      isPending in interface CPInstanceModel
      Specified by:
      isPending in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this cp instance is pending; false otherwise
    • isPublished

      public boolean isPublished()
      Returns true if this cp instance is published.
      Specified by:
      isPublished in interface CPInstanceModel
      Returns:
      true if this cp instance is published; false otherwise
    • isPurchasable

      public boolean isPurchasable()
      Returns true if this cp instance is purchasable.
      Specified by:
      isPurchasable in interface CPInstanceModel
      Returns:
      true if this cp instance is purchasable; false otherwise
    • isScheduled

      public boolean isScheduled()
      Returns true if this cp instance is scheduled.
      Specified by:
      isScheduled in interface CPInstanceModel
      Specified by:
      isScheduled in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this cp instance is scheduled; false otherwise
    • isSubscriptionEnabled

      public boolean isSubscriptionEnabled()
      Returns true if this cp instance is subscription enabled.
      Specified by:
      isSubscriptionEnabled in interface CPInstanceModel
      Returns:
      true if this cp instance is subscription enabled; false otherwise
    • persist

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

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

      public void setCost(BigDecimal cost)
      Sets the cost of this cp instance.
      Specified by:
      setCost in interface CPInstanceModel
      Parameters:
      cost - the cost of this cp instance
    • setCPDefinitionId

      public void setCPDefinitionId(long CPDefinitionId)
      Sets the cp definition ID of this cp instance.
      Specified by:
      setCPDefinitionId in interface CPInstanceModel
      Parameters:
      CPDefinitionId - the cp definition ID of this cp instance
    • setCPInstanceId

      public void setCPInstanceId(long CPInstanceId)
      Sets the cp instance ID of this cp instance.
      Specified by:
      setCPInstanceId in interface CPInstanceModel
      Parameters:
      CPInstanceId - the cp instance ID of this cp instance
    • setCPInstanceUuid

      public void setCPInstanceUuid(String CPInstanceUuid)
      Sets the cp instance uuid of this cp instance.
      Specified by:
      setCPInstanceUuid in interface CPInstanceModel
      Parameters:
      CPInstanceUuid - the cp instance uuid of this cp instance
    • setCreateDate

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

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

      public void setDeliveryMaxSubscriptionCycles(long deliveryMaxSubscriptionCycles)
      Sets the delivery max subscription cycles of this cp instance.
      Specified by:
      setDeliveryMaxSubscriptionCycles in interface CPInstanceModel
      Parameters:
      deliveryMaxSubscriptionCycles - the delivery max subscription cycles of this cp instance
    • setDeliverySubscriptionEnabled

      public void setDeliverySubscriptionEnabled(boolean deliverySubscriptionEnabled)
      Sets whether this cp instance is delivery subscription enabled.
      Specified by:
      setDeliverySubscriptionEnabled in interface CPInstanceModel
      Parameters:
      deliverySubscriptionEnabled - the delivery subscription enabled of this cp instance
    • setDeliverySubscriptionLength

      public void setDeliverySubscriptionLength(int deliverySubscriptionLength)
      Sets the delivery subscription length of this cp instance.
      Specified by:
      setDeliverySubscriptionLength in interface CPInstanceModel
      Parameters:
      deliverySubscriptionLength - the delivery subscription length of this cp instance
    • setDeliverySubscriptionType

      public void setDeliverySubscriptionType(String deliverySubscriptionType)
      Sets the delivery subscription type of this cp instance.
      Specified by:
      setDeliverySubscriptionType in interface CPInstanceModel
      Parameters:
      deliverySubscriptionType - the delivery subscription type of this cp instance
    • setDeliverySubscriptionTypeSettings

      public void setDeliverySubscriptionTypeSettings(String deliverySubscriptionTypeSettings)
      Sets the delivery subscription type settings of this cp instance.
      Specified by:
      setDeliverySubscriptionTypeSettings in interface CPInstanceModel
      Parameters:
      deliverySubscriptionTypeSettings - the delivery subscription type settings of this cp instance
    • setDeliverySubscriptionTypeSettingsUnicodeProperties

      public void setDeliverySubscriptionTypeSettingsUnicodeProperties(com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties)
      Specified by:
      setDeliverySubscriptionTypeSettingsUnicodeProperties in interface CPInstance
    • setDepth

      public void setDepth(double depth)
      Sets the depth of this cp instance.
      Specified by:
      setDepth in interface CPInstanceModel
      Parameters:
      depth - the depth of this cp instance
    • setDiscontinued

      public void setDiscontinued(boolean discontinued)
      Sets whether this cp instance is discontinued.
      Specified by:
      setDiscontinued in interface CPInstanceModel
      Parameters:
      discontinued - the discontinued of this cp instance
    • setDiscontinuedDate

      public void setDiscontinuedDate(Date discontinuedDate)
      Sets the discontinued date of this cp instance.
      Specified by:
      setDiscontinuedDate in interface CPInstanceModel
      Parameters:
      discontinuedDate - the discontinued date of this cp instance
    • setDisplayDate

      public void setDisplayDate(Date displayDate)
      Sets the display date of this cp instance.
      Specified by:
      setDisplayDate in interface CPInstanceModel
      Parameters:
      displayDate - the display date of this cp instance
    • setExpirationDate

      public void setExpirationDate(Date expirationDate)
      Sets the expiration date of this cp instance.
      Specified by:
      setExpirationDate in interface CPInstanceModel
      Parameters:
      expirationDate - the expiration date of this cp instance
    • setExternalReferenceCode

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

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

      public void setGtin(String gtin)
      Sets the gtin of this cp instance.
      Specified by:
      setGtin in interface CPInstanceModel
      Parameters:
      gtin - the gtin of this cp instance
    • setHeight

      public void setHeight(double height)
      Sets the height of this cp instance.
      Specified by:
      setHeight in interface CPInstanceModel
      Parameters:
      height - the height of this cp instance
    • setLastPublishDate

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

      public void setManufacturerPartNumber(String manufacturerPartNumber)
      Sets the manufacturer part number of this cp instance.
      Specified by:
      setManufacturerPartNumber in interface CPInstanceModel
      Parameters:
      manufacturerPartNumber - the manufacturer part number of this cp instance
    • setMaxSubscriptionCycles

      public void setMaxSubscriptionCycles(long maxSubscriptionCycles)
      Sets the max subscription cycles of this cp instance.
      Specified by:
      setMaxSubscriptionCycles in interface CPInstanceModel
      Parameters:
      maxSubscriptionCycles - the max subscription cycles of this cp instance
    • setModifiedDate

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

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

      public void setOverrideSubscriptionInfo(boolean overrideSubscriptionInfo)
      Sets whether this cp instance is override subscription info.
      Specified by:
      setOverrideSubscriptionInfo in interface CPInstanceModel
      Parameters:
      overrideSubscriptionInfo - the override subscription info of this cp instance
    • setPrice

      public void setPrice(BigDecimal price)
      Sets the price of this cp instance.
      Specified by:
      setPrice in interface CPInstanceModel
      Parameters:
      price - the price of this cp instance
    • setPrimaryKey

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

      public void setPromoPrice(BigDecimal promoPrice)
      Sets the promo price of this cp instance.
      Specified by:
      setPromoPrice in interface CPInstanceModel
      Parameters:
      promoPrice - the promo price of this cp instance
    • setPublished

      public void setPublished(boolean published)
      Sets whether this cp instance is published.
      Specified by:
      setPublished in interface CPInstanceModel
      Parameters:
      published - the published of this cp instance
    • setPurchasable

      public void setPurchasable(boolean purchasable)
      Sets whether this cp instance is purchasable.
      Specified by:
      setPurchasable in interface CPInstanceModel
      Parameters:
      purchasable - the purchasable of this cp instance
    • setReplacementCPInstanceUuid

      public void setReplacementCPInstanceUuid(String replacementCPInstanceUuid)
      Sets the replacement cp instance uuid of this cp instance.
      Specified by:
      setReplacementCPInstanceUuid in interface CPInstanceModel
      Parameters:
      replacementCPInstanceUuid - the replacement cp instance uuid of this cp instance
    • setReplacementCProductId

      public void setReplacementCProductId(long replacementCProductId)
      Sets the replacement c product ID of this cp instance.
      Specified by:
      setReplacementCProductId in interface CPInstanceModel
      Parameters:
      replacementCProductId - the replacement c product ID of this cp instance
    • setSku

      public void setSku(String sku)
      Sets the sku of this cp instance.
      Specified by:
      setSku in interface CPInstanceModel
      Parameters:
      sku - the sku of this cp instance
    • setStatus

      public void setStatus(int status)
      Sets the status of this cp instance.
      Specified by:
      setStatus in interface CPInstanceModel
      Specified by:
      setStatus in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      status - the status of this cp instance
    • setStatusByUserId

      public void setStatusByUserId(long statusByUserId)
      Sets the status by user ID of this cp instance.
      Specified by:
      setStatusByUserId in interface CPInstanceModel
      Specified by:
      setStatusByUserId in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      statusByUserId - the status by user ID of this cp instance
    • setStatusByUserName

      public void setStatusByUserName(String statusByUserName)
      Sets the status by user name of this cp instance.
      Specified by:
      setStatusByUserName in interface CPInstanceModel
      Specified by:
      setStatusByUserName in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      statusByUserName - the status by user name of this cp instance
    • setStatusByUserUuid

      public void setStatusByUserUuid(String statusByUserUuid)
      Sets the status by user uuid of this cp instance.
      Specified by:
      setStatusByUserUuid in interface CPInstanceModel
      Specified by:
      setStatusByUserUuid in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      statusByUserUuid - the status by user uuid of this cp instance
    • setStatusDate

      public void setStatusDate(Date statusDate)
      Sets the status date of this cp instance.
      Specified by:
      setStatusDate in interface CPInstanceModel
      Specified by:
      setStatusDate in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      statusDate - the status date of this cp instance
    • setSubscriptionEnabled

      public void setSubscriptionEnabled(boolean subscriptionEnabled)
      Sets whether this cp instance is subscription enabled.
      Specified by:
      setSubscriptionEnabled in interface CPInstanceModel
      Parameters:
      subscriptionEnabled - the subscription enabled of this cp instance
    • setSubscriptionLength

      public void setSubscriptionLength(int subscriptionLength)
      Sets the subscription length of this cp instance.
      Specified by:
      setSubscriptionLength in interface CPInstanceModel
      Parameters:
      subscriptionLength - the subscription length of this cp instance
    • setSubscriptionType

      public void setSubscriptionType(String subscriptionType)
      Sets the subscription type of this cp instance.
      Specified by:
      setSubscriptionType in interface CPInstanceModel
      Parameters:
      subscriptionType - the subscription type of this cp instance
    • setSubscriptionTypeSettings

      public void setSubscriptionTypeSettings(String subscriptionTypeSettings)
      Sets the subscription type settings of this cp instance.
      Specified by:
      setSubscriptionTypeSettings in interface CPInstanceModel
      Parameters:
      subscriptionTypeSettings - the subscription type settings of this cp instance
    • setSubscriptionTypeSettingsUnicodeProperties

      public void setSubscriptionTypeSettingsUnicodeProperties(com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties)
      Specified by:
      setSubscriptionTypeSettingsUnicodeProperties in interface CPInstance
    • setUnspsc

      public void setUnspsc(String unspsc)
      Sets the unspsc of this cp instance.
      Specified by:
      setUnspsc in interface CPInstanceModel
      Parameters:
      unspsc - the unspsc of this cp instance
    • setUserId

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

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

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

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

      public void setWeight(double weight)
      Sets the weight of this cp instance.
      Specified by:
      setWeight in interface CPInstanceModel
      Parameters:
      weight - the weight of this cp instance
    • setWidth

      public void setWidth(double width)
      Sets the width of this cp instance.
      Specified by:
      setWidth in interface CPInstanceModel
      Parameters:
      width - the width of this cp instance
    • toXmlString

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

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

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

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

      protected CPInstanceWrapper wrap(CPInstance cpInstance)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPInstance>