public class PortletPreferencesWrapper extends BaseModelWrapper<PortletPreferences> implements ModelWrapper<PortletPreferences>, PortletPreferences
This class is a wrapper for PortletPreferences
.
PortletPreferences
,
Serialized Formmodel
PORTLET_PREFERENCES_ID_ACCESSOR
Constructor and Description |
---|
PortletPreferencesWrapper(PortletPreferences portletPreferences) |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
getPreferences()
Returns the preferences 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 |
setPreferences(String preferences)
Sets the preferences 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, toXmlString
getWrappedModel
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
getModelClass, getModelClassName
public 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 long getCompanyId()
getCompanyId
in interface PortletPreferencesModel
getCompanyId
in interface ShardedModel
public long getCtCollectionId()
getCtCollectionId
in interface CTModel<PortletPreferences>
getCtCollectionId
in interface PortletPreferencesModel
public long getMvccVersion()
getMvccVersion
in interface MVCCModel
getMvccVersion
in interface PortletPreferencesModel
public long getOwnerId()
getOwnerId
in interface PortletPreferencesModel
public int getOwnerType()
getOwnerType
in interface PortletPreferencesModel
public long getPlid()
getPlid
in interface PortletPreferencesModel
public String getPortletId()
getPortletId
in interface PortletPreferencesModel
public long getPortletPreferencesId()
getPortletPreferencesId
in interface PortletPreferencesModel
public String getPreferences()
getPreferences
in interface PortletPreferencesModel
public long getPrimaryKey()
getPrimaryKey
in interface CTModel<PortletPreferences>
getPrimaryKey
in interface PortletPreferencesModel
public void persist()
PersistedModel
persist
in interface PersistedModel
public void setCompanyId(long companyId)
setCompanyId
in interface PortletPreferencesModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this portlet preferencespublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId
in interface CTModel<PortletPreferences>
setCtCollectionId
in interface PortletPreferencesModel
ctCollectionId
- the ct collection ID of this portlet preferencespublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
setMvccVersion
in interface PortletPreferencesModel
mvccVersion
- the mvcc version of this portlet preferencespublic void setOwnerId(long ownerId)
setOwnerId
in interface PortletPreferencesModel
ownerId
- the owner ID of this portlet preferencespublic void setOwnerType(int ownerType)
setOwnerType
in interface PortletPreferencesModel
ownerType
- the owner type of this portlet preferencespublic void setPlid(long plid)
setPlid
in interface PortletPreferencesModel
plid
- the plid of this portlet preferencespublic void setPortletId(String portletId)
setPortletId
in interface PortletPreferencesModel
portletId
- the portlet ID of this portlet preferencespublic void setPortletPreferencesId(long portletPreferencesId)
setPortletPreferencesId
in interface PortletPreferencesModel
portletPreferencesId
- the portlet preferences ID of this portlet preferencespublic void setPreferences(String preferences)
setPreferences
in interface PortletPreferencesModel
preferences
- the preferences of this portlet preferencespublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface CTModel<PortletPreferences>
setPrimaryKey
in interface PortletPreferencesModel
primaryKey
- 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>