@ProviderType public class PortletPreferencesWrapper extends java.lang.Object implements PortletPreferences, ModelWrapper<PortletPreferences>
This class is a wrapper for PortletPreferences.
PortletPreferences,
Serialized Form| Constructor and Description |
|---|
PortletPreferencesWrapper(PortletPreferences portletPreferences) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(PortletPreferences portletPreferences) |
boolean |
equals(java.lang.Object obj) |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
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.
|
java.lang.String |
getPreferences()
Returns the preferences of this portlet preferences.
|
long |
getPrimaryKey()
Returns the primary key of this portlet preferences.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
PortletPreferences |
getWrappedModel() |
PortletPreferences |
getWrappedPortletPreferences()
Deprecated.
As of 6.1.0, replaced by
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isNew()
Returns
true if this model instance does not yet exist in
the database. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
resetOriginalValues()
Reset all original fields to current values.
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache.
|
void |
setExpandoBridgeAttributes(BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge) |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the
attributes stored in the service context.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
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 |
setPreferences(java.lang.String preferences)
Sets the preferences of this portlet preferences.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this portlet preferences.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
CacheModel<PortletPreferences> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
PortletPreferences |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
java.lang.String |
toString() |
PortletPreferences |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public PortletPreferencesWrapper(PortletPreferences portletPreferences)
public java.lang.Class<?> getModelClass()
getModelClass in interface ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface ClassedModelpublic 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 long getPrimaryKey()
getPrimaryKey in interface PortletPreferencesModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface PortletPreferencesModelprimaryKey - the primary key of this portlet preferencespublic long getPortletPreferencesId()
getPortletPreferencesId in interface PortletPreferencesModelpublic void setPortletPreferencesId(long portletPreferencesId)
setPortletPreferencesId in interface PortletPreferencesModelportletPreferencesId - the portlet preferences ID of this portlet preferencespublic long getOwnerId()
getOwnerId in interface PortletPreferencesModelpublic void setOwnerId(long ownerId)
setOwnerId in interface PortletPreferencesModelownerId - the owner ID of this portlet preferencespublic int getOwnerType()
getOwnerType in interface PortletPreferencesModelpublic void setOwnerType(int ownerType)
setOwnerType in interface PortletPreferencesModelownerType - the owner type of this portlet preferencespublic long getPlid()
getPlid in interface PortletPreferencesModelpublic void setPlid(long plid)
setPlid in interface PortletPreferencesModelplid - the plid of this portlet preferencespublic java.lang.String getPortletId()
getPortletId in interface PortletPreferencesModelpublic void setPortletId(java.lang.String portletId)
setPortletId in interface PortletPreferencesModelportletId - the portlet ID of this portlet preferencespublic java.lang.String getPreferences()
getPreferences in interface PortletPreferencesModelpublic void setPreferences(java.lang.String preferences)
setPreferences in interface PortletPreferencesModelpreferences - the preferences of this portlet preferencespublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<PortletPreferences>isNew in interface PortletPreferencesModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<PortletPreferences>setNew in interface PortletPreferencesModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<PortletPreferences>isCachedModel in interface PortletPreferencesModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<PortletPreferences>setCachedModel in interface PortletPreferencesModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<PortletPreferences>isEscapedModel in interface PortletPreferencesModeltrue if this model instance is escaped;
false otherwisepublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<PortletPreferences>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface PortletPreferencesModelpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<PortletPreferences>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface PortletPreferencesModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<PortletPreferences>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface PortletPreferencesModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<PortletPreferences>setExpandoBridgeAttributes in interface PortletPreferencesModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<PortletPreferences>setExpandoBridgeAttributes in interface PortletPreferencesModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<PortletPreferences>setExpandoBridgeAttributes in interface PortletPreferencesModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public java.lang.Object clone()
BaseModelclone in interface BaseModel<PortletPreferences>clone in interface PortletPreferencesModelclone in class java.lang.Objectpublic int compareTo(PortletPreferences portletPreferences)
compareTo in interface PortletPreferencesModelcompareTo in interface java.lang.Comparable<PortletPreferences>public int hashCode()
hashCode in interface PortletPreferencesModelhashCode in class java.lang.Objectpublic CacheModel<PortletPreferences> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<PortletPreferences>toCacheModel in interface PortletPreferencesModelpublic PortletPreferences toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<PortletPreferences>toEscapedModel in interface PortletPreferencesModelAutoEscapeBeanHandlerpublic PortletPreferences toUnescapedModel()
toUnescapedModel in interface BaseModel<PortletPreferences>toUnescapedModel in interface PortletPreferencesModelpublic java.lang.String toString()
toString in interface PortletPreferencesModeltoString in class java.lang.Objectpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<PortletPreferences>toXmlString in interface PortletPreferencesModelpublic void persist()
throws SystemException
PersistedModelpersist in interface PersistedModelSystemException - if a system exception occurredpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic PortletPreferences getWrappedPortletPreferences()
getWrappedModel()public PortletPreferences getWrappedModel()
getWrappedModel in interface ModelWrapper<PortletPreferences>public void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<PortletPreferences>