Package com.liferay.portal.kernel.model
Class PortletPreferencesWrapper
Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<PortletPreferences>
com.liferay.portal.kernel.model.PortletPreferencesWrapper
- All Implemented Interfaces:
BaseModel<PortletPreferences>,CTModel<PortletPreferences>,ClassedModel,ModelWrapper<PortletPreferences>,MVCCModel,PersistedModel,PortletPreferences,PortletPreferencesModel,ShardedModel,Serializable,Cloneable,Comparable<PortletPreferences>
public class PortletPreferencesWrapper
extends BaseModelWrapper<PortletPreferences>
implements ModelWrapper<PortletPreferences>, PortletPreferences
This class is a wrapper for PortletPreferences.
- 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.PortletPreferences
PORTLET_PREFERENCES_ID_ACCESSOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the company ID of this portlet preferences.longReturns the ct collection ID of this portlet preferences.longReturns the mvcc version of this portlet preferences.longReturns the owner ID of this portlet preferences.intReturns the owner type of this portlet preferences.longgetPlid()Returns the plid of this portlet preferences.Returns the portlet ID of this portlet preferences.longReturns the portlet preferences ID of this portlet preferences.longReturns the primary key of this portlet 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 portlet preferences.voidsetCtCollectionId(long ctCollectionId) Sets the ct collection ID of this portlet preferences.voidsetModelAttributes(Map<String, Object> attributes) voidsetMvccVersion(long mvccVersion) Sets the mvcc version of this portlet preferences.voidsetOwnerId(long ownerId) Sets the owner ID of this portlet preferences.voidsetOwnerType(int ownerType) Sets the owner type of this portlet preferences.voidsetPlid(long plid) Sets the plid of this portlet preferences.voidsetPortletId(String portletId) Sets the portlet ID of this portlet preferences.voidsetPortletPreferencesId(long portletPreferencesId) Sets the portlet preferences ID of this portlet preferences.voidsetPrimaryKey(long primaryKey) Sets the primary key of this portlet preferences.protected PortletPreferencesWrapperwrap(PortletPreferences portletPreferences) 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
getWrappedModel
-
Constructor Details
-
PortletPreferencesWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributesin interfaceBaseModel<PortletPreferences>
-
setModelAttributes
- Specified by:
setModelAttributesin interfaceBaseModel<PortletPreferences>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValuesin interfaceBaseModel<PortletPreferences>- Specified by:
cloneWithOriginalValuesin interfacePortletPreferencesModel
-
getCompanyId
public long getCompanyId()Returns the company ID of this portlet preferences.- Specified by:
getCompanyIdin interfacePortletPreferencesModel- Specified by:
getCompanyIdin interfaceShardedModel- Returns:
- the company ID of this portlet preferences
-
getCtCollectionId
public long getCtCollectionId()Returns the ct collection ID of this portlet preferences.- Specified by:
getCtCollectionIdin interfaceCTModel<PortletPreferences>- Specified by:
getCtCollectionIdin interfacePortletPreferencesModel- Returns:
- the ct collection ID of this portlet preferences
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this portlet preferences.- Specified by:
getMvccVersionin interfaceMVCCModel- Specified by:
getMvccVersionin interfacePortletPreferencesModel- Returns:
- the mvcc version of this portlet preferences
-
getOwnerId
public long getOwnerId()Returns the owner ID of this portlet preferences.- Specified by:
getOwnerIdin interfacePortletPreferencesModel- Returns:
- the owner ID of this portlet preferences
-
getOwnerType
public int getOwnerType()Returns the owner type of this portlet preferences.- Specified by:
getOwnerTypein interfacePortletPreferencesModel- Returns:
- the owner type of this portlet preferences
-
getPlid
public long getPlid()Returns the plid of this portlet preferences.- Specified by:
getPlidin interfacePortletPreferencesModel- Returns:
- the plid of this portlet preferences
-
getPortletId
Returns the portlet ID of this portlet preferences.- Specified by:
getPortletIdin interfacePortletPreferencesModel- Returns:
- the portlet ID of this portlet preferences
-
getPortletPreferencesId
public long getPortletPreferencesId()Returns the portlet preferences ID of this portlet preferences.- Specified by:
getPortletPreferencesIdin interfacePortletPreferencesModel- Returns:
- the portlet preferences ID of this portlet preferences
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this portlet preferences.- Specified by:
getPrimaryKeyin interfaceCTModel<PortletPreferences>- Specified by:
getPrimaryKeyin interfacePortletPreferencesModel- Returns:
- the primary key of this portlet 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 portlet preferences.- Specified by:
setCompanyIdin interfacePortletPreferencesModel- Specified by:
setCompanyIdin interfaceShardedModel- Parameters:
companyId- the company ID of this portlet preferences
-
setCtCollectionId
public void setCtCollectionId(long ctCollectionId) Sets the ct collection ID of this portlet preferences.- Specified by:
setCtCollectionIdin interfaceCTModel<PortletPreferences>- Specified by:
setCtCollectionIdin interfacePortletPreferencesModel- Parameters:
ctCollectionId- the ct collection ID of this portlet preferences
-
setMvccVersion
public void setMvccVersion(long mvccVersion) Sets the mvcc version of this portlet preferences.- Specified by:
setMvccVersionin interfaceMVCCModel- Specified by:
setMvccVersionin interfacePortletPreferencesModel- Parameters:
mvccVersion- the mvcc version of this portlet preferences
-
setOwnerId
public void setOwnerId(long ownerId) Sets the owner ID of this portlet preferences.- Specified by:
setOwnerIdin interfacePortletPreferencesModel- Parameters:
ownerId- the owner ID of this portlet preferences
-
setOwnerType
public void setOwnerType(int ownerType) Sets the owner type of this portlet preferences.- Specified by:
setOwnerTypein interfacePortletPreferencesModel- Parameters:
ownerType- the owner type of this portlet preferences
-
setPlid
public void setPlid(long plid) Sets the plid of this portlet preferences.- Specified by:
setPlidin interfacePortletPreferencesModel- Parameters:
plid- the plid of this portlet preferences
-
setPortletId
Sets the portlet ID of this portlet preferences.- Specified by:
setPortletIdin interfacePortletPreferencesModel- Parameters:
portletId- the portlet ID of this portlet preferences
-
setPortletPreferencesId
public void setPortletPreferencesId(long portletPreferencesId) Sets the portlet preferences ID of this portlet preferences.- Specified by:
setPortletPreferencesIdin interfacePortletPreferencesModel- Parameters:
portletPreferencesId- the portlet preferences ID of this portlet preferences
-
setPrimaryKey
public void setPrimaryKey(long primaryKey) Sets the primary key of this portlet preferences.- Specified by:
setPrimaryKeyin interfaceCTModel<PortletPreferences>- Specified by:
setPrimaryKeyin interfacePortletPreferencesModel- Parameters:
primaryKey- the primary key of this portlet preferences
-
toXmlString
- Specified by:
toXmlStringin interfacePortletPreferencesModel
-
getAttributeGetterFunctions
- Specified by:
getAttributeGetterFunctionsin interfaceBaseModel<PortletPreferences>
-
getAttributeSetterBiConsumers
- Specified by:
getAttributeSetterBiConsumersin interfaceBaseModel<PortletPreferences>
-
wrap
- Specified by:
wrapin classBaseModelWrapper<PortletPreferences>
-