|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.model.PortletPreferencesWrapper
public class PortletPreferencesWrapper
This class is a wrapper for PortletPreferences
.
PortletPreferences
,
Serialized FormConstructor Summary | |
---|---|
PortletPreferencesWrapper(PortletPreferences portletPreferences)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(PortletPreferences portletPreferences)
|
boolean |
equals(Object obj)
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
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. |
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. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
PortletPreferences |
getWrappedModel()
|
PortletPreferences |
getWrappedPortletPreferences()
Deprecated. Renamed to 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(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setModelAttributes(Map<String,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(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. |
void |
setPrimaryKeyObj(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 . |
String |
toString()
|
PortletPreferences |
toUnescapedModel()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PortletPreferencesWrapper(PortletPreferences portletPreferences)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<PortletPreferences>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<PortletPreferences>
public long getPrimaryKey()
getPrimaryKey
in interface PortletPreferencesModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface PortletPreferencesModel
primaryKey
- the primary key of this portlet preferencespublic long getPortletPreferencesId()
getPortletPreferencesId
in interface PortletPreferencesModel
public void setPortletPreferencesId(long portletPreferencesId)
setPortletPreferencesId
in interface PortletPreferencesModel
portletPreferencesId
- the portlet preferences ID of this portlet preferencespublic long getOwnerId()
getOwnerId
in interface PortletPreferencesModel
public void setOwnerId(long ownerId)
setOwnerId
in interface PortletPreferencesModel
ownerId
- the owner ID of this portlet preferencespublic int getOwnerType()
getOwnerType
in interface PortletPreferencesModel
public void setOwnerType(int ownerType)
setOwnerType
in interface PortletPreferencesModel
ownerType
- the owner type of this portlet preferencespublic long getPlid()
getPlid
in interface PortletPreferencesModel
public void setPlid(long plid)
setPlid
in interface PortletPreferencesModel
plid
- the plid of this portlet preferencespublic String getPortletId()
getPortletId
in interface PortletPreferencesModel
public void setPortletId(String portletId)
setPortletId
in interface PortletPreferencesModel
portletId
- the portlet ID of this portlet preferencespublic String getPreferences()
getPreferences
in interface PortletPreferencesModel
public void setPreferences(String preferences)
setPreferences
in interface PortletPreferencesModel
preferences
- the preferences of this portlet preferencespublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<PortletPreferences>
isNew
in interface PortletPreferencesModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<PortletPreferences>
setNew
in interface PortletPreferencesModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<PortletPreferences>
isCachedModel
in interface PortletPreferencesModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<PortletPreferences>
setCachedModel
in interface PortletPreferencesModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<PortletPreferences>
isEscapedModel
in interface PortletPreferencesModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<PortletPreferences>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface PortletPreferencesModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<PortletPreferences>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface PortletPreferencesModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<PortletPreferences>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface PortletPreferencesModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<PortletPreferences>
setExpandoBridgeAttributes
in interface PortletPreferencesModel
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<PortletPreferences>
clone
in interface PortletPreferencesModel
clone
in class Object
public int compareTo(PortletPreferences portletPreferences)
compareTo
in interface PortletPreferencesModel
compareTo
in interface Comparable<PortletPreferences>
public int hashCode()
hashCode
in interface PortletPreferencesModel
hashCode
in class Object
public CacheModel<PortletPreferences> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<PortletPreferences>
toCacheModel
in interface PortletPreferencesModel
public PortletPreferences toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<PortletPreferences>
toEscapedModel
in interface PortletPreferencesModel
AutoEscapeBeanHandler
public PortletPreferences toUnescapedModel()
toUnescapedModel
in interface BaseModel<PortletPreferences>
toUnescapedModel
in interface PortletPreferencesModel
public String toString()
toString
in interface PortletPreferencesModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<PortletPreferences>
toXmlString
in interface PortletPreferencesModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic boolean equals(Object obj)
equals
in class Object
public PortletPreferences getWrappedPortletPreferences()
getWrappedModel()
public PortletPreferences getWrappedModel()
getWrappedModel
in interface ModelWrapper<PortletPreferences>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<PortletPreferences>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |