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
model
Fields inherited from interface com.liferay.portal.kernel.model.PortalPreferences
PORTAL_PREFERENCES_ID_ACCESSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the company ID of this portal preferences.long
Returns the mvcc version of this portal preferences.long
Returns the owner ID of this portal preferences.int
Returns the owner type of this portal preferences.long
Returns the portal preferences ID of this portal preferences.long
Returns the primary key of this portal 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 portal preferences.void
setModelAttributes
(Map<String, Object> attributes) void
setMvccVersion
(long mvccVersion) Sets the mvcc version of this portal preferences.void
setOwnerId
(long ownerId) Sets the owner ID of this portal preferences.void
setOwnerType
(int ownerType) Sets the owner type of this portal preferences.void
setPortalPreferencesId
(long portalPreferencesId) Sets the portal preferences ID of this portal preferences.void
setPrimaryKey
(long primaryKey) Sets the primary key of this portal preferences.protected PortalPreferencesWrapper
wrap
(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, 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, getAttributeGetterFunctions, getAttributeSetterBiConsumers, 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
-
PortalPreferencesWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributes
in interfaceBaseModel<PortalPreferences>
-
setModelAttributes
- Specified by:
setModelAttributes
in interfaceBaseModel<PortalPreferences>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValues
in interfaceBaseModel<PortalPreferences>
- Specified by:
cloneWithOriginalValues
in interfacePortalPreferencesModel
-
getCompanyId
public long getCompanyId()Returns the company ID of this portal preferences.- Specified by:
getCompanyId
in interfacePortalPreferencesModel
- Specified by:
getCompanyId
in interfaceShardedModel
- Returns:
- the company ID of this portal preferences
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this portal preferences.- Specified by:
getMvccVersion
in interfaceMVCCModel
- Specified by:
getMvccVersion
in interfacePortalPreferencesModel
- Returns:
- the mvcc version of this portal preferences
-
getOwnerId
public long getOwnerId()Returns the owner ID of this portal preferences.- Specified by:
getOwnerId
in interfacePortalPreferencesModel
- Returns:
- the owner ID of this portal preferences
-
getOwnerType
public int getOwnerType()Returns the owner type of this portal preferences.- Specified by:
getOwnerType
in interfacePortalPreferencesModel
- Returns:
- the owner type of this portal preferences
-
getPortalPreferencesId
public long getPortalPreferencesId()Returns the portal preferences ID of this portal preferences.- Specified by:
getPortalPreferencesId
in interfacePortalPreferencesModel
- Returns:
- the portal preferences ID of this portal preferences
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this portal preferences.- Specified by:
getPrimaryKey
in interfacePortalPreferencesModel
- Returns:
- the primary key of this portal 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 portal preferences.- Specified by:
setCompanyId
in interfacePortalPreferencesModel
- Specified by:
setCompanyId
in 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:
setMvccVersion
in interfaceMVCCModel
- Specified by:
setMvccVersion
in 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:
setOwnerId
in 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:
setOwnerType
in 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:
setPortalPreferencesId
in 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:
setPrimaryKey
in interfacePortalPreferencesModel
- Parameters:
primaryKey
- the primary key of this portal preferences
-
toXmlString
- Specified by:
toXmlString
in interfacePortalPreferencesModel
-
wrap
- Specified by:
wrap
in classBaseModelWrapper<PortalPreferences>
-