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.
CPInstanceUnitOfMeasure,
Serialized FormCP_INSTANCE_UNIT_OF_MEASURE_ID_ACCESSOR| Constructor and Description |
|---|
CPInstanceUnitOfMeasureWrapper(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure) |
| Modifier and Type | Method and Description |
|---|---|
CPInstanceUnitOfMeasure |
cloneWithOriginalValues() |
boolean |
getActive()
Returns the active of this cp instance unit of measure.
|
java.util.Map<java.lang.String,java.util.function.Function<CPInstanceUnitOfMeasure,java.lang.Object>> |
getAttributeGetterFunctions() |
java.util.Map<java.lang.String,java.util.function.BiConsumer<CPInstanceUnitOfMeasure,java.lang.Object>> |
getAttributeSetterBiConsumers() |
java.lang.String[] |
getAvailableLanguageIds() |
long |
getCompanyId()
Returns the company ID of this cp instance unit of measure.
|
long |
getCPInstanceId()
Returns the cp instance ID of this cp instance unit of measure.
|
long |
getCPInstanceUnitOfMeasureId()
Returns the cp instance unit of measure ID of this cp instance unit of measure.
|
java.util.Date |
getCreateDate()
Returns the create date of this cp instance unit of measure.
|
long |
getCtCollectionId()
Returns the ct collection ID of this cp instance unit of measure.
|
java.lang.String |
getDefaultLanguageId() |
java.math.BigDecimal |
getIncrementalOrderQuantity()
Returns the incremental order quantity of this cp instance unit of measure.
|
java.lang.String |
getKey()
Returns the key of this cp instance unit of measure.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.util.Date |
getModifiedDate()
Returns the modified date of this cp instance unit of measure.
|
long |
getMvccVersion()
Returns the mvcc version of this cp instance unit of measure.
|
java.lang.String |
getName()
Returns the name of this cp instance unit of measure.
|
java.lang.String |
getName(java.util.Locale locale)
Returns the localized name of this cp instance unit of measure in the language.
|
java.lang.String |
getName(java.util.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.
|
java.lang.String |
getName(java.lang.String languageId)
Returns the localized name of this cp instance unit of measure in the language.
|
java.lang.String |
getName(java.lang.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.
|
java.lang.String |
getNameCurrentLanguageId() |
java.lang.String |
getNameCurrentValue() |
java.util.Map<java.util.Locale,java.lang.String> |
getNameMap()
Returns a map of the locales and localized names of this cp instance unit of measure.
|
int |
getPrecision()
Returns the precision of this cp instance unit of measure.
|
java.math.BigDecimal |
getPricingQuantity()
Returns the pricing quantity of this cp instance unit of measure.
|
boolean |
getPrimary()
Returns the primary of this cp instance unit of measure.
|
long |
getPrimaryKey()
Returns the primary key of this cp instance unit of measure.
|
double |
getPriority()
Returns the priority of this cp instance unit of measure.
|
java.math.BigDecimal |
getRate()
Returns the rate of this cp instance unit of measure.
|
java.lang.String |
getSku()
Returns the sku of this cp instance unit of measure.
|
com.liferay.exportimport.kernel.lar.StagedModelType |
getStagedModelType() |
long |
getUserId()
Returns the user ID of this cp instance unit of measure.
|
java.lang.String |
getUserName()
Returns the user name of this cp instance unit of measure.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this cp instance unit of measure.
|
java.lang.String |
getUuid()
Returns the uuid of this cp instance unit of measure.
|
boolean |
isActive()
Returns
true if this cp instance unit of measure is active. |
boolean |
isPrimary()
Returns
true if this cp instance unit of measure is primary. |
void |
persist() |
void |
prepareLocalizedFieldsForImport() |
void |
prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) |
void |
setActive(boolean active)
Sets whether this cp instance unit of measure is active.
|
void |
setCompanyId(long companyId)
Sets the company ID of this cp instance unit of measure.
|
void |
setCPInstanceId(long CPInstanceId)
Sets the cp instance ID of this cp instance unit of measure.
|
void |
setCPInstanceUnitOfMeasureId(long CPInstanceUnitOfMeasureId)
Sets the cp instance unit of measure ID of this cp instance unit of measure.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this cp instance unit of measure.
|
void |
setCtCollectionId(long ctCollectionId)
Sets the ct collection ID of this cp instance unit of measure.
|
void |
setIncrementalOrderQuantity(java.math.BigDecimal incrementalOrderQuantity)
Sets the incremental order quantity of this cp instance unit of measure.
|
void |
setKey(java.lang.String key)
Sets the key of this cp instance unit of measure.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this cp instance unit of measure.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this cp instance unit of measure.
|
void |
setName(java.lang.String name)
Sets the name of this cp instance unit of measure.
|
void |
setName(java.lang.String name,
java.util.Locale locale)
Sets the localized name of this cp instance unit of measure in the language.
|
void |
setName(java.lang.String name,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized name of this cp instance unit of measure in the language, and sets the default locale.
|
void |
setNameCurrentLanguageId(java.lang.String languageId) |
void |
setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
Sets the localized names of this cp instance unit of measure from the map of locales and localized names.
|
void |
setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.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.
|
void |
setPrecision(int precision)
Sets the precision of this cp instance unit of measure.
|
void |
setPricingQuantity(java.math.BigDecimal pricingQuantity)
Sets the pricing quantity of this cp instance unit of measure.
|
void |
setPrimary(boolean primary)
Sets whether this cp instance unit of measure is primary.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this cp instance unit of measure.
|
void |
setPriority(double priority)
Sets the priority of this cp instance unit of measure.
|
void |
setRate(java.math.BigDecimal rate)
Sets the rate of this cp instance unit of measure.
|
void |
setSku(java.lang.String sku)
Sets the sku of this cp instance unit of measure.
|
void |
setUserId(long userId)
Sets the user ID of this cp instance unit of measure.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this cp instance unit of measure.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this cp instance unit of measure.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this cp instance unit of measure.
|
java.lang.String |
toXmlString() |
protected CPInstanceUnitOfMeasureWrapper |
wrap(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure) |
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModelfinalize, getClass, notify, notifyAll, wait, wait, waitclone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModelpublic CPInstanceUnitOfMeasureWrapper(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<CPInstanceUnitOfMeasure>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<CPInstanceUnitOfMeasure>public CPInstanceUnitOfMeasure cloneWithOriginalValues()
cloneWithOriginalValues in interface CPInstanceUnitOfMeasureModelcloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<CPInstanceUnitOfMeasure>public boolean getActive()
getActive in interface CPInstanceUnitOfMeasureModelpublic java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface CPInstanceUnitOfMeasureModelgetAvailableLanguageIds in interface com.liferay.portal.kernel.model.LocalizedModelpublic long getCompanyId()
getCompanyId in interface CPInstanceUnitOfMeasureModelgetCompanyId in interface com.liferay.portal.kernel.model.AuditedModelgetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelgetCompanyId in interface com.liferay.portal.kernel.model.StagedModelpublic long getCPInstanceId()
getCPInstanceId in interface CPInstanceUnitOfMeasureModelpublic long getCPInstanceUnitOfMeasureId()
getCPInstanceUnitOfMeasureId in interface CPInstanceUnitOfMeasureModelpublic java.util.Date getCreateDate()
getCreateDate in interface CPInstanceUnitOfMeasureModelgetCreateDate in interface com.liferay.portal.kernel.model.AuditedModelgetCreateDate in interface com.liferay.portal.kernel.model.StagedModelpublic long getCtCollectionId()
getCtCollectionId in interface CPInstanceUnitOfMeasureModelgetCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPInstanceUnitOfMeasure>public java.lang.String getDefaultLanguageId()
getDefaultLanguageId in interface CPInstanceUnitOfMeasureModelgetDefaultLanguageId in interface com.liferay.portal.kernel.model.LocalizedModelpublic java.math.BigDecimal getIncrementalOrderQuantity()
getIncrementalOrderQuantity in interface CPInstanceUnitOfMeasureModelpublic java.lang.String getKey()
getKey in interface CPInstanceUnitOfMeasureModelpublic java.util.Date getModifiedDate()
getModifiedDate in interface CPInstanceUnitOfMeasureModelgetModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelgetModifiedDate in interface com.liferay.portal.kernel.model.StagedModelpublic long getMvccVersion()
getMvccVersion in interface CPInstanceUnitOfMeasureModelgetMvccVersion in interface com.liferay.portal.kernel.model.MVCCModelpublic java.lang.String getName()
getName in interface CPInstanceUnitOfMeasureModelpublic java.lang.String getName(java.util.Locale locale)
getName in interface CPInstanceUnitOfMeasureModellocale - the locale of the languagepublic java.lang.String getName(java.util.Locale locale,
boolean useDefault)
getName in interface CPInstanceUnitOfMeasureModellocale - the local of the languageuseDefault - whether to use the default language if no localization exists for the requested languageuseDefault is false and no localization exists for the requested language, an empty string will be returned.public java.lang.String getName(java.lang.String languageId)
getName in interface CPInstanceUnitOfMeasureModellanguageId - the ID of the languagepublic java.lang.String getName(java.lang.String languageId,
boolean useDefault)
getName in interface CPInstanceUnitOfMeasureModellanguageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested languagepublic java.lang.String getNameCurrentLanguageId()
getNameCurrentLanguageId in interface CPInstanceUnitOfMeasureModelpublic java.lang.String getNameCurrentValue()
getNameCurrentValue in interface CPInstanceUnitOfMeasureModelpublic java.util.Map<java.util.Locale,java.lang.String> getNameMap()
getNameMap in interface CPInstanceUnitOfMeasureModelpublic int getPrecision()
getPrecision in interface CPInstanceUnitOfMeasureModelpublic java.math.BigDecimal getPricingQuantity()
getPricingQuantity in interface CPInstanceUnitOfMeasureModelpublic boolean getPrimary()
getPrimary in interface CPInstanceUnitOfMeasureModelpublic long getPrimaryKey()
getPrimaryKey in interface CPInstanceUnitOfMeasureModelgetPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPInstanceUnitOfMeasure>public double getPriority()
getPriority in interface CPInstanceUnitOfMeasureModelpublic java.math.BigDecimal getRate()
getRate in interface CPInstanceUnitOfMeasureModelpublic java.lang.String getSku()
getSku in interface CPInstanceUnitOfMeasureModelpublic long getUserId()
getUserId in interface CPInstanceUnitOfMeasureModelgetUserId in interface com.liferay.portal.kernel.model.AuditedModelpublic java.lang.String getUserName()
getUserName in interface CPInstanceUnitOfMeasureModelgetUserName in interface com.liferay.portal.kernel.model.AuditedModelpublic java.lang.String getUserUuid()
getUserUuid in interface CPInstanceUnitOfMeasureModelgetUserUuid in interface com.liferay.portal.kernel.model.AuditedModelpublic java.lang.String getUuid()
getUuid in interface CPInstanceUnitOfMeasureModelgetUuid in interface com.liferay.portal.kernel.model.StagedModelpublic boolean isActive()
true if this cp instance unit of measure is active.isActive in interface CPInstanceUnitOfMeasureModeltrue if this cp instance unit of measure is active; false otherwisepublic boolean isPrimary()
true if this cp instance unit of measure is primary.isPrimary in interface CPInstanceUnitOfMeasureModeltrue if this cp instance unit of measure is primary; false otherwisepublic void persist()
persist in interface com.liferay.portal.kernel.model.PersistedModelpublic void prepareLocalizedFieldsForImport()
throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport in interface CPInstanceUnitOfMeasureModelprepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModelcom.liferay.portal.kernel.exception.LocaleExceptionpublic void prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale)
throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport in interface CPInstanceUnitOfMeasureModelprepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModelcom.liferay.portal.kernel.exception.LocaleExceptionpublic void setActive(boolean active)
setActive in interface CPInstanceUnitOfMeasureModelactive - the active of this cp instance unit of measurepublic void setCompanyId(long companyId)
setCompanyId in interface CPInstanceUnitOfMeasureModelsetCompanyId in interface com.liferay.portal.kernel.model.AuditedModelsetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelsetCompanyId in interface com.liferay.portal.kernel.model.StagedModelcompanyId - the company ID of this cp instance unit of measurepublic void setCPInstanceId(long CPInstanceId)
setCPInstanceId in interface CPInstanceUnitOfMeasureModelCPInstanceId - the cp instance ID of this cp instance unit of measurepublic void setCPInstanceUnitOfMeasureId(long CPInstanceUnitOfMeasureId)
setCPInstanceUnitOfMeasureId in interface CPInstanceUnitOfMeasureModelCPInstanceUnitOfMeasureId - the cp instance unit of measure ID of this cp instance unit of measurepublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface CPInstanceUnitOfMeasureModelsetCreateDate in interface com.liferay.portal.kernel.model.AuditedModelsetCreateDate in interface com.liferay.portal.kernel.model.StagedModelcreateDate - the create date of this cp instance unit of measurepublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId in interface CPInstanceUnitOfMeasureModelsetCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPInstanceUnitOfMeasure>ctCollectionId - the ct collection ID of this cp instance unit of measurepublic void setIncrementalOrderQuantity(java.math.BigDecimal incrementalOrderQuantity)
setIncrementalOrderQuantity in interface CPInstanceUnitOfMeasureModelincrementalOrderQuantity - the incremental order quantity of this cp instance unit of measurepublic void setKey(java.lang.String key)
setKey in interface CPInstanceUnitOfMeasureModelkey - the key of this cp instance unit of measurepublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface CPInstanceUnitOfMeasureModelsetModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelsetModifiedDate in interface com.liferay.portal.kernel.model.StagedModelmodifiedDate - the modified date of this cp instance unit of measurepublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface CPInstanceUnitOfMeasureModelsetMvccVersion in interface com.liferay.portal.kernel.model.MVCCModelmvccVersion - the mvcc version of this cp instance unit of measurepublic void setName(java.lang.String name)
setName in interface CPInstanceUnitOfMeasureModelname - the name of this cp instance unit of measurepublic void setName(java.lang.String name,
java.util.Locale locale)
setName in interface CPInstanceUnitOfMeasureModelname - the localized name of this cp instance unit of measurelocale - the locale of the languagepublic void setName(java.lang.String name,
java.util.Locale locale,
java.util.Locale defaultLocale)
setName in interface CPInstanceUnitOfMeasureModelname - the localized name of this cp instance unit of measurelocale - the locale of the languagedefaultLocale - the default localepublic void setNameCurrentLanguageId(java.lang.String languageId)
setNameCurrentLanguageId in interface CPInstanceUnitOfMeasureModelpublic void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
setNameMap in interface CPInstanceUnitOfMeasureModelnameMap - the locales and localized names of this cp instance unit of measurepublic void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Locale defaultLocale)
setNameMap in interface CPInstanceUnitOfMeasureModelnameMap - the locales and localized names of this cp instance unit of measuredefaultLocale - the default localepublic void setPrecision(int precision)
setPrecision in interface CPInstanceUnitOfMeasureModelprecision - the precision of this cp instance unit of measurepublic void setPricingQuantity(java.math.BigDecimal pricingQuantity)
setPricingQuantity in interface CPInstanceUnitOfMeasureModelpricingQuantity - the pricing quantity of this cp instance unit of measurepublic void setPrimary(boolean primary)
setPrimary in interface CPInstanceUnitOfMeasureModelprimary - the primary of this cp instance unit of measurepublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface CPInstanceUnitOfMeasureModelsetPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPInstanceUnitOfMeasure>primaryKey - the primary key of this cp instance unit of measurepublic void setPriority(double priority)
setPriority in interface CPInstanceUnitOfMeasureModelpriority - the priority of this cp instance unit of measurepublic void setRate(java.math.BigDecimal rate)
setRate in interface CPInstanceUnitOfMeasureModelrate - the rate of this cp instance unit of measurepublic void setSku(java.lang.String sku)
setSku in interface CPInstanceUnitOfMeasureModelsku - the sku of this cp instance unit of measurepublic void setUserId(long userId)
setUserId in interface CPInstanceUnitOfMeasureModelsetUserId in interface com.liferay.portal.kernel.model.AuditedModeluserId - the user ID of this cp instance unit of measurepublic void setUserName(java.lang.String userName)
setUserName in interface CPInstanceUnitOfMeasureModelsetUserName in interface com.liferay.portal.kernel.model.AuditedModeluserName - the user name of this cp instance unit of measurepublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface CPInstanceUnitOfMeasureModelsetUserUuid in interface com.liferay.portal.kernel.model.AuditedModeluserUuid - the user uuid of this cp instance unit of measurepublic void setUuid(java.lang.String uuid)
setUuid in interface CPInstanceUnitOfMeasureModelsetUuid in interface com.liferay.portal.kernel.model.StagedModeluuid - the uuid of this cp instance unit of measurepublic java.lang.String toXmlString()
toXmlString in interface CPInstanceUnitOfMeasureModelpublic java.util.Map<java.lang.String,java.util.function.Function<CPInstanceUnitOfMeasure,java.lang.Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions in interface com.liferay.portal.kernel.model.BaseModel<CPInstanceUnitOfMeasure>public java.util.Map<java.lang.String,java.util.function.BiConsumer<CPInstanceUnitOfMeasure,java.lang.Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers in interface com.liferay.portal.kernel.model.BaseModel<CPInstanceUnitOfMeasure>public com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
getStagedModelType in interface com.liferay.portal.kernel.model.StagedModelprotected CPInstanceUnitOfMeasureWrapper wrap(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPInstanceUnitOfMeasure>