Class CPMeasurementUnitWrapper
java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPMeasurementUnit>
com.liferay.commerce.product.model.CPMeasurementUnitWrapper
- All Implemented Interfaces:
CPMeasurementUnit,CPMeasurementUnitModel,com.liferay.portal.kernel.model.AuditedModel,com.liferay.portal.kernel.model.BaseModel<CPMeasurementUnit>,com.liferay.portal.kernel.model.change.tracking.CTModel<CPMeasurementUnit>,com.liferay.portal.kernel.model.ClassedModel,com.liferay.portal.kernel.model.ExternalReferenceCodeModel,com.liferay.portal.kernel.model.GroupedModel,com.liferay.portal.kernel.model.LocalizedModel,com.liferay.portal.kernel.model.ModelWrapper<CPMeasurementUnit>,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,Serializable,Cloneable,Comparable<CPMeasurementUnit>
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.
- See Also:
- Generated:
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
modelFields inherited from interface com.liferay.commerce.product.model.CPMeasurementUnit
CP_MEASUREMENT_UNIT_ID_ACCESSOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]longReturns the company ID of this cp measurement unit.longReturns the cp measurement unit ID of this cp measurement unit.Returns the create date of this cp measurement unit.longReturns the ct collection ID of this cp measurement unit.Returns the external reference code of this cp measurement unit.longReturns the group ID of this cp measurement unit.getKey()Returns the key of this cp measurement unit.Returns the last publish date of this cp measurement unit.Returns the modified date of this cp measurement unit.longReturns the mvcc version of this cp measurement unit.getName()Returns the name of this cp measurement unit.Returns the localized name of this cp measurement unit in the language.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.Returns the localized name of this cp measurement unit in the language.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.Returns a map of the locales and localized names of this cp measurement unit.booleanReturns the primary of this cp measurement unit.longReturns the primary key of this cp measurement unit.doubleReturns the priority of this cp measurement unit.doublegetRate()Returns the rate of this cp measurement unit.com.liferay.exportimport.kernel.lar.StagedModelTypeintgetType()Returns the type of this cp measurement unit.longReturns the user ID of this cp measurement unit.Returns the user name of this cp measurement unit.Returns the user uuid of this cp measurement unit.getUuid()Returns the uuid of this cp measurement unit.booleanReturnstrueif this cp measurement unit is primary.voidpersist()voidvoidprepareLocalizedFieldsForImport(Locale defaultImportLocale) voidsetCompanyId(long companyId) Sets the company ID of this cp measurement unit.voidsetCPMeasurementUnitId(long CPMeasurementUnitId) Sets the cp measurement unit ID of this cp measurement unit.voidsetCreateDate(Date createDate) Sets the create date of this cp measurement unit.voidsetCtCollectionId(long ctCollectionId) Sets the ct collection ID of this cp measurement unit.voidsetExternalReferenceCode(String externalReferenceCode) Sets the external reference code of this cp measurement unit.voidsetGroupId(long groupId) Sets the group ID of this cp measurement unit.voidSets the key of this cp measurement unit.voidsetLastPublishDate(Date lastPublishDate) Sets the last publish date of this cp measurement unit.voidsetModelAttributes(Map<String, Object> attributes) voidsetModifiedDate(Date modifiedDate) Sets the modified date of this cp measurement unit.voidsetMvccVersion(long mvccVersion) Sets the mvcc version of this cp measurement unit.voidSets the name of this cp measurement unit.voidSets the localized name of this cp measurement unit in the language.voidSets the localized name of this cp measurement unit in the language, and sets the default locale.voidsetNameCurrentLanguageId(String languageId) voidsetNameMap(Map<Locale, String> nameMap) Sets the localized names of this cp measurement unit from the map of locales and localized names.voidsetNameMap(Map<Locale, String> nameMap, Locale defaultLocale) Sets the localized names of this cp measurement unit from the map of locales and localized names, and sets the default locale.voidsetPrimary(boolean primary) Sets whether this cp measurement unit is primary.voidsetPrimaryKey(long primaryKey) Sets the primary key of this cp measurement unit.voidsetPriority(double priority) Sets the priority of this cp measurement unit.voidsetRate(double rate) Sets the rate of this cp measurement unit.voidsetType(int type) Sets the type of this cp measurement unit.voidsetUserId(long userId) Sets the user ID of this cp measurement unit.voidsetUserName(String userName) Sets the user name of this cp measurement unit.voidsetUserUuid(String userUuid) Sets the user uuid of this cp measurement unit.voidSets the uuid of this cp measurement unit.protected CPMeasurementUnitWrapperwrap(CPMeasurementUnit cpMeasurementUnit) 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, toUnescapedModelMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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, toUnescapedModelMethods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassNameMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.liferay.portal.kernel.model.ModelWrapper
getWrappedModelMethods inherited from interface com.liferay.portal.kernel.model.StagedModel
clone
-
Constructor Details
-
CPMeasurementUnitWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributesin interfacecom.liferay.portal.kernel.model.BaseModel<CPMeasurementUnit>
-
setModelAttributes
- Specified by:
setModelAttributesin interfacecom.liferay.portal.kernel.model.BaseModel<CPMeasurementUnit>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValuesin interfacecom.liferay.portal.kernel.model.BaseModel<CPMeasurementUnit>- Specified by:
cloneWithOriginalValuesin interfaceCPMeasurementUnitModel
-
getAvailableLanguageIds
- Specified by:
getAvailableLanguageIdsin interfaceCPMeasurementUnitModel- Specified by:
getAvailableLanguageIdsin interfacecom.liferay.portal.kernel.model.LocalizedModel
-
getCompanyId
public long getCompanyId()Returns the company ID of this cp measurement unit.- Specified by:
getCompanyIdin interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
getCompanyIdin interfaceCPMeasurementUnitModel- Specified by:
getCompanyIdin interfacecom.liferay.portal.kernel.model.ShardedModel- Specified by:
getCompanyIdin interfacecom.liferay.portal.kernel.model.StagedModel- Returns:
- the company ID of this cp measurement unit
-
getCPMeasurementUnitId
public long getCPMeasurementUnitId()Returns the cp measurement unit ID of this cp measurement unit.- Specified by:
getCPMeasurementUnitIdin interfaceCPMeasurementUnitModel- Returns:
- the cp measurement unit ID of this cp measurement unit
-
getCreateDate
Returns the create date of this cp measurement unit.- Specified by:
getCreateDatein interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
getCreateDatein interfaceCPMeasurementUnitModel- Specified by:
getCreateDatein interfacecom.liferay.portal.kernel.model.StagedModel- Returns:
- the create date of this cp measurement unit
-
getCtCollectionId
public long getCtCollectionId()Returns the ct collection ID of this cp measurement unit.- Specified by:
getCtCollectionIdin interfaceCPMeasurementUnitModel- Specified by:
getCtCollectionIdin interfacecom.liferay.portal.kernel.model.change.tracking.CTModel<CPMeasurementUnit>- Returns:
- the ct collection ID of this cp measurement unit
-
getDefaultLanguageId
- Specified by:
getDefaultLanguageIdin interfaceCPMeasurementUnitModel- Specified by:
getDefaultLanguageIdin interfacecom.liferay.portal.kernel.model.LocalizedModel
-
getExternalReferenceCode
Returns the external reference code of this cp measurement unit.- Specified by:
getExternalReferenceCodein interfaceCPMeasurementUnitModel- Specified by:
getExternalReferenceCodein interfacecom.liferay.portal.kernel.model.ExternalReferenceCodeModel- Returns:
- the external reference code of this cp measurement unit
-
getGroupId
public long getGroupId()Returns the group ID of this cp measurement unit.- Specified by:
getGroupIdin interfaceCPMeasurementUnitModel- Specified by:
getGroupIdin interfacecom.liferay.portal.kernel.model.GroupedModel- Returns:
- the group ID of this cp measurement unit
-
getKey
Returns the key of this cp measurement unit.- Specified by:
getKeyin interfaceCPMeasurementUnitModel- Returns:
- the key of this cp measurement unit
-
getLastPublishDate
Returns the last publish date of this cp measurement unit.- Specified by:
getLastPublishDatein interfaceCPMeasurementUnitModel- Specified by:
getLastPublishDatein interfacecom.liferay.portal.kernel.model.StagedGroupedModel- Returns:
- the last publish date of this cp measurement unit
-
getModifiedDate
Returns the modified date of this cp measurement unit.- Specified by:
getModifiedDatein interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
getModifiedDatein interfaceCPMeasurementUnitModel- Specified by:
getModifiedDatein interfacecom.liferay.portal.kernel.model.StagedModel- Returns:
- the modified date of this cp measurement unit
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this cp measurement unit.- Specified by:
getMvccVersionin interfaceCPMeasurementUnitModel- Specified by:
getMvccVersionin interfacecom.liferay.portal.kernel.model.MVCCModel- Returns:
- the mvcc version of this cp measurement unit
-
getName
Returns the name of this cp measurement unit.- Specified by:
getNamein interfaceCPMeasurementUnitModel- Returns:
- the name of this cp measurement unit
-
getName
Returns the localized name of this cp measurement unit in the language. Uses the default language if no localization exists for the requested language.- Specified by:
getNamein interfaceCPMeasurementUnitModel- Parameters:
locale- the locale of the language- Returns:
- the localized name of this cp measurement unit
-
getName
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.- Specified by:
getNamein interfaceCPMeasurementUnitModel- Parameters:
locale- the local of the languageuseDefault- whether to use the default language if no localization exists for the requested language- Returns:
- the localized name of this cp measurement unit. If
useDefaultisfalseand no localization exists for the requested language, an empty string will be returned.
-
getName
Returns the localized name of this cp measurement unit in the language. Uses the default language if no localization exists for the requested language.- Specified by:
getNamein interfaceCPMeasurementUnitModel- Parameters:
languageId- the ID of the language- Returns:
- the localized name of this cp measurement unit
-
getName
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.- Specified by:
getNamein interfaceCPMeasurementUnitModel- Parameters:
languageId- the ID of the languageuseDefault- whether to use the default language if no localization exists for the requested language- Returns:
- the localized name of this cp measurement unit
-
getNameCurrentLanguageId
- Specified by:
getNameCurrentLanguageIdin interfaceCPMeasurementUnitModel
-
getNameCurrentValue
- Specified by:
getNameCurrentValuein interfaceCPMeasurementUnitModel
-
getNameMap
Returns a map of the locales and localized names of this cp measurement unit.- Specified by:
getNameMapin interfaceCPMeasurementUnitModel- Returns:
- the locales and localized names of this cp measurement unit
-
getPrimary
public boolean getPrimary()Returns the primary of this cp measurement unit.- Specified by:
getPrimaryin interfaceCPMeasurementUnitModel- Returns:
- the primary of this cp measurement unit
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this cp measurement unit.- Specified by:
getPrimaryKeyin interfaceCPMeasurementUnitModel- Specified by:
getPrimaryKeyin interfacecom.liferay.portal.kernel.model.change.tracking.CTModel<CPMeasurementUnit>- Returns:
- the primary key of this cp measurement unit
-
getPriority
public double getPriority()Returns the priority of this cp measurement unit.- Specified by:
getPriorityin interfaceCPMeasurementUnitModel- Returns:
- the priority of this cp measurement unit
-
getRate
public double getRate()Returns the rate of this cp measurement unit.- Specified by:
getRatein interfaceCPMeasurementUnitModel- Returns:
- the rate of this cp measurement unit
-
getType
public int getType()Returns the type of this cp measurement unit.- Specified by:
getTypein interfaceCPMeasurementUnitModel- Returns:
- the type of this cp measurement unit
-
getUserId
public long getUserId()Returns the user ID of this cp measurement unit.- Specified by:
getUserIdin interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
getUserIdin interfaceCPMeasurementUnitModel- Returns:
- the user ID of this cp measurement unit
-
getUserName
Returns the user name of this cp measurement unit.- Specified by:
getUserNamein interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
getUserNamein interfaceCPMeasurementUnitModel- Returns:
- the user name of this cp measurement unit
-
getUserUuid
Returns the user uuid of this cp measurement unit.- Specified by:
getUserUuidin interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
getUserUuidin interfaceCPMeasurementUnitModel- Returns:
- the user uuid of this cp measurement unit
-
getUuid
Returns the uuid of this cp measurement unit.- Specified by:
getUuidin interfaceCPMeasurementUnitModel- Specified by:
getUuidin interfacecom.liferay.portal.kernel.model.StagedModel- Returns:
- the uuid of this cp measurement unit
-
isPrimary
public boolean isPrimary()Returnstrueif this cp measurement unit is primary.- Specified by:
isPrimaryin interfaceCPMeasurementUnitModel- Returns:
trueif this cp measurement unit is primary;falseotherwise
-
persist
public void persist()- Specified by:
persistin interfacecom.liferay.portal.kernel.model.PersistedModel
-
prepareLocalizedFieldsForImport
public void prepareLocalizedFieldsForImport() throws com.liferay.portal.kernel.exception.LocaleException- Specified by:
prepareLocalizedFieldsForImportin interfaceCPMeasurementUnitModel- Specified by:
prepareLocalizedFieldsForImportin interfacecom.liferay.portal.kernel.model.LocalizedModel- Throws:
com.liferay.portal.kernel.exception.LocaleException
-
prepareLocalizedFieldsForImport
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws com.liferay.portal.kernel.exception.LocaleException - Specified by:
prepareLocalizedFieldsForImportin interfaceCPMeasurementUnitModel- Specified by:
prepareLocalizedFieldsForImportin interfacecom.liferay.portal.kernel.model.LocalizedModel- Throws:
com.liferay.portal.kernel.exception.LocaleException
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this cp measurement unit.- Specified by:
setCompanyIdin interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
setCompanyIdin interfaceCPMeasurementUnitModel- Specified by:
setCompanyIdin interfacecom.liferay.portal.kernel.model.ShardedModel- Specified by:
setCompanyIdin interfacecom.liferay.portal.kernel.model.StagedModel- Parameters:
companyId- the company ID of this cp measurement unit
-
setCPMeasurementUnitId
public void setCPMeasurementUnitId(long CPMeasurementUnitId) Sets the cp measurement unit ID of this cp measurement unit.- Specified by:
setCPMeasurementUnitIdin interfaceCPMeasurementUnitModel- Parameters:
CPMeasurementUnitId- the cp measurement unit ID of this cp measurement unit
-
setCreateDate
Sets the create date of this cp measurement unit.- Specified by:
setCreateDatein interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
setCreateDatein interfaceCPMeasurementUnitModel- Specified by:
setCreateDatein interfacecom.liferay.portal.kernel.model.StagedModel- Parameters:
createDate- the create date of this cp measurement unit
-
setCtCollectionId
public void setCtCollectionId(long ctCollectionId) Sets the ct collection ID of this cp measurement unit.- Specified by:
setCtCollectionIdin interfaceCPMeasurementUnitModel- Specified by:
setCtCollectionIdin interfacecom.liferay.portal.kernel.model.change.tracking.CTModel<CPMeasurementUnit>- Parameters:
ctCollectionId- the ct collection ID of this cp measurement unit
-
setExternalReferenceCode
Sets the external reference code of this cp measurement unit.- Specified by:
setExternalReferenceCodein interfaceCPMeasurementUnitModel- Specified by:
setExternalReferenceCodein interfacecom.liferay.portal.kernel.model.ExternalReferenceCodeModel- Parameters:
externalReferenceCode- the external reference code of this cp measurement unit
-
setGroupId
public void setGroupId(long groupId) Sets the group ID of this cp measurement unit.- Specified by:
setGroupIdin interfaceCPMeasurementUnitModel- Specified by:
setGroupIdin interfacecom.liferay.portal.kernel.model.GroupedModel- Parameters:
groupId- the group ID of this cp measurement unit
-
setKey
Sets the key of this cp measurement unit.- Specified by:
setKeyin interfaceCPMeasurementUnitModel- Parameters:
key- the key of this cp measurement unit
-
setLastPublishDate
Sets the last publish date of this cp measurement unit.- Specified by:
setLastPublishDatein interfaceCPMeasurementUnitModel- Specified by:
setLastPublishDatein interfacecom.liferay.portal.kernel.model.StagedGroupedModel- Parameters:
lastPublishDate- the last publish date of this cp measurement unit
-
setModifiedDate
Sets the modified date of this cp measurement unit.- Specified by:
setModifiedDatein interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
setModifiedDatein interfaceCPMeasurementUnitModel- Specified by:
setModifiedDatein interfacecom.liferay.portal.kernel.model.StagedModel- Parameters:
modifiedDate- the modified date of this cp measurement unit
-
setMvccVersion
public void setMvccVersion(long mvccVersion) Sets the mvcc version of this cp measurement unit.- Specified by:
setMvccVersionin interfaceCPMeasurementUnitModel- Specified by:
setMvccVersionin interfacecom.liferay.portal.kernel.model.MVCCModel- Parameters:
mvccVersion- the mvcc version of this cp measurement unit
-
setName
Sets the name of this cp measurement unit.- Specified by:
setNamein interfaceCPMeasurementUnitModel- Parameters:
name- the name of this cp measurement unit
-
setName
Sets the localized name of this cp measurement unit in the language.- Specified by:
setNamein interfaceCPMeasurementUnitModel- Parameters:
name- the localized name of this cp measurement unitlocale- the locale of the language
-
setName
Sets the localized name of this cp measurement unit in the language, and sets the default locale.- Specified by:
setNamein interfaceCPMeasurementUnitModel- Parameters:
name- the localized name of this cp measurement unitlocale- the locale of the languagedefaultLocale- the default locale
-
setNameCurrentLanguageId
- Specified by:
setNameCurrentLanguageIdin interfaceCPMeasurementUnitModel
-
setNameMap
Sets the localized names of this cp measurement unit from the map of locales and localized names.- Specified by:
setNameMapin interfaceCPMeasurementUnitModel- Parameters:
nameMap- the locales and localized names of this cp measurement unit
-
setNameMap
Sets the localized names of this cp measurement unit from the map of locales and localized names, and sets the default locale.- Specified by:
setNameMapin interfaceCPMeasurementUnitModel- Parameters:
nameMap- the locales and localized names of this cp measurement unitdefaultLocale- the default locale
-
setPrimary
public void setPrimary(boolean primary) Sets whether this cp measurement unit is primary.- Specified by:
setPrimaryin interfaceCPMeasurementUnitModel- Parameters:
primary- the primary of this cp measurement unit
-
setPrimaryKey
public void setPrimaryKey(long primaryKey) Sets the primary key of this cp measurement unit.- Specified by:
setPrimaryKeyin interfaceCPMeasurementUnitModel- Specified by:
setPrimaryKeyin interfacecom.liferay.portal.kernel.model.change.tracking.CTModel<CPMeasurementUnit>- Parameters:
primaryKey- the primary key of this cp measurement unit
-
setPriority
public void setPriority(double priority) Sets the priority of this cp measurement unit.- Specified by:
setPriorityin interfaceCPMeasurementUnitModel- Parameters:
priority- the priority of this cp measurement unit
-
setRate
public void setRate(double rate) Sets the rate of this cp measurement unit.- Specified by:
setRatein interfaceCPMeasurementUnitModel- Parameters:
rate- the rate of this cp measurement unit
-
setType
public void setType(int type) Sets the type of this cp measurement unit.- Specified by:
setTypein interfaceCPMeasurementUnitModel- Parameters:
type- the type of this cp measurement unit
-
setUserId
public void setUserId(long userId) Sets the user ID of this cp measurement unit.- Specified by:
setUserIdin interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
setUserIdin interfaceCPMeasurementUnitModel- Parameters:
userId- the user ID of this cp measurement unit
-
setUserName
Sets the user name of this cp measurement unit.- Specified by:
setUserNamein interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
setUserNamein interfaceCPMeasurementUnitModel- Parameters:
userName- the user name of this cp measurement unit
-
setUserUuid
Sets the user uuid of this cp measurement unit.- Specified by:
setUserUuidin interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
setUserUuidin interfaceCPMeasurementUnitModel- Parameters:
userUuid- the user uuid of this cp measurement unit
-
setUuid
Sets the uuid of this cp measurement unit.- Specified by:
setUuidin interfaceCPMeasurementUnitModel- Specified by:
setUuidin interfacecom.liferay.portal.kernel.model.StagedModel- Parameters:
uuid- the uuid of this cp measurement unit
-
toXmlString
- Specified by:
toXmlStringin interfaceCPMeasurementUnitModel
-
getAttributeGetterFunctions
- Specified by:
getAttributeGetterFunctionsin interfacecom.liferay.portal.kernel.model.BaseModel<CPMeasurementUnit>
-
getAttributeSetterBiConsumers
- Specified by:
getAttributeSetterBiConsumersin interfacecom.liferay.portal.kernel.model.BaseModel<CPMeasurementUnit>
-
getStagedModelType
public com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()- Specified by:
getStagedModelTypein interfacecom.liferay.portal.kernel.model.StagedModel
-
wrap
- Specified by:
wrapin classcom.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPMeasurementUnit>
-