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:
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
model
Fields inherited from interface com.liferay.commerce.product.model.CPInstance
CP_INSTANCE_ID_ACCESSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the company ID of this cp instance.getCost()
Returns the cost of this cp instance.long
Returns the cp definition ID of this cp instance.long
Returns the cp instance ID of this cp instance.getCPInstanceUnitOfMeasures
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) Returns the cp instance uuid of this cp instance.Returns the create date of this cp instance.long
Returns the ct collection ID of this cp instance.long
Returns the delivery max subscription cycles of this cp instance.boolean
Returns the delivery subscription enabled of this cp instance.int
Returns the delivery subscription length of this cp instance.Returns the delivery subscription type of this cp instance.Returns the delivery subscription type settings of this cp instance.com.liferay.portal.kernel.util.UnicodeProperties
double
getDepth()
Returns the depth of this cp instance.boolean
Returns the discontinued of this cp instance.Returns the discontinued date of this cp instance.Returns the display date of this cp instance.Returns the expiration date of this cp instance.Returns the external reference code of this cp instance.long
Returns the group ID of this cp instance.getGtin()
Returns the gtin of this cp instance.double
Returns the height of this cp instance.Returns the last publish date of this cp instance.Returns the manufacturer part number of this cp instance.long
Returns the max subscription cycles of this cp instance.Returns the modified date of this cp instance.long
Returns the mvcc version of this cp instance.boolean
Returns the override subscription info of this cp instance.getPrice()
Returns the price of this cp instance.long
Returns the primary key of this cp instance.Returns the promo price of this cp instance.boolean
Returns the published of this cp instance.boolean
Returns the purchasable of this cp instance.Returns the replacement cp instance uuid of this cp instance.long
Returns the replacement c product ID of this cp instance.getSku()
Returns the sku of this cp instance.com.liferay.exportimport.kernel.lar.StagedModelType
int
Returns the status of this cp instance.long
Returns the status by user ID of this cp instance.Returns the status by user name of this cp instance.Returns the status by user uuid of this cp instance.Returns the status date of this cp instance.boolean
Returns the subscription enabled of this cp instance.int
Returns the subscription length of this cp instance.Returns the subscription type of this cp instance.Returns the subscription type settings of this cp instance.com.liferay.portal.kernel.util.UnicodeProperties
Returns the unspsc of this cp instance.long
Returns the user ID of this cp instance.Returns the user name of this cp instance.Returns the user uuid of this cp instance.getUuid()
Returns the uuid of this cp instance.double
Returns the weight of this cp instance.double
getWidth()
Returns the width of this cp instance.boolean
boolean
Returnstrue
if this cp instance is approved.boolean
Returnstrue
if this cp instance is delivery subscription enabled.boolean
isDenied()
Returnstrue
if this cp instance is denied.boolean
Returnstrue
if this cp instance is discontinued.boolean
isDraft()
Returnstrue
if this cp instance is a draft.boolean
Returnstrue
if this cp instance is expired.boolean
Returnstrue
if this cp instance is inactive.boolean
Returnstrue
if this cp instance is incomplete.boolean
Returnstrue
if this cp instance is override subscription info.boolean
Returnstrue
if this cp instance is pending.boolean
Returnstrue
if this cp instance is published.boolean
Returnstrue
if this cp instance is purchasable.boolean
Returnstrue
if this cp instance is scheduled.boolean
Returnstrue
if this cp instance is subscription enabled.void
persist()
void
setCompanyId
(long companyId) Sets the company ID of this cp instance.void
setCost
(BigDecimal cost) Sets the cost of this cp instance.void
setCPDefinitionId
(long CPDefinitionId) Sets the cp definition ID of this cp instance.void
setCPInstanceId
(long CPInstanceId) Sets the cp instance ID of this cp instance.void
setCPInstanceUuid
(String CPInstanceUuid) Sets the cp instance uuid of this cp instance.void
setCreateDate
(Date createDate) Sets the create date of this cp instance.void
setCtCollectionId
(long ctCollectionId) Sets the ct collection ID of this cp instance.void
setDeliveryMaxSubscriptionCycles
(long deliveryMaxSubscriptionCycles) Sets the delivery max subscription cycles of this cp instance.void
setDeliverySubscriptionEnabled
(boolean deliverySubscriptionEnabled) Sets whether this cp instance is delivery subscription enabled.void
setDeliverySubscriptionLength
(int deliverySubscriptionLength) Sets the delivery subscription length of this cp instance.void
setDeliverySubscriptionType
(String deliverySubscriptionType) Sets the delivery subscription type of this cp instance.void
setDeliverySubscriptionTypeSettings
(String deliverySubscriptionTypeSettings) Sets the delivery subscription type settings of this cp instance.void
setDeliverySubscriptionTypeSettingsUnicodeProperties
(com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties) void
setDepth
(double depth) Sets the depth of this cp instance.void
setDiscontinued
(boolean discontinued) Sets whether this cp instance is discontinued.void
setDiscontinuedDate
(Date discontinuedDate) Sets the discontinued date of this cp instance.void
setDisplayDate
(Date displayDate) Sets the display date of this cp instance.void
setExpirationDate
(Date expirationDate) Sets the expiration date of this cp instance.void
setExternalReferenceCode
(String externalReferenceCode) Sets the external reference code of this cp instance.void
setGroupId
(long groupId) Sets the group ID of this cp instance.void
Sets the gtin of this cp instance.void
setHeight
(double height) Sets the height of this cp instance.void
setLastPublishDate
(Date lastPublishDate) Sets the last publish date of this cp instance.void
setManufacturerPartNumber
(String manufacturerPartNumber) Sets the manufacturer part number of this cp instance.void
setMaxSubscriptionCycles
(long maxSubscriptionCycles) Sets the max subscription cycles of this cp instance.void
setModelAttributes
(Map<String, Object> attributes) void
setModifiedDate
(Date modifiedDate) Sets the modified date of this cp instance.void
setMvccVersion
(long mvccVersion) Sets the mvcc version of this cp instance.void
setOverrideSubscriptionInfo
(boolean overrideSubscriptionInfo) Sets whether this cp instance is override subscription info.void
setPrice
(BigDecimal price) Sets the price of this cp instance.void
setPrimaryKey
(long primaryKey) Sets the primary key of this cp instance.void
setPromoPrice
(BigDecimal promoPrice) Sets the promo price of this cp instance.void
setPublished
(boolean published) Sets whether this cp instance is published.void
setPurchasable
(boolean purchasable) Sets whether this cp instance is purchasable.void
setReplacementCPInstanceUuid
(String replacementCPInstanceUuid) Sets the replacement cp instance uuid of this cp instance.void
setReplacementCProductId
(long replacementCProductId) Sets the replacement c product ID of this cp instance.void
Sets the sku of this cp instance.void
setStatus
(int status) Sets the status of this cp instance.void
setStatusByUserId
(long statusByUserId) Sets the status by user ID of this cp instance.void
setStatusByUserName
(String statusByUserName) Sets the status by user name of this cp instance.void
setStatusByUserUuid
(String statusByUserUuid) Sets the status by user uuid of this cp instance.void
setStatusDate
(Date statusDate) Sets the status date of this cp instance.void
setSubscriptionEnabled
(boolean subscriptionEnabled) Sets whether this cp instance is subscription enabled.void
setSubscriptionLength
(int subscriptionLength) Sets the subscription length of this cp instance.void
setSubscriptionType
(String subscriptionType) Sets the subscription type of this cp instance.void
setSubscriptionTypeSettings
(String subscriptionTypeSettings) Sets the subscription type settings of this cp instance.void
setSubscriptionTypeSettingsUnicodeProperties
(com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties) void
Sets the unspsc of this cp instance.void
setUserId
(long userId) Sets the user ID of this cp instance.void
setUserName
(String userName) Sets the user name of this cp instance.void
setUserUuid
(String userUuid) Sets the user uuid of this cp instance.void
Sets the uuid of this cp instance.void
setWeight
(double weight) Sets the weight of this cp instance.void
setWidth
(double width) Sets the width of this cp instance.protected CPInstanceWrapper
wrap
(CPInstance cpInstance) Methods inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassName
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.liferay.portal.kernel.model.ModelWrapper
getWrappedModel
Methods inherited from interface com.liferay.portal.kernel.model.StagedModel
clone
-
Constructor Details
-
CPInstanceWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributes
in interfacecom.liferay.portal.kernel.model.BaseModel<CPInstance>
-
setModelAttributes
- Specified by:
setModelAttributes
in interfacecom.liferay.portal.kernel.model.BaseModel<CPInstance>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValues
in interfacecom.liferay.portal.kernel.model.BaseModel<CPInstance>
- Specified by:
cloneWithOriginalValues
in interfaceCPInstanceModel
-
fetchCPInstanceUnitOfMeasure
- Specified by:
fetchCPInstanceUnitOfMeasure
in interfaceCPInstance
-
getCommerceCatalog
public CommerceCatalog getCommerceCatalog() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getCommerceCatalog
in interfaceCPInstance
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCompanyId
public long getCompanyId()Returns the company ID of this cp instance.- Specified by:
getCompanyId
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
getCompanyId
in interfaceCPInstanceModel
- Specified by:
getCompanyId
in interfacecom.liferay.portal.kernel.model.ShardedModel
- Specified by:
getCompanyId
in interfacecom.liferay.portal.kernel.model.StagedModel
- Returns:
- the company ID of this cp instance
-
getCost
Returns the cost of this cp instance.- Specified by:
getCost
in interfaceCPInstanceModel
- Returns:
- the cost of this cp instance
-
getCPDefinition
- Specified by:
getCPDefinition
in interfaceCPInstance
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPDefinitionId
public long getCPDefinitionId()Returns the cp definition ID of this cp instance.- Specified by:
getCPDefinitionId
in interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- 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 interfaceCPInstance
- 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 interfaceCPInstance
-
getCPInstanceUuid
Returns the cp instance uuid of this cp instance.- Specified by:
getCPInstanceUuid
in interfaceCPInstanceModel
- Returns:
- the cp instance uuid of this cp instance
-
getCPSubscriptionInfo
public CPSubscriptionInfo getCPSubscriptionInfo() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getCPSubscriptionInfo
in interfaceCPInstance
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCreateDate
Returns the create date of this cp instance.- Specified by:
getCreateDate
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
getCreateDate
in interfaceCPInstanceModel
- Specified by:
getCreateDate
in interfacecom.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 interfaceCPInstanceModel
- Specified by:
getCtCollectionId
in interfacecom.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 interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- Returns:
- the delivery subscription length of this cp instance
-
getDeliverySubscriptionType
Returns the delivery subscription type of this cp instance.- Specified by:
getDeliverySubscriptionType
in interfaceCPInstanceModel
- Returns:
- the delivery subscription type of this cp instance
-
getDeliverySubscriptionTypeSettings
Returns the delivery subscription type settings of this cp instance.- Specified by:
getDeliverySubscriptionTypeSettings
in interfaceCPInstanceModel
- Returns:
- the delivery subscription type settings of this cp instance
-
getDeliverySubscriptionTypeSettingsUnicodeProperties
public com.liferay.portal.kernel.util.UnicodeProperties getDeliverySubscriptionTypeSettingsUnicodeProperties()- Specified by:
getDeliverySubscriptionTypeSettingsUnicodeProperties
in interfaceCPInstance
-
getDepth
public double getDepth()Returns the depth of this cp instance.- Specified by:
getDepth
in interfaceCPInstanceModel
- Returns:
- the depth of this cp instance
-
getDiscontinued
public boolean getDiscontinued()Returns the discontinued of this cp instance.- Specified by:
getDiscontinued
in interfaceCPInstanceModel
- Returns:
- the discontinued of this cp instance
-
getDiscontinuedDate
Returns the discontinued date of this cp instance.- Specified by:
getDiscontinuedDate
in interfaceCPInstanceModel
- Returns:
- the discontinued date of this cp instance
-
getDisplayDate
Returns the display date of this cp instance.- Specified by:
getDisplayDate
in interfaceCPInstanceModel
- Returns:
- the display date of this cp instance
-
getExpirationDate
Returns the expiration date of this cp instance.- Specified by:
getExpirationDate
in interfaceCPInstanceModel
- Returns:
- the expiration date of this cp instance
-
getExternalReferenceCode
Returns the external reference code of this cp instance.- Specified by:
getExternalReferenceCode
in interfaceCPInstanceModel
- Specified by:
getExternalReferenceCode
in interfacecom.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 interfaceCPInstanceModel
- Specified by:
getGroupId
in interfacecom.liferay.portal.kernel.model.GroupedModel
- Returns:
- the group ID of this cp instance
-
getGtin
Returns the gtin of this cp instance.- Specified by:
getGtin
in interfaceCPInstanceModel
- Returns:
- the gtin of this cp instance
-
getHeight
public double getHeight()Returns the height of this cp instance.- Specified by:
getHeight
in interfaceCPInstanceModel
- Returns:
- the height of this cp instance
-
getLastPublishDate
Returns the last publish date of this cp instance.- Specified by:
getLastPublishDate
in interfaceCPInstanceModel
- Specified by:
getLastPublishDate
in interfacecom.liferay.portal.kernel.model.StagedGroupedModel
- Returns:
- the last publish date of this cp instance
-
getManufacturerPartNumber
Returns the manufacturer part number of this cp instance.- Specified by:
getManufacturerPartNumber
in interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- Returns:
- the max subscription cycles of this cp instance
-
getModifiedDate
Returns the modified date of this cp instance.- Specified by:
getModifiedDate
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
getModifiedDate
in interfaceCPInstanceModel
- Specified by:
getModifiedDate
in interfacecom.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 interfaceCPInstanceModel
- Specified by:
getMvccVersion
in interfacecom.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 interfaceCPInstanceModel
- Returns:
- the override subscription info of this cp instance
-
getPrice
Returns the price of this cp instance.- Specified by:
getPrice
in interfaceCPInstanceModel
- Returns:
- the price of this cp instance
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this cp instance.- Specified by:
getPrimaryKey
in interfaceCPInstanceModel
- Specified by:
getPrimaryKey
in interfacecom.liferay.portal.kernel.model.change.tracking.CTModel<CPInstance>
- Returns:
- the primary key of this cp instance
-
getPromoPrice
Returns the promo price of this cp instance.- Specified by:
getPromoPrice
in interfaceCPInstanceModel
- Returns:
- the promo price of this cp instance
-
getPublished
public boolean getPublished()Returns the published of this cp instance.- Specified by:
getPublished
in interfaceCPInstanceModel
- Returns:
- the published of this cp instance
-
getPurchasable
public boolean getPurchasable()Returns the purchasable of this cp instance.- Specified by:
getPurchasable
in interfaceCPInstanceModel
- Returns:
- the purchasable of this cp instance
-
getReplacementCPInstanceUuid
Returns the replacement cp instance uuid of this cp instance.- Specified by:
getReplacementCPInstanceUuid
in interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- Returns:
- the replacement c product ID of this cp instance
-
getSku
Returns the sku of this cp instance.- Specified by:
getSku
in interfaceCPInstanceModel
- Returns:
- the sku of this cp instance
-
getStatus
public int getStatus()Returns the status of this cp instance.- Specified by:
getStatus
in interfaceCPInstanceModel
- Specified by:
getStatus
in interfacecom.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 interfaceCPInstanceModel
- Specified by:
getStatusByUserId
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
- the status by user ID of this cp instance
-
getStatusByUserName
Returns the status by user name of this cp instance.- Specified by:
getStatusByUserName
in interfaceCPInstanceModel
- Specified by:
getStatusByUserName
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
- the status by user name of this cp instance
-
getStatusByUserUuid
Returns the status by user uuid of this cp instance.- Specified by:
getStatusByUserUuid
in interfaceCPInstanceModel
- Specified by:
getStatusByUserUuid
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
- the status by user uuid of this cp instance
-
getStatusDate
Returns the status date of this cp instance.- Specified by:
getStatusDate
in interfaceCPInstanceModel
- Specified by:
getStatusDate
in interfacecom.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 interfaceCPInstanceModel
- Returns:
- the subscription enabled of this cp instance
-
getSubscriptionLength
public int getSubscriptionLength()Returns the subscription length of this cp instance.- Specified by:
getSubscriptionLength
in interfaceCPInstanceModel
- Returns:
- the subscription length of this cp instance
-
getSubscriptionType
Returns the subscription type of this cp instance.- Specified by:
getSubscriptionType
in interfaceCPInstanceModel
- Returns:
- the subscription type of this cp instance
-
getSubscriptionTypeSettings
Returns the subscription type settings of this cp instance.- Specified by:
getSubscriptionTypeSettings
in interfaceCPInstanceModel
- Returns:
- the subscription type settings of this cp instance
-
getSubscriptionTypeSettingsUnicodeProperties
public com.liferay.portal.kernel.util.UnicodeProperties getSubscriptionTypeSettingsUnicodeProperties()- Specified by:
getSubscriptionTypeSettingsUnicodeProperties
in interfaceCPInstance
-
getUnspsc
Returns the unspsc of this cp instance.- Specified by:
getUnspsc
in interfaceCPInstanceModel
- Returns:
- the unspsc of this cp instance
-
getUserId
public long getUserId()Returns the user ID of this cp instance.- Specified by:
getUserId
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
getUserId
in interfaceCPInstanceModel
- Returns:
- the user ID of this cp instance
-
getUserName
Returns the user name of this cp instance.- Specified by:
getUserName
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
getUserName
in interfaceCPInstanceModel
- Returns:
- the user name of this cp instance
-
getUserUuid
Returns the user uuid of this cp instance.- Specified by:
getUserUuid
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
getUserUuid
in interfaceCPInstanceModel
- Returns:
- the user uuid of this cp instance
-
getUuid
Returns the uuid of this cp instance.- Specified by:
getUuid
in interfaceCPInstanceModel
- Specified by:
getUuid
in interfacecom.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 interfaceCPInstanceModel
- Returns:
- the weight of this cp instance
-
getWidth
public double getWidth()Returns the width of this cp instance.- Specified by:
getWidth
in interfaceCPInstanceModel
- Returns:
- the width of this cp instance
-
hasCPInstanceUnitOfMeasures
public boolean hasCPInstanceUnitOfMeasures()- Specified by:
hasCPInstanceUnitOfMeasures
in interfaceCPInstance
-
isApproved
public boolean isApproved()Returnstrue
if this cp instance is approved.- Specified by:
isApproved
in interfaceCPInstanceModel
- Specified by:
isApproved
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this cp instance is approved;false
otherwise
-
isDeliverySubscriptionEnabled
public boolean isDeliverySubscriptionEnabled()Returnstrue
if this cp instance is delivery subscription enabled.- Specified by:
isDeliverySubscriptionEnabled
in interfaceCPInstanceModel
- Returns:
true
if this cp instance is delivery subscription enabled;false
otherwise
-
isDenied
public boolean isDenied()Returnstrue
if this cp instance is denied.- Specified by:
isDenied
in interfaceCPInstanceModel
- Specified by:
isDenied
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this cp instance is denied;false
otherwise
-
isDiscontinued
public boolean isDiscontinued()Returnstrue
if this cp instance is discontinued.- Specified by:
isDiscontinued
in interfaceCPInstanceModel
- Returns:
true
if this cp instance is discontinued;false
otherwise
-
isDraft
public boolean isDraft()Returnstrue
if this cp instance is a draft.- Specified by:
isDraft
in interfaceCPInstanceModel
- Specified by:
isDraft
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this cp instance is a draft;false
otherwise
-
isExpired
public boolean isExpired()Returnstrue
if this cp instance is expired.- Specified by:
isExpired
in interfaceCPInstanceModel
- Specified by:
isExpired
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this cp instance is expired;false
otherwise
-
isInactive
public boolean isInactive()Returnstrue
if this cp instance is inactive.- Specified by:
isInactive
in interfaceCPInstanceModel
- Specified by:
isInactive
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this cp instance is inactive;false
otherwise
-
isIncomplete
public boolean isIncomplete()Returnstrue
if this cp instance is incomplete.- Specified by:
isIncomplete
in interfaceCPInstanceModel
- Specified by:
isIncomplete
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this cp instance is incomplete;false
otherwise
-
isOverrideSubscriptionInfo
public boolean isOverrideSubscriptionInfo()Returnstrue
if this cp instance is override subscription info.- Specified by:
isOverrideSubscriptionInfo
in interfaceCPInstanceModel
- Returns:
true
if this cp instance is override subscription info;false
otherwise
-
isPending
public boolean isPending()Returnstrue
if this cp instance is pending.- Specified by:
isPending
in interfaceCPInstanceModel
- Specified by:
isPending
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this cp instance is pending;false
otherwise
-
isPublished
public boolean isPublished()Returnstrue
if this cp instance is published.- Specified by:
isPublished
in interfaceCPInstanceModel
- Returns:
true
if this cp instance is published;false
otherwise
-
isPurchasable
public boolean isPurchasable()Returnstrue
if this cp instance is purchasable.- Specified by:
isPurchasable
in interfaceCPInstanceModel
- Returns:
true
if this cp instance is purchasable;false
otherwise
-
isScheduled
public boolean isScheduled()Returnstrue
if this cp instance is scheduled.- Specified by:
isScheduled
in interfaceCPInstanceModel
- Specified by:
isScheduled
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this cp instance is scheduled;false
otherwise
-
isSubscriptionEnabled
public boolean isSubscriptionEnabled()Returnstrue
if this cp instance is subscription enabled.- Specified by:
isSubscriptionEnabled
in interfaceCPInstanceModel
- Returns:
true
if this cp instance is subscription enabled;false
otherwise
-
persist
public void persist()- Specified by:
persist
in interfacecom.liferay.portal.kernel.model.PersistedModel
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this cp instance.- Specified by:
setCompanyId
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
setCompanyId
in interfaceCPInstanceModel
- Specified by:
setCompanyId
in interfacecom.liferay.portal.kernel.model.ShardedModel
- Specified by:
setCompanyId
in interfacecom.liferay.portal.kernel.model.StagedModel
- Parameters:
companyId
- the company ID of this cp instance
-
setCost
Sets the cost of this cp instance.- Specified by:
setCost
in interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- Parameters:
CPInstanceId
- the cp instance ID of this cp instance
-
setCPInstanceUuid
Sets the cp instance uuid of this cp instance.- Specified by:
setCPInstanceUuid
in interfaceCPInstanceModel
- Parameters:
CPInstanceUuid
- the cp instance uuid of this cp instance
-
setCreateDate
Sets the create date of this cp instance.- Specified by:
setCreateDate
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
setCreateDate
in interfaceCPInstanceModel
- Specified by:
setCreateDate
in interfacecom.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 interfaceCPInstanceModel
- Specified by:
setCtCollectionId
in interfacecom.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 interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- Parameters:
deliverySubscriptionLength
- the delivery subscription length of this cp instance
-
setDeliverySubscriptionType
Sets the delivery subscription type of this cp instance.- Specified by:
setDeliverySubscriptionType
in interfaceCPInstanceModel
- Parameters:
deliverySubscriptionType
- the delivery subscription type of this cp instance
-
setDeliverySubscriptionTypeSettings
Sets the delivery subscription type settings of this cp instance.- Specified by:
setDeliverySubscriptionTypeSettings
in interfaceCPInstanceModel
- 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 interfaceCPInstance
-
setDepth
public void setDepth(double depth) Sets the depth of this cp instance.- Specified by:
setDepth
in interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- Parameters:
discontinued
- the discontinued of this cp instance
-
setDiscontinuedDate
Sets the discontinued date of this cp instance.- Specified by:
setDiscontinuedDate
in interfaceCPInstanceModel
- Parameters:
discontinuedDate
- the discontinued date of this cp instance
-
setDisplayDate
Sets the display date of this cp instance.- Specified by:
setDisplayDate
in interfaceCPInstanceModel
- Parameters:
displayDate
- the display date of this cp instance
-
setExpirationDate
Sets the expiration date of this cp instance.- Specified by:
setExpirationDate
in interfaceCPInstanceModel
- Parameters:
expirationDate
- the expiration date of this cp instance
-
setExternalReferenceCode
Sets the external reference code of this cp instance.- Specified by:
setExternalReferenceCode
in interfaceCPInstanceModel
- Specified by:
setExternalReferenceCode
in interfacecom.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 interfaceCPInstanceModel
- Specified by:
setGroupId
in interfacecom.liferay.portal.kernel.model.GroupedModel
- Parameters:
groupId
- the group ID of this cp instance
-
setGtin
Sets the gtin of this cp instance.- Specified by:
setGtin
in interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- Parameters:
height
- the height of this cp instance
-
setLastPublishDate
Sets the last publish date of this cp instance.- Specified by:
setLastPublishDate
in interfaceCPInstanceModel
- Specified by:
setLastPublishDate
in interfacecom.liferay.portal.kernel.model.StagedGroupedModel
- Parameters:
lastPublishDate
- the last publish date of this cp instance
-
setManufacturerPartNumber
Sets the manufacturer part number of this cp instance.- Specified by:
setManufacturerPartNumber
in interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- Parameters:
maxSubscriptionCycles
- the max subscription cycles of this cp instance
-
setModifiedDate
Sets the modified date of this cp instance.- Specified by:
setModifiedDate
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
setModifiedDate
in interfaceCPInstanceModel
- Specified by:
setModifiedDate
in interfacecom.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 interfaceCPInstanceModel
- Specified by:
setMvccVersion
in interfacecom.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 interfaceCPInstanceModel
- Parameters:
overrideSubscriptionInfo
- the override subscription info of this cp instance
-
setPrice
Sets the price of this cp instance.- Specified by:
setPrice
in interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- Specified by:
setPrimaryKey
in interfacecom.liferay.portal.kernel.model.change.tracking.CTModel<CPInstance>
- Parameters:
primaryKey
- the primary key of this cp instance
-
setPromoPrice
Sets the promo price of this cp instance.- Specified by:
setPromoPrice
in interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- Parameters:
purchasable
- the purchasable of this cp instance
-
setReplacementCPInstanceUuid
Sets the replacement cp instance uuid of this cp instance.- Specified by:
setReplacementCPInstanceUuid
in interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- Parameters:
replacementCProductId
- the replacement c product ID of this cp instance
-
setSku
Sets the sku of this cp instance.- Specified by:
setSku
in interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- Specified by:
setStatus
in interfacecom.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 interfaceCPInstanceModel
- Specified by:
setStatusByUserId
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Parameters:
statusByUserId
- the status by user ID of this cp instance
-
setStatusByUserName
Sets the status by user name of this cp instance.- Specified by:
setStatusByUserName
in interfaceCPInstanceModel
- Specified by:
setStatusByUserName
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Parameters:
statusByUserName
- the status by user name of this cp instance
-
setStatusByUserUuid
Sets the status by user uuid of this cp instance.- Specified by:
setStatusByUserUuid
in interfaceCPInstanceModel
- Specified by:
setStatusByUserUuid
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Parameters:
statusByUserUuid
- the status by user uuid of this cp instance
-
setStatusDate
Sets the status date of this cp instance.- Specified by:
setStatusDate
in interfaceCPInstanceModel
- Specified by:
setStatusDate
in interfacecom.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 interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- Parameters:
subscriptionLength
- the subscription length of this cp instance
-
setSubscriptionType
Sets the subscription type of this cp instance.- Specified by:
setSubscriptionType
in interfaceCPInstanceModel
- Parameters:
subscriptionType
- the subscription type of this cp instance
-
setSubscriptionTypeSettings
Sets the subscription type settings of this cp instance.- Specified by:
setSubscriptionTypeSettings
in interfaceCPInstanceModel
- 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 interfaceCPInstance
-
setUnspsc
Sets the unspsc of this cp instance.- Specified by:
setUnspsc
in interfaceCPInstanceModel
- 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 interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
setUserId
in interfaceCPInstanceModel
- Parameters:
userId
- the user ID of this cp instance
-
setUserName
Sets the user name of this cp instance.- Specified by:
setUserName
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
setUserName
in interfaceCPInstanceModel
- Parameters:
userName
- the user name of this cp instance
-
setUserUuid
Sets the user uuid of this cp instance.- Specified by:
setUserUuid
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
setUserUuid
in interfaceCPInstanceModel
- Parameters:
userUuid
- the user uuid of this cp instance
-
setUuid
Sets the uuid of this cp instance.- Specified by:
setUuid
in interfaceCPInstanceModel
- Specified by:
setUuid
in interfacecom.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 interfaceCPInstanceModel
- 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 interfaceCPInstanceModel
- Parameters:
width
- the width of this cp instance
-
toXmlString
- Specified by:
toXmlString
in interfaceCPInstanceModel
-
getAttributeGetterFunctions
- Specified by:
getAttributeGetterFunctions
in interfacecom.liferay.portal.kernel.model.BaseModel<CPInstance>
-
getAttributeSetterBiConsumers
- Specified by:
getAttributeSetterBiConsumers
in interfacecom.liferay.portal.kernel.model.BaseModel<CPInstance>
-
getStagedModelType
public com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()- Specified by:
getStagedModelType
in interfacecom.liferay.portal.kernel.model.StagedModel
-
wrap
- Specified by:
wrap
in classcom.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPInstance>
-