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.
|
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 |
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, toUnescapedModel
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
public 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 CPInstanceUnitOfMeasureModel
cloneWithOriginalValues
in interface com.liferay.portal.kernel.model.BaseModel<CPInstanceUnitOfMeasure>
public boolean getActive()
getActive
in interface CPInstanceUnitOfMeasureModel
public java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds
in interface CPInstanceUnitOfMeasureModel
getAvailableLanguageIds
in interface com.liferay.portal.kernel.model.LocalizedModel
public long getCompanyId()
getCompanyId
in interface CPInstanceUnitOfMeasureModel
getCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
getCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
getCompanyId
in interface com.liferay.portal.kernel.model.StagedModel
public long getCPInstanceId()
getCPInstanceId
in interface CPInstanceUnitOfMeasureModel
public long getCPInstanceUnitOfMeasureId()
getCPInstanceUnitOfMeasureId
in interface CPInstanceUnitOfMeasureModel
public java.util.Date getCreateDate()
getCreateDate
in interface CPInstanceUnitOfMeasureModel
getCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
getCreateDate
in interface com.liferay.portal.kernel.model.StagedModel
public long getCtCollectionId()
getCtCollectionId
in interface CPInstanceUnitOfMeasureModel
getCtCollectionId
in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPInstanceUnitOfMeasure>
public java.lang.String getDefaultLanguageId()
getDefaultLanguageId
in interface CPInstanceUnitOfMeasureModel
getDefaultLanguageId
in interface com.liferay.portal.kernel.model.LocalizedModel
public java.math.BigDecimal getIncrementalOrderQuantity()
getIncrementalOrderQuantity
in interface CPInstanceUnitOfMeasureModel
public java.lang.String getKey()
getKey
in interface CPInstanceUnitOfMeasureModel
public java.util.Date getModifiedDate()
getModifiedDate
in interface CPInstanceUnitOfMeasureModel
getModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
getModifiedDate
in interface com.liferay.portal.kernel.model.StagedModel
public long getMvccVersion()
getMvccVersion
in interface CPInstanceUnitOfMeasureModel
getMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
public java.lang.String getName()
getName
in interface CPInstanceUnitOfMeasureModel
public java.lang.String getName(java.util.Locale locale)
getName
in interface CPInstanceUnitOfMeasureModel
locale
- the locale of the languagepublic java.lang.String getName(java.util.Locale locale, boolean useDefault)
getName
in interface CPInstanceUnitOfMeasureModel
locale
- 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 CPInstanceUnitOfMeasureModel
languageId
- the ID of the languagepublic java.lang.String getName(java.lang.String languageId, boolean useDefault)
getName
in interface CPInstanceUnitOfMeasureModel
languageId
- 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 CPInstanceUnitOfMeasureModel
public java.lang.String getNameCurrentValue()
getNameCurrentValue
in interface CPInstanceUnitOfMeasureModel
public java.util.Map<java.util.Locale,java.lang.String> getNameMap()
getNameMap
in interface CPInstanceUnitOfMeasureModel
public int getPrecision()
getPrecision
in interface CPInstanceUnitOfMeasureModel
public boolean getPrimary()
getPrimary
in interface CPInstanceUnitOfMeasureModel
public long getPrimaryKey()
getPrimaryKey
in interface CPInstanceUnitOfMeasureModel
getPrimaryKey
in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPInstanceUnitOfMeasure>
public double getPriority()
getPriority
in interface CPInstanceUnitOfMeasureModel
public java.math.BigDecimal getRate()
getRate
in interface CPInstanceUnitOfMeasureModel
public java.lang.String getSku()
getSku
in interface CPInstanceUnitOfMeasureModel
public long getUserId()
getUserId
in interface CPInstanceUnitOfMeasureModel
getUserId
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserName()
getUserName
in interface CPInstanceUnitOfMeasureModel
getUserName
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserUuid()
getUserUuid
in interface CPInstanceUnitOfMeasureModel
getUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUuid()
getUuid
in interface CPInstanceUnitOfMeasureModel
getUuid
in interface com.liferay.portal.kernel.model.StagedModel
public boolean isActive()
true
if this cp instance unit of measure is active.isActive
in interface CPInstanceUnitOfMeasureModel
true
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 CPInstanceUnitOfMeasureModel
true
if this cp instance unit of measure is primary; false
otherwisepublic void persist()
persist
in interface com.liferay.portal.kernel.model.PersistedModel
public void prepareLocalizedFieldsForImport() throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport
in interface CPInstanceUnitOfMeasureModel
prepareLocalizedFieldsForImport
in interface com.liferay.portal.kernel.model.LocalizedModel
com.liferay.portal.kernel.exception.LocaleException
public void prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport
in interface CPInstanceUnitOfMeasureModel
prepareLocalizedFieldsForImport
in interface com.liferay.portal.kernel.model.LocalizedModel
com.liferay.portal.kernel.exception.LocaleException
public void setActive(boolean active)
setActive
in interface CPInstanceUnitOfMeasureModel
active
- the active of this cp instance unit of measurepublic void setCompanyId(long companyId)
setCompanyId
in interface CPInstanceUnitOfMeasureModel
setCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
setCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
setCompanyId
in interface com.liferay.portal.kernel.model.StagedModel
companyId
- the company ID of this cp instance unit of measurepublic void setCPInstanceId(long CPInstanceId)
setCPInstanceId
in interface CPInstanceUnitOfMeasureModel
CPInstanceId
- the cp instance ID of this cp instance unit of measurepublic void setCPInstanceUnitOfMeasureId(long CPInstanceUnitOfMeasureId)
setCPInstanceUnitOfMeasureId
in interface CPInstanceUnitOfMeasureModel
CPInstanceUnitOfMeasureId
- the cp instance unit of measure ID of this cp instance unit of measurepublic void setCreateDate(java.util.Date createDate)
setCreateDate
in interface CPInstanceUnitOfMeasureModel
setCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
setCreateDate
in interface com.liferay.portal.kernel.model.StagedModel
createDate
- the create date of this cp instance unit of measurepublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId
in interface CPInstanceUnitOfMeasureModel
setCtCollectionId
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 CPInstanceUnitOfMeasureModel
incrementalOrderQuantity
- the incremental order quantity of this cp instance unit of measurepublic void setKey(java.lang.String key)
setKey
in interface CPInstanceUnitOfMeasureModel
key
- the key of this cp instance unit of measurepublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate
in interface CPInstanceUnitOfMeasureModel
setModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
setModifiedDate
in interface com.liferay.portal.kernel.model.StagedModel
modifiedDate
- the modified date of this cp instance unit of measurepublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface CPInstanceUnitOfMeasureModel
setMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
mvccVersion
- the mvcc version of this cp instance unit of measurepublic void setName(java.lang.String name)
setName
in interface CPInstanceUnitOfMeasureModel
name
- the name of this cp instance unit of measurepublic void setName(java.lang.String name, java.util.Locale locale)
setName
in interface CPInstanceUnitOfMeasureModel
name
- 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 CPInstanceUnitOfMeasureModel
name
- 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 CPInstanceUnitOfMeasureModel
public void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
setNameMap
in interface CPInstanceUnitOfMeasureModel
nameMap
- 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 CPInstanceUnitOfMeasureModel
nameMap
- the locales and localized names of this cp instance unit of measuredefaultLocale
- the default localepublic void setPrecision(int precision)
setPrecision
in interface CPInstanceUnitOfMeasureModel
precision
- the precision of this cp instance unit of measurepublic void setPrimary(boolean primary)
setPrimary
in interface CPInstanceUnitOfMeasureModel
primary
- the primary of this cp instance unit of measurepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface CPInstanceUnitOfMeasureModel
setPrimaryKey
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 CPInstanceUnitOfMeasureModel
priority
- the priority of this cp instance unit of measurepublic void setRate(java.math.BigDecimal rate)
setRate
in interface CPInstanceUnitOfMeasureModel
rate
- the rate of this cp instance unit of measurepublic void setSku(java.lang.String sku)
setSku
in interface CPInstanceUnitOfMeasureModel
sku
- the sku of this cp instance unit of measurepublic void setUserId(long userId)
setUserId
in interface CPInstanceUnitOfMeasureModel
setUserId
in interface com.liferay.portal.kernel.model.AuditedModel
userId
- the user ID of this cp instance unit of measurepublic void setUserName(java.lang.String userName)
setUserName
in interface CPInstanceUnitOfMeasureModel
setUserName
in interface com.liferay.portal.kernel.model.AuditedModel
userName
- the user name of this cp instance unit of measurepublic void setUserUuid(java.lang.String userUuid)
setUserUuid
in interface CPInstanceUnitOfMeasureModel
setUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
userUuid
- the user uuid of this cp instance unit of measurepublic void setUuid(java.lang.String uuid)
setUuid
in interface CPInstanceUnitOfMeasureModel
setUuid
in interface com.liferay.portal.kernel.model.StagedModel
uuid
- the uuid of this cp instance unit of measurepublic java.lang.String toXmlString()
toXmlString
in interface CPInstanceUnitOfMeasureModel
public 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.StagedModel
protected CPInstanceUnitOfMeasureWrapper wrap(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
wrap
in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPInstanceUnitOfMeasure>