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.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.
|
java.lang.String |
getDefaultLanguageId() |
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 |
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, toUnescapedModel, toXmlString
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
public 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 CPMeasurementUnitModel
cloneWithOriginalValues
in interface com.liferay.portal.kernel.model.BaseModel<CPMeasurementUnit>
public java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds
in interface CPMeasurementUnitModel
getAvailableLanguageIds
in interface com.liferay.portal.kernel.model.LocalizedModel
public long getCompanyId()
getCompanyId
in interface CPMeasurementUnitModel
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 getCPMeasurementUnitId()
getCPMeasurementUnitId
in interface CPMeasurementUnitModel
public java.util.Date getCreateDate()
getCreateDate
in interface CPMeasurementUnitModel
getCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
getCreateDate
in interface com.liferay.portal.kernel.model.StagedModel
public java.lang.String getDefaultLanguageId()
getDefaultLanguageId
in interface CPMeasurementUnitModel
getDefaultLanguageId
in interface com.liferay.portal.kernel.model.LocalizedModel
public long getGroupId()
getGroupId
in interface CPMeasurementUnitModel
getGroupId
in interface com.liferay.portal.kernel.model.GroupedModel
public java.lang.String getKey()
getKey
in interface CPMeasurementUnitModel
public java.util.Date getLastPublishDate()
getLastPublishDate
in interface CPMeasurementUnitModel
getLastPublishDate
in interface com.liferay.portal.kernel.model.StagedGroupedModel
public java.util.Date getModifiedDate()
getModifiedDate
in interface CPMeasurementUnitModel
getModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
getModifiedDate
in interface com.liferay.portal.kernel.model.StagedModel
public long getMvccVersion()
getMvccVersion
in interface CPMeasurementUnitModel
getMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
public java.lang.String getName()
getName
in interface CPMeasurementUnitModel
public java.lang.String getName(java.util.Locale locale)
getName
in interface CPMeasurementUnitModel
locale
- the locale of the languagepublic java.lang.String getName(java.util.Locale locale, boolean useDefault)
getName
in interface CPMeasurementUnitModel
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 CPMeasurementUnitModel
languageId
- the ID of the languagepublic java.lang.String getName(java.lang.String languageId, boolean useDefault)
getName
in interface CPMeasurementUnitModel
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 CPMeasurementUnitModel
public java.lang.String getNameCurrentValue()
getNameCurrentValue
in interface CPMeasurementUnitModel
public java.util.Map<java.util.Locale,java.lang.String> getNameMap()
getNameMap
in interface CPMeasurementUnitModel
public boolean getPrimary()
getPrimary
in interface CPMeasurementUnitModel
public long getPrimaryKey()
getPrimaryKey
in interface CPMeasurementUnitModel
public double getPriority()
getPriority
in interface CPMeasurementUnitModel
public double getRate()
getRate
in interface CPMeasurementUnitModel
public int getType()
getType
in interface CPMeasurementUnitModel
public long getUserId()
getUserId
in interface CPMeasurementUnitModel
getUserId
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserName()
getUserName
in interface CPMeasurementUnitModel
getUserName
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserUuid()
getUserUuid
in interface CPMeasurementUnitModel
getUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUuid()
getUuid
in interface CPMeasurementUnitModel
getUuid
in interface com.liferay.portal.kernel.model.StagedModel
public boolean isPrimary()
true
if this cp measurement unit is primary.isPrimary
in interface CPMeasurementUnitModel
true
if this cp measurement unit 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 CPMeasurementUnitModel
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 CPMeasurementUnitModel
prepareLocalizedFieldsForImport
in interface com.liferay.portal.kernel.model.LocalizedModel
com.liferay.portal.kernel.exception.LocaleException
public void setCompanyId(long companyId)
setCompanyId
in interface CPMeasurementUnitModel
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 measurement unitpublic void setCPMeasurementUnitId(long CPMeasurementUnitId)
setCPMeasurementUnitId
in interface CPMeasurementUnitModel
CPMeasurementUnitId
- the cp measurement unit ID of this cp measurement unitpublic void setCreateDate(java.util.Date createDate)
setCreateDate
in interface CPMeasurementUnitModel
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 measurement unitpublic void setGroupId(long groupId)
setGroupId
in interface CPMeasurementUnitModel
setGroupId
in interface com.liferay.portal.kernel.model.GroupedModel
groupId
- the group ID of this cp measurement unitpublic void setKey(java.lang.String key)
setKey
in interface CPMeasurementUnitModel
key
- the key of this cp measurement unitpublic void setLastPublishDate(java.util.Date lastPublishDate)
setLastPublishDate
in interface CPMeasurementUnitModel
setLastPublishDate
in interface com.liferay.portal.kernel.model.StagedGroupedModel
lastPublishDate
- the last publish date of this cp measurement unitpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate
in interface CPMeasurementUnitModel
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 measurement unitpublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface CPMeasurementUnitModel
setMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
mvccVersion
- the mvcc version of this cp measurement unitpublic void setName(java.lang.String name)
setName
in interface CPMeasurementUnitModel
name
- the name of this cp measurement unitpublic void setName(java.lang.String name, java.util.Locale locale)
setName
in interface CPMeasurementUnitModel
name
- 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 CPMeasurementUnitModel
name
- 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 CPMeasurementUnitModel
public void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
setNameMap
in interface CPMeasurementUnitModel
nameMap
- 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 CPMeasurementUnitModel
nameMap
- the locales and localized names of this cp measurement unitdefaultLocale
- the default localepublic void setPrimary(boolean primary)
setPrimary
in interface CPMeasurementUnitModel
primary
- the primary of this cp measurement unitpublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface CPMeasurementUnitModel
primaryKey
- the primary key of this cp measurement unitpublic void setPriority(double priority)
setPriority
in interface CPMeasurementUnitModel
priority
- the priority of this cp measurement unitpublic void setRate(double rate)
setRate
in interface CPMeasurementUnitModel
rate
- the rate of this cp measurement unitpublic void setType(int type)
setType
in interface CPMeasurementUnitModel
type
- the type of this cp measurement unitpublic void setUserId(long userId)
setUserId
in interface CPMeasurementUnitModel
setUserId
in interface com.liferay.portal.kernel.model.AuditedModel
userId
- the user ID of this cp measurement unitpublic void setUserName(java.lang.String userName)
setUserName
in interface CPMeasurementUnitModel
setUserName
in interface com.liferay.portal.kernel.model.AuditedModel
userName
- the user name of this cp measurement unitpublic void setUserUuid(java.lang.String userUuid)
setUserUuid
in interface CPMeasurementUnitModel
setUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
userUuid
- the user uuid of this cp measurement unitpublic void setUuid(java.lang.String uuid)
setUuid
in interface CPMeasurementUnitModel
setUuid
in interface com.liferay.portal.kernel.model.StagedModel
uuid
- the uuid of this cp measurement unitpublic com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
getStagedModelType
in interface com.liferay.portal.kernel.model.StagedModel
protected CPMeasurementUnitWrapper wrap(CPMeasurementUnit cpMeasurementUnit)
wrap
in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPMeasurementUnit>