public class CPMeasurementUnitWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPMeasurementUnit> implements CPMeasurementUnit, com.liferay.portal.kernel.model.ModelWrapper<CPMeasurementUnit>
This class is a wrapper for CPMeasurementUnit.
CPMeasurementUnit,
Serialized FormCP_MEASUREMENT_UNIT_ID_ACCESSOR| Constructor and Description |
|---|
CPMeasurementUnitWrapper(CPMeasurementUnit cpMeasurementUnit) |
| Modifier and Type | Method and Description |
|---|---|
CPMeasurementUnit |
cloneWithOriginalValues() |
java.util.Map<java.lang.String,java.util.function.Function<CPMeasurementUnit,java.lang.Object>> |
getAttributeGetterFunctions() |
java.util.Map<java.lang.String,java.util.function.BiConsumer<CPMeasurementUnit,java.lang.Object>> |
getAttributeSetterBiConsumers() |
java.lang.String[] |
getAvailableLanguageIds() |
long |
getCompanyId()
Returns the company ID of this cp measurement unit.
|
long |
getCPMeasurementUnitId()
Returns the cp measurement unit ID of this cp measurement unit.
|
java.util.Date |
getCreateDate()
Returns the create date of this cp measurement unit.
|
long |
getCtCollectionId()
Returns the ct collection ID of this cp measurement unit.
|
java.lang.String |
getDefaultLanguageId() |
java.lang.String |
getExternalReferenceCode()
Returns the external reference code of this cp measurement unit.
|
long |
getGroupId()
Returns the group ID of this cp measurement unit.
|
java.lang.String |
getKey()
Returns the key of this cp measurement unit.
|
java.util.Date |
getLastPublishDate()
Returns the last publish date of this cp measurement unit.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.util.Date |
getModifiedDate()
Returns the modified date of this cp measurement unit.
|
long |
getMvccVersion()
Returns the mvcc version of this cp measurement unit.
|
java.lang.String |
getName()
Returns the name of this cp measurement unit.
|
java.lang.String |
getName(java.util.Locale locale)
Returns the localized name of this cp measurement unit in the language.
|
java.lang.String |
getName(java.util.Locale locale,
boolean useDefault)
Returns the localized name of this cp measurement unit 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 measurement unit in the language.
|
java.lang.String |
getName(java.lang.String languageId,
boolean useDefault)
Returns the localized name of this cp measurement unit 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 measurement unit.
|
boolean |
getPrimary()
Returns the primary of this cp measurement unit.
|
long |
getPrimaryKey()
Returns the primary key of this cp measurement unit.
|
double |
getPriority()
Returns the priority of this cp measurement unit.
|
double |
getRate()
Returns the rate of this cp measurement unit.
|
com.liferay.exportimport.kernel.lar.StagedModelType |
getStagedModelType() |
int |
getType()
Returns the type of this cp measurement unit.
|
long |
getUserId()
Returns the user ID of this cp measurement unit.
|
java.lang.String |
getUserName()
Returns the user name of this cp measurement unit.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this cp measurement unit.
|
java.lang.String |
getUuid()
Returns the uuid of this cp measurement unit.
|
boolean |
isPrimary()
Returns
true if this cp measurement unit is primary. |
void |
persist() |
void |
prepareLocalizedFieldsForImport() |
void |
prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) |
void |
setCompanyId(long companyId)
Sets the company ID of this cp measurement unit.
|
void |
setCPMeasurementUnitId(long CPMeasurementUnitId)
Sets the cp measurement unit ID of this cp measurement unit.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this cp measurement unit.
|
void |
setCtCollectionId(long ctCollectionId)
Sets the ct collection ID of this cp measurement unit.
|
void |
setExternalReferenceCode(java.lang.String externalReferenceCode)
Sets the external reference code of this cp measurement unit.
|
void |
setGroupId(long groupId)
Sets the group ID of this cp measurement unit.
|
void |
setKey(java.lang.String key)
Sets the key of this cp measurement unit.
|
void |
setLastPublishDate(java.util.Date lastPublishDate)
Sets the last publish date of this cp measurement unit.
|
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 measurement unit.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this cp measurement unit.
|
void |
setName(java.lang.String name)
Sets the name of this cp measurement unit.
|
void |
setName(java.lang.String name,
java.util.Locale locale)
Sets the localized name of this cp measurement unit in the language.
|
void |
setName(java.lang.String name,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized name of this cp measurement unit 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 measurement unit 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 measurement unit from the map of locales and localized names, and sets the default locale.
|
void |
setPrimary(boolean primary)
Sets whether this cp measurement unit is primary.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this cp measurement unit.
|
void |
setPriority(double priority)
Sets the priority of this cp measurement unit.
|
void |
setRate(double rate)
Sets the rate of this cp measurement unit.
|
void |
setType(int type)
Sets the type of this cp measurement unit.
|
void |
setUserId(long userId)
Sets the user ID of this cp measurement unit.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this cp measurement unit.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this cp measurement unit.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this cp measurement unit.
|
protected CPMeasurementUnitWrapper |
wrap(CPMeasurementUnit cpMeasurementUnit) |
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 CPMeasurementUnitWrapper(CPMeasurementUnit cpMeasurementUnit)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<CPMeasurementUnit>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<CPMeasurementUnit>public CPMeasurementUnit cloneWithOriginalValues()
cloneWithOriginalValues in interface CPMeasurementUnitModelcloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<CPMeasurementUnit>public java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface CPMeasurementUnitModelgetAvailableLanguageIds in interface com.liferay.portal.kernel.model.LocalizedModelpublic long getCompanyId()
getCompanyId in interface CPMeasurementUnitModelgetCompanyId 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 getCPMeasurementUnitId()
getCPMeasurementUnitId in interface CPMeasurementUnitModelpublic java.util.Date getCreateDate()
getCreateDate in interface CPMeasurementUnitModelgetCreateDate in interface com.liferay.portal.kernel.model.AuditedModelgetCreateDate in interface com.liferay.portal.kernel.model.StagedModelpublic long getCtCollectionId()
getCtCollectionId in interface CPMeasurementUnitModelgetCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPMeasurementUnit>public java.lang.String getDefaultLanguageId()
getDefaultLanguageId in interface CPMeasurementUnitModelgetDefaultLanguageId in interface com.liferay.portal.kernel.model.LocalizedModelpublic java.lang.String getExternalReferenceCode()
getExternalReferenceCode in interface CPMeasurementUnitModelpublic long getGroupId()
getGroupId in interface CPMeasurementUnitModelgetGroupId in interface com.liferay.portal.kernel.model.GroupedModelpublic java.lang.String getKey()
getKey in interface CPMeasurementUnitModelpublic java.util.Date getLastPublishDate()
getLastPublishDate in interface CPMeasurementUnitModelgetLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModelpublic java.util.Date getModifiedDate()
getModifiedDate in interface CPMeasurementUnitModelgetModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelgetModifiedDate in interface com.liferay.portal.kernel.model.StagedModelpublic long getMvccVersion()
getMvccVersion in interface CPMeasurementUnitModelgetMvccVersion in interface com.liferay.portal.kernel.model.MVCCModelpublic java.lang.String getName()
getName in interface CPMeasurementUnitModelpublic java.lang.String getName(java.util.Locale locale)
getName in interface CPMeasurementUnitModellocale - the locale of the languagepublic java.lang.String getName(java.util.Locale locale,
boolean useDefault)
getName in interface CPMeasurementUnitModellocale - 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 CPMeasurementUnitModellanguageId - the ID of the languagepublic java.lang.String getName(java.lang.String languageId,
boolean useDefault)
getName in interface CPMeasurementUnitModellanguageId - 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 CPMeasurementUnitModelpublic java.lang.String getNameCurrentValue()
getNameCurrentValue in interface CPMeasurementUnitModelpublic java.util.Map<java.util.Locale,java.lang.String> getNameMap()
getNameMap in interface CPMeasurementUnitModelpublic boolean getPrimary()
getPrimary in interface CPMeasurementUnitModelpublic long getPrimaryKey()
getPrimaryKey in interface CPMeasurementUnitModelgetPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPMeasurementUnit>public double getPriority()
getPriority in interface CPMeasurementUnitModelpublic double getRate()
getRate in interface CPMeasurementUnitModelpublic int getType()
getType in interface CPMeasurementUnitModelpublic long getUserId()
getUserId in interface CPMeasurementUnitModelgetUserId in interface com.liferay.portal.kernel.model.AuditedModelpublic java.lang.String getUserName()
getUserName in interface CPMeasurementUnitModelgetUserName in interface com.liferay.portal.kernel.model.AuditedModelpublic java.lang.String getUserUuid()
getUserUuid in interface CPMeasurementUnitModelgetUserUuid in interface com.liferay.portal.kernel.model.AuditedModelpublic java.lang.String getUuid()
getUuid in interface CPMeasurementUnitModelgetUuid in interface com.liferay.portal.kernel.model.StagedModelpublic boolean isPrimary()
true if this cp measurement unit is primary.isPrimary in interface CPMeasurementUnitModeltrue if this cp measurement unit 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 CPMeasurementUnitModelprepareLocalizedFieldsForImport 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 CPMeasurementUnitModelprepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModelcom.liferay.portal.kernel.exception.LocaleExceptionpublic void setCompanyId(long companyId)
setCompanyId in interface CPMeasurementUnitModelsetCompanyId 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 measurement unitpublic void setCPMeasurementUnitId(long CPMeasurementUnitId)
setCPMeasurementUnitId in interface CPMeasurementUnitModelCPMeasurementUnitId - the cp measurement unit ID of this cp measurement unitpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface CPMeasurementUnitModelsetCreateDate in interface com.liferay.portal.kernel.model.AuditedModelsetCreateDate in interface com.liferay.portal.kernel.model.StagedModelcreateDate - the create date of this cp measurement unitpublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId in interface CPMeasurementUnitModelsetCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPMeasurementUnit>ctCollectionId - the ct collection ID of this cp measurement unitpublic void setExternalReferenceCode(java.lang.String externalReferenceCode)
setExternalReferenceCode in interface CPMeasurementUnitModelexternalReferenceCode - the external reference code of this cp measurement unitpublic void setGroupId(long groupId)
setGroupId in interface CPMeasurementUnitModelsetGroupId in interface com.liferay.portal.kernel.model.GroupedModelgroupId - the group ID of this cp measurement unitpublic void setKey(java.lang.String key)
setKey in interface CPMeasurementUnitModelkey - the key of this cp measurement unitpublic void setLastPublishDate(java.util.Date lastPublishDate)
setLastPublishDate in interface CPMeasurementUnitModelsetLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModellastPublishDate - the last publish date of this cp measurement unitpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface CPMeasurementUnitModelsetModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelsetModifiedDate in interface com.liferay.portal.kernel.model.StagedModelmodifiedDate - the modified date of this cp measurement unitpublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface CPMeasurementUnitModelsetMvccVersion in interface com.liferay.portal.kernel.model.MVCCModelmvccVersion - the mvcc version of this cp measurement unitpublic void setName(java.lang.String name)
setName in interface CPMeasurementUnitModelname - the name of this cp measurement unitpublic void setName(java.lang.String name,
java.util.Locale locale)
setName in interface CPMeasurementUnitModelname - the localized name of this cp measurement unitlocale - the locale of the languagepublic void setName(java.lang.String name,
java.util.Locale locale,
java.util.Locale defaultLocale)
setName in interface CPMeasurementUnitModelname - the localized name of this cp measurement unitlocale - the locale of the languagedefaultLocale - the default localepublic void setNameCurrentLanguageId(java.lang.String languageId)
setNameCurrentLanguageId in interface CPMeasurementUnitModelpublic void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
setNameMap in interface CPMeasurementUnitModelnameMap - the locales and localized names of this cp measurement unitpublic void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Locale defaultLocale)
setNameMap in interface CPMeasurementUnitModelnameMap - the locales and localized names of this cp measurement unitdefaultLocale - the default localepublic void setPrimary(boolean primary)
setPrimary in interface CPMeasurementUnitModelprimary - the primary of this cp measurement unitpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface CPMeasurementUnitModelsetPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<CPMeasurementUnit>primaryKey - the primary key of this cp measurement unitpublic void setPriority(double priority)
setPriority in interface CPMeasurementUnitModelpriority - the priority of this cp measurement unitpublic void setRate(double rate)
setRate in interface CPMeasurementUnitModelrate - the rate of this cp measurement unitpublic void setType(int type)
setType in interface CPMeasurementUnitModeltype - the type of this cp measurement unitpublic void setUserId(long userId)
setUserId in interface CPMeasurementUnitModelsetUserId in interface com.liferay.portal.kernel.model.AuditedModeluserId - the user ID of this cp measurement unitpublic void setUserName(java.lang.String userName)
setUserName in interface CPMeasurementUnitModelsetUserName in interface com.liferay.portal.kernel.model.AuditedModeluserName - the user name of this cp measurement unitpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface CPMeasurementUnitModelsetUserUuid in interface com.liferay.portal.kernel.model.AuditedModeluserUuid - the user uuid of this cp measurement unitpublic void setUuid(java.lang.String uuid)
setUuid in interface CPMeasurementUnitModelsetUuid in interface com.liferay.portal.kernel.model.StagedModeluuid - the uuid of this cp measurement unitpublic java.util.Map<java.lang.String,java.util.function.Function<CPMeasurementUnit,java.lang.Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions in interface com.liferay.portal.kernel.model.BaseModel<CPMeasurementUnit>public java.util.Map<java.lang.String,java.util.function.BiConsumer<CPMeasurementUnit,java.lang.Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers in interface com.liferay.portal.kernel.model.BaseModel<CPMeasurementUnit>public com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
getStagedModelType in interface com.liferay.portal.kernel.model.StagedModelprotected CPMeasurementUnitWrapper wrap(CPMeasurementUnit cpMeasurementUnit)
wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPMeasurementUnit>