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
model
Fields inherited from interface com.liferay.portal.kernel.model.PortletPreferences
PORTLET_PREFERENCES_ID_ACCESSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the company ID of this portlet preferences.long
Returns the ct collection ID of this portlet preferences.long
Returns the mvcc version of this portlet preferences.long
Returns the owner ID of this portlet preferences.int
Returns the owner type of this portlet preferences.long
getPlid()
Returns the plid of this portlet preferences.Returns the portlet ID of this portlet preferences.long
Returns the portlet preferences ID of this portlet preferences.long
Returns the primary key of this portlet preferences.void
persist()
Updates this model instance in the database or adds it if it does not yet exist.void
setCompanyId
(long companyId) Sets the company ID of this portlet preferences.void
setCtCollectionId
(long ctCollectionId) Sets the ct collection ID of this portlet preferences.void
setModelAttributes
(Map<String, Object> attributes) void
setMvccVersion
(long mvccVersion) Sets the mvcc version of this portlet preferences.void
setOwnerId
(long ownerId) Sets the owner ID of this portlet preferences.void
setOwnerType
(int ownerType) Sets the owner type of this portlet preferences.void
setPlid
(long plid) Sets the plid of this portlet preferences.void
setPortletId
(String portletId) Sets the portlet ID of this portlet preferences.void
setPortletPreferencesId
(long portletPreferencesId) Sets the portlet preferences ID of this portlet preferences.void
setPrimaryKey
(long primaryKey) Sets the primary key of this portlet preferences.protected PortletPreferencesWrapper
wrap
(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, toUnescapedModel
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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, toUnescapedModel
Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassName
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.liferay.portal.kernel.model.ModelWrapper
getWrappedModel
-
Constructor Details
-
PortletPreferencesWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributes
in interfaceBaseModel<PortletPreferences>
-
setModelAttributes
- Specified by:
setModelAttributes
in interfaceBaseModel<PortletPreferences>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValues
in interfaceBaseModel<PortletPreferences>
- Specified by:
cloneWithOriginalValues
in interfacePortletPreferencesModel
-
getCompanyId
public long getCompanyId()Returns the company ID of this portlet preferences.- Specified by:
getCompanyId
in interfacePortletPreferencesModel
- Specified by:
getCompanyId
in interfaceShardedModel
- Returns:
- the company ID of this portlet preferences
-
getCtCollectionId
public long getCtCollectionId()Returns the ct collection ID of this portlet preferences.- Specified by:
getCtCollectionId
in interfaceCTModel<PortletPreferences>
- Specified by:
getCtCollectionId
in interfacePortletPreferencesModel
- Returns:
- the ct collection ID of this portlet preferences
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this portlet preferences.- Specified by:
getMvccVersion
in interfaceMVCCModel
- Specified by:
getMvccVersion
in interfacePortletPreferencesModel
- Returns:
- the mvcc version of this portlet preferences
-
getOwnerId
public long getOwnerId()Returns the owner ID of this portlet preferences.- Specified by:
getOwnerId
in interfacePortletPreferencesModel
- Returns:
- the owner ID of this portlet preferences
-
getOwnerType
public int getOwnerType()Returns the owner type of this portlet preferences.- Specified by:
getOwnerType
in interfacePortletPreferencesModel
- Returns:
- the owner type of this portlet preferences
-
getPlid
public long getPlid()Returns the plid of this portlet preferences.- Specified by:
getPlid
in interfacePortletPreferencesModel
- Returns:
- the plid of this portlet preferences
-
getPortletId
Returns the portlet ID of this portlet preferences.- Specified by:
getPortletId
in interfacePortletPreferencesModel
- Returns:
- the portlet ID of this portlet preferences
-
getPortletPreferencesId
public long getPortletPreferencesId()Returns the portlet preferences ID of this portlet preferences.- Specified by:
getPortletPreferencesId
in interfacePortletPreferencesModel
- Returns:
- the portlet preferences ID of this portlet preferences
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this portlet preferences.- Specified by:
getPrimaryKey
in interfaceCTModel<PortletPreferences>
- Specified by:
getPrimaryKey
in interfacePortletPreferencesModel
- Returns:
- the primary key of this portlet preferences
-
persist
public void persist()Description copied from interface:PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.- Specified by:
persist
in interfacePersistedModel
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this portlet preferences.- Specified by:
setCompanyId
in interfacePortletPreferencesModel
- Specified by:
setCompanyId
in 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:
setCtCollectionId
in interfaceCTModel<PortletPreferences>
- Specified by:
setCtCollectionId
in 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:
setMvccVersion
in interfaceMVCCModel
- Specified by:
setMvccVersion
in 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:
setOwnerId
in 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:
setOwnerType
in 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:
setPlid
in interfacePortletPreferencesModel
- Parameters:
plid
- the plid of this portlet preferences
-
setPortletId
Sets the portlet ID of this portlet preferences.- Specified by:
setPortletId
in 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:
setPortletPreferencesId
in 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:
setPrimaryKey
in interfaceCTModel<PortletPreferences>
- Specified by:
setPrimaryKey
in interfacePortletPreferencesModel
- Parameters:
primaryKey
- the primary key of this portlet preferences
-
toXmlString
- Specified by:
toXmlString
in interfacePortletPreferencesModel
-
getAttributeGetterFunctions
- Specified by:
getAttributeGetterFunctions
in interfaceBaseModel<PortletPreferences>
-
getAttributeSetterBiConsumers
- Specified by:
getAttributeSetterBiConsumers
in interfaceBaseModel<PortletPreferences>
-
wrap
- Specified by:
wrap
in classBaseModelWrapper<PortletPreferences>
-