Package com.liferay.portal.kernel.model
Class PortalPreferencesWrapper
Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<PortalPreferences>
com.liferay.portal.kernel.model.PortalPreferencesWrapper
- All Implemented Interfaces:
BaseModel<PortalPreferences>,ClassedModel,ModelWrapper<PortalPreferences>,MVCCModel,PersistedModel,PortalPreferences,PortalPreferencesModel,ShardedModel,Serializable,Cloneable,Comparable<PortalPreferences>
public class PortalPreferencesWrapper
extends BaseModelWrapper<PortalPreferences>
implements ModelWrapper<PortalPreferences>, PortalPreferences
This class is a wrapper for PortalPreferences.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
modelFields inherited from interface com.liferay.portal.kernel.model.PortalPreferences
PORTAL_PREFERENCES_ID_ACCESSOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the company ID of this portal preferences.longReturns the mvcc version of this portal preferences.longReturns the owner ID of this portal preferences.intReturns the owner type of this portal preferences.longReturns the portal preferences ID of this portal preferences.longReturns the primary key of this portal preferences.voidpersist()Updates this model instance in the database or adds it if it does not yet exist.voidsetCompanyId(long companyId) Sets the company ID of this portal preferences.voidsetModelAttributes(Map<String, Object> attributes) voidsetMvccVersion(long mvccVersion) Sets the mvcc version of this portal preferences.voidsetOwnerId(long ownerId) Sets the owner ID of this portal preferences.voidsetOwnerType(int ownerType) Sets the owner type of this portal preferences.voidsetPortalPreferencesId(long portalPreferencesId) Sets the portal preferences ID of this portal preferences.voidsetPrimaryKey(long primaryKey) Sets the primary key of this portal preferences.protected PortalPreferencesWrapperwrap(PortalPreferences portalPreferences) 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, getAttributeGetterFunctions, getAttributeSetterBiConsumers, 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
getWrappedModel
-
Constructor Details
-
PortalPreferencesWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributesin interfaceBaseModel<PortalPreferences>
-
setModelAttributes
- Specified by:
setModelAttributesin interfaceBaseModel<PortalPreferences>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValuesin interfaceBaseModel<PortalPreferences>- Specified by:
cloneWithOriginalValuesin interfacePortalPreferencesModel
-
getCompanyId
public long getCompanyId()Returns the company ID of this portal preferences.- Specified by:
getCompanyIdin interfacePortalPreferencesModel- Specified by:
getCompanyIdin interfaceShardedModel- Returns:
- the company ID of this portal preferences
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this portal preferences.- Specified by:
getMvccVersionin interfaceMVCCModel- Specified by:
getMvccVersionin interfacePortalPreferencesModel- Returns:
- the mvcc version of this portal preferences
-
getOwnerId
public long getOwnerId()Returns the owner ID of this portal preferences.- Specified by:
getOwnerIdin interfacePortalPreferencesModel- Returns:
- the owner ID of this portal preferences
-
getOwnerType
public int getOwnerType()Returns the owner type of this portal preferences.- Specified by:
getOwnerTypein interfacePortalPreferencesModel- Returns:
- the owner type of this portal preferences
-
getPortalPreferencesId
public long getPortalPreferencesId()Returns the portal preferences ID of this portal preferences.- Specified by:
getPortalPreferencesIdin interfacePortalPreferencesModel- Returns:
- the portal preferences ID of this portal preferences
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this portal preferences.- Specified by:
getPrimaryKeyin interfacePortalPreferencesModel- Returns:
- the primary key of this portal preferences
-
persist
public void persist()Description copied from interface:PersistedModelUpdates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.- Specified by:
persistin interfacePersistedModel
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this portal preferences.- Specified by:
setCompanyIdin interfacePortalPreferencesModel- Specified by:
setCompanyIdin interfaceShardedModel- Parameters:
companyId- the company ID of this portal preferences
-
setMvccVersion
public void setMvccVersion(long mvccVersion) Sets the mvcc version of this portal preferences.- Specified by:
setMvccVersionin interfaceMVCCModel- Specified by:
setMvccVersionin interfacePortalPreferencesModel- Parameters:
mvccVersion- the mvcc version of this portal preferences
-
setOwnerId
public void setOwnerId(long ownerId) Sets the owner ID of this portal preferences.- Specified by:
setOwnerIdin interfacePortalPreferencesModel- Parameters:
ownerId- the owner ID of this portal preferences
-
setOwnerType
public void setOwnerType(int ownerType) Sets the owner type of this portal preferences.- Specified by:
setOwnerTypein interfacePortalPreferencesModel- Parameters:
ownerType- the owner type of this portal preferences
-
setPortalPreferencesId
public void setPortalPreferencesId(long portalPreferencesId) Sets the portal preferences ID of this portal preferences.- Specified by:
setPortalPreferencesIdin interfacePortalPreferencesModel- Parameters:
portalPreferencesId- the portal preferences ID of this portal preferences
-
setPrimaryKey
public void setPrimaryKey(long primaryKey) Sets the primary key of this portal preferences.- Specified by:
setPrimaryKeyin interfacePortalPreferencesModel- Parameters:
primaryKey- the primary key of this portal preferences
-
toXmlString
- Specified by:
toXmlStringin interfacePortalPreferencesModel
-
wrap
- Specified by:
wrapin classBaseModelWrapper<PortalPreferences>
-