@ProviderType public class PortletItemWrapper extends java.lang.Object implements PortletItem, ModelWrapper<PortletItem>
This class is a wrapper for PortletItem.
PortletItem,
Serialized Form| Constructor and Description |
|---|
PortletItemWrapper(PortletItem portletItem) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(PortletItem portletItem) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClassName()
Returns the fully qualified class name of this portlet item.
|
long |
getClassNameId()
Returns the class name ID of this portlet item.
|
long |
getCompanyId()
Returns the company ID of this portlet item.
|
java.util.Date |
getCreateDate()
Returns the create date of this portlet item.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
long |
getGroupId()
Returns the group ID of this portlet item.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.util.Date |
getModifiedDate()
Returns the modified date of this portlet item.
|
java.lang.String |
getName()
Returns the name of this portlet item.
|
java.lang.String |
getPortletId()
Returns the portlet ID of this portlet item.
|
long |
getPortletItemId()
Returns the portlet item ID of this portlet item.
|
long |
getPrimaryKey()
Returns the primary key of this portlet item.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getUserId()
Returns the user ID of this portlet item.
|
java.lang.String |
getUserName()
Returns the user name of this portlet item.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this portlet item.
|
PortletItem |
getWrappedModel() |
PortletItem |
getWrappedPortletItem()
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 |
setClassName(java.lang.String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this portlet item.
|
void |
setCompanyId(long companyId)
Sets the company ID of this portlet item.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this portlet item.
|
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 |
setGroupId(long groupId)
Sets the group ID of this portlet item.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this portlet item.
|
void |
setName(java.lang.String name)
Sets the name of this portlet item.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setPortletId(java.lang.String portletId)
Sets the portlet ID of this portlet item.
|
void |
setPortletItemId(long portletItemId)
Sets the portlet item ID of this portlet item.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this portlet item.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setUserId(long userId)
Sets the user ID of this portlet item.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this portlet item.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this portlet item.
|
CacheModel<PortletItem> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
PortletItem |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
java.lang.String |
toString() |
PortletItem |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public PortletItemWrapper(PortletItem portletItem)
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<PortletItem>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<PortletItem>public long getPrimaryKey()
getPrimaryKey in interface PortletItemModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface PortletItemModelprimaryKey - the primary key of this portlet itempublic long getPortletItemId()
getPortletItemId in interface PortletItemModelpublic void setPortletItemId(long portletItemId)
setPortletItemId in interface PortletItemModelportletItemId - the portlet item ID of this portlet itempublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface PortletItemModelpublic void setGroupId(long groupId)
setGroupId in interface GroupedModelsetGroupId in interface PortletItemModelgroupId - the group ID of this portlet itempublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface PortletItemModelpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface PortletItemModelcompanyId - the company ID of this portlet itempublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface PortletItemModelpublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface PortletItemModeluserId - the user ID of this portlet itempublic java.lang.String getUserUuid()
throws SystemException
getUserUuid in interface AuditedModelgetUserUuid in interface PortletItemModelSystemException - if a system exception occurredpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface PortletItemModeluserUuid - the user uuid of this portlet itempublic java.lang.String getUserName()
getUserName in interface AuditedModelgetUserName in interface PortletItemModelpublic void setUserName(java.lang.String userName)
setUserName in interface AuditedModelsetUserName in interface PortletItemModeluserName - the user name of this portlet itempublic java.util.Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface PortletItemModelpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface PortletItemModelcreateDate - the create date of this portlet itempublic java.util.Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface PortletItemModelpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface PortletItemModelmodifiedDate - the modified date of this portlet itempublic java.lang.String getName()
getName in interface PortletItemModelpublic void setName(java.lang.String name)
setName in interface PortletItemModelname - the name of this portlet itempublic java.lang.String getPortletId()
getPortletId in interface PortletItemModelpublic void setPortletId(java.lang.String portletId)
setPortletId in interface PortletItemModelportletId - the portlet ID of this portlet itempublic java.lang.String getClassName()
getClassName in interface PortletItemModelgetClassName in interface TypedModelpublic void setClassName(java.lang.String className)
setClassName in interface PortletItemModelpublic long getClassNameId()
getClassNameId in interface PortletItemModelgetClassNameId in interface TypedModelpublic void setClassNameId(long classNameId)
setClassNameId in interface PortletItemModelsetClassNameId in interface TypedModelclassNameId - the class name ID of this portlet itempublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<PortletItem>isNew in interface PortletItemModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<PortletItem>setNew in interface PortletItemModeln - 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<PortletItem>isCachedModel in interface PortletItemModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<PortletItem>setCachedModel in interface PortletItemModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<PortletItem>isEscapedModel in interface PortletItemModeltrue if this model instance is escaped;
false otherwisepublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<PortletItem>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface PortletItemModelpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<PortletItem>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface PortletItemModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<PortletItem>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface PortletItemModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<PortletItem>setExpandoBridgeAttributes in interface PortletItemModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<PortletItem>setExpandoBridgeAttributes in interface PortletItemModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<PortletItem>setExpandoBridgeAttributes in interface PortletItemModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public java.lang.Object clone()
BaseModelclone in interface BaseModel<PortletItem>clone in interface PortletItemModelclone in class java.lang.Objectpublic int compareTo(PortletItem portletItem)
compareTo in interface PortletItemModelcompareTo in interface java.lang.Comparable<PortletItem>public int hashCode()
hashCode in interface PortletItemModelhashCode in class java.lang.Objectpublic CacheModel<PortletItem> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<PortletItem>toCacheModel in interface PortletItemModelpublic PortletItem toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<PortletItem>toEscapedModel in interface PortletItemModelAutoEscapeBeanHandlerpublic PortletItem toUnescapedModel()
toUnescapedModel in interface BaseModel<PortletItem>toUnescapedModel in interface PortletItemModelpublic java.lang.String toString()
toString in interface PortletItemModeltoString in class java.lang.Objectpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<PortletItem>toXmlString in interface PortletItemModelpublic 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 PortletItem getWrappedPortletItem()
getWrappedModel()public PortletItem getWrappedModel()
getWrappedModel in interface ModelWrapper<PortletItem>public void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<PortletItem>