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 |
---|---|
PortletPreferences |
cloneWithOriginalValues() |
java.util.Map<java.lang.String,java.util.function.Function<PortletPreferences,java.lang.Object>> |
getAttributeGetterFunctions() |
java.util.Map<java.lang.String,java.util.function.BiConsumer<PortletPreferences,java.lang.Object>> |
getAttributeSetterBiConsumers() |
long |
getCompanyId()
Returns the company ID of this portlet preferences.
|
long |
getCtCollectionId()
Returns the ct collection ID of this portlet preferences.
|
java.util.Map<java.lang.String,java.lang.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.
|
java.lang.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(java.util.Map<java.lang.String,java.lang.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(java.lang.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.
|
java.lang.String |
toXmlString() |
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
finalize, getClass, notify, notifyAll, wait, wait, wait
getWrappedModel
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
getModelClass, getModelClassName
public PortletPreferencesWrapper(PortletPreferences portletPreferences)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes
in interface BaseModel<PortletPreferences>
public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes
in interface BaseModel<PortletPreferences>
public PortletPreferences cloneWithOriginalValues()
cloneWithOriginalValues
in interface BaseModel<PortletPreferences>
cloneWithOriginalValues
in interface PortletPreferencesModel
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 java.lang.String getPortletId()
getPortletId
in interface PortletPreferencesModel
public long getPortletPreferencesId()
getPortletPreferencesId
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(java.lang.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 setPrimaryKey(long primaryKey)
setPrimaryKey
in interface CTModel<PortletPreferences>
setPrimaryKey
in interface PortletPreferencesModel
primaryKey
- the primary key of this portlet preferencespublic java.lang.String toXmlString()
toXmlString
in interface PortletPreferencesModel
public java.util.Map<java.lang.String,java.util.function.Function<PortletPreferences,java.lang.Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions
in interface BaseModel<PortletPreferences>
public java.util.Map<java.lang.String,java.util.function.BiConsumer<PortletPreferences,java.lang.Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers
in interface BaseModel<PortletPreferences>
protected PortletPreferencesWrapper wrap(PortletPreferences portletPreferences)
wrap
in class BaseModelWrapper<PortletPreferences>