public class PortletPreferencesWrapper extends BaseModelWrapper<PortletPreferences> implements ModelWrapper<PortletPreferences>, PortletPreferences
This class is a wrapper for PortletPreferences.
PortletPreferences,
Serialized FormmodelPORTLET_PREFERENCES_ID_ACCESSOR| Constructor and Description |
|---|
PortletPreferencesWrapper(PortletPreferences portletPreferences) |
| Modifier and Type | Method and Description |
|---|---|
PortletPreferences |
cloneWithOriginalValues() |
Map<String,Function<PortletPreferences,Object>> |
getAttributeGetterFunctions() |
Map<String,BiConsumer<PortletPreferences,Object>> |
getAttributeSetterBiConsumers() |
long |
getCompanyId()
Returns the company ID of this portlet preferences.
|
long |
getCtCollectionId()
Returns the ct collection ID of this portlet preferences.
|
Map<String,Object> |
getModelAttributes() |
long |
getMvccVersion()
Returns the mvcc version of this portlet preferences.
|
long |
getOwnerId()
Returns the owner ID of this portlet preferences.
|
int |
getOwnerType()
Returns the owner type of this portlet preferences.
|
long |
getPlid()
Returns the plid of this portlet preferences.
|
String |
getPortletId()
Returns the portlet ID of this portlet preferences.
|
long |
getPortletPreferencesId()
Returns the portlet preferences ID of this portlet preferences.
|
long |
getPrimaryKey()
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) |
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, toXmlStringgetWrappedModelclone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlStringgetModelClass, getModelClassNamepublic PortletPreferencesWrapper(PortletPreferences portletPreferences)
public Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<PortletPreferences>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<PortletPreferences>public PortletPreferences cloneWithOriginalValues()
cloneWithOriginalValues in interface BaseModel<PortletPreferences>cloneWithOriginalValues in interface PortletPreferencesModelpublic long getCompanyId()
getCompanyId in interface PortletPreferencesModelgetCompanyId in interface ShardedModelpublic long getCtCollectionId()
getCtCollectionId in interface CTModel<PortletPreferences>getCtCollectionId in interface PortletPreferencesModelpublic long getMvccVersion()
getMvccVersion in interface MVCCModelgetMvccVersion in interface PortletPreferencesModelpublic long getOwnerId()
getOwnerId in interface PortletPreferencesModelpublic int getOwnerType()
getOwnerType in interface PortletPreferencesModelpublic long getPlid()
getPlid in interface PortletPreferencesModelpublic String getPortletId()
getPortletId in interface PortletPreferencesModelpublic long getPortletPreferencesId()
getPortletPreferencesId in interface PortletPreferencesModelpublic long getPrimaryKey()
getPrimaryKey in interface CTModel<PortletPreferences>getPrimaryKey in interface PortletPreferencesModelpublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setCompanyId(long companyId)
setCompanyId in interface PortletPreferencesModelsetCompanyId in interface ShardedModelcompanyId - the company ID of this portlet preferencespublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId in interface CTModel<PortletPreferences>setCtCollectionId in interface PortletPreferencesModelctCollectionId - the ct collection ID of this portlet preferencespublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface MVCCModelsetMvccVersion in interface PortletPreferencesModelmvccVersion - the mvcc version of this portlet preferencespublic void setOwnerId(long ownerId)
setOwnerId in interface PortletPreferencesModelownerId - the owner ID of this portlet preferencespublic void setOwnerType(int ownerType)
setOwnerType in interface PortletPreferencesModelownerType - the owner type of this portlet preferencespublic void setPlid(long plid)
setPlid in interface PortletPreferencesModelplid - the plid of this portlet preferencespublic void setPortletId(String portletId)
setPortletId in interface PortletPreferencesModelportletId - the portlet ID of this portlet preferencespublic void setPortletPreferencesId(long portletPreferencesId)
setPortletPreferencesId in interface PortletPreferencesModelportletPreferencesId - the portlet preferences ID of this portlet preferencespublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface CTModel<PortletPreferences>setPrimaryKey in interface PortletPreferencesModelprimaryKey - the primary key of this portlet preferencespublic Map<String,Function<PortletPreferences,Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions in interface BaseModel<PortletPreferences>public Map<String,BiConsumer<PortletPreferences,Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers in interface BaseModel<PortletPreferences>protected PortletPreferencesWrapper wrap(PortletPreferences portletPreferences)
wrap in class BaseModelWrapper<PortletPreferences>