@ProviderType public class PortletItemWrapper extends Object implements PortletItem, ModelWrapper<PortletItem>
This class is a wrapper for PortletItem
.
PortletItem
,
Serialized FormPORTLET_ITEM_ID_ACCESSOR
Constructor and Description |
---|
PortletItemWrapper(PortletItem portletItem) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(PortletItem portletItem) |
boolean |
equals(Object obj) |
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.
|
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.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
Date |
getModifiedDate()
Returns the modified date of this portlet item.
|
long |
getMvccVersion()
Returns the mvcc version of this portlet item.
|
String |
getName()
Returns the name of this portlet item.
|
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.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getUserId()
Returns the user ID of this portlet item.
|
String |
getUserName()
Returns the user name of this portlet item.
|
String |
getUserUuid()
Returns the user uuid of this portlet item.
|
PortletItem |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
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(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(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(Map<String,Object> attributes) |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this portlet item.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this portlet item.
|
void |
setName(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(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(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setUserId(long userId)
Sets the user ID of this portlet item.
|
void |
setUserName(String userName)
Sets the user name of this portlet item.
|
void |
setUserUuid(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 . |
String |
toString() |
PortletItem |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public PortletItemWrapper(PortletItem portletItem)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<PortletItem>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<PortletItem>
public Object clone()
BaseModel
clone
in interface BaseModel<PortletItem>
clone
in interface PortletItemModel
clone
in class Object
public int compareTo(PortletItem portletItem)
compareTo
in interface PortletItemModel
compareTo
in interface Comparable<PortletItem>
public String getClassName()
getClassName
in interface PortletItemModel
getClassName
in interface TypedModel
public long getClassNameId()
getClassNameId
in interface PortletItemModel
getClassNameId
in interface TypedModel
public long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface PortletItemModel
getCompanyId
in interface ShardedModel
public Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface PortletItemModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<PortletItem>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface PortletItemModel
public long getGroupId()
getGroupId
in interface GroupedModel
getGroupId
in interface PortletItemModel
public Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface PortletItemModel
public long getMvccVersion()
getMvccVersion
in interface MVCCModel
getMvccVersion
in interface PortletItemModel
public String getName()
getName
in interface PortletItemModel
public String getPortletId()
getPortletId
in interface PortletItemModel
public long getPortletItemId()
getPortletItemId
in interface PortletItemModel
public long getPrimaryKey()
getPrimaryKey
in interface PortletItemModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<PortletItem>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface PortletItemModel
public long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface PortletItemModel
public String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface PortletItemModel
public String getUserUuid()
getUserUuid
in interface AuditedModel
getUserUuid
in interface PortletItemModel
public int hashCode()
hashCode
in interface PortletItemModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<PortletItem>
isCachedModel
in interface PortletItemModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface BaseModel<PortletItem>
isEscapedModel
in interface PortletItemModel
true
if this model instance is escaped;
false
otherwisepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.isNew
in interface BaseModel<PortletItem>
isNew
in interface PortletItemModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<PortletItem>
setCachedModel
in interface PortletItemModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setClassName(String className)
setClassName
in interface PortletItemModel
public void setClassNameId(long classNameId)
setClassNameId
in interface PortletItemModel
setClassNameId
in interface TypedModel
classNameId
- the class name ID of this portlet itempublic void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface PortletItemModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this portlet itempublic void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface PortletItemModel
createDate
- the create date of this portlet itempublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<PortletItem>
setExpandoBridgeAttributes
in interface PortletItemModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<PortletItem>
setExpandoBridgeAttributes
in interface PortletItemModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<PortletItem>
setExpandoBridgeAttributes
in interface PortletItemModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setGroupId(long groupId)
setGroupId
in interface GroupedModel
setGroupId
in interface PortletItemModel
groupId
- the group ID of this portlet itempublic void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface PortletItemModel
modifiedDate
- the modified date of this portlet itempublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
setMvccVersion
in interface PortletItemModel
mvccVersion
- the mvcc version of this portlet itempublic void setName(String name)
setName
in interface PortletItemModel
name
- the name of this portlet itempublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<PortletItem>
setNew
in interface PortletItemModel
n
- whether this model instance does not yet exist in the databasepublic void setPortletId(String portletId)
setPortletId
in interface PortletItemModel
portletId
- the portlet ID of this portlet itempublic void setPortletItemId(long portletItemId)
setPortletItemId
in interface PortletItemModel
portletItemId
- the portlet item ID of this portlet itempublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface PortletItemModel
primaryKey
- the primary key of this portlet itempublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<PortletItem>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface PortletItemModel
primaryKeyObj
- the primary key of this model instancepublic void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface PortletItemModel
userId
- the user ID of this portlet itempublic void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface PortletItemModel
userName
- the user name of this portlet itempublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface PortletItemModel
userUuid
- the user uuid of this portlet itempublic CacheModel<PortletItem> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<PortletItem>
toCacheModel
in interface PortletItemModel
public PortletItem toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<PortletItem>
toEscapedModel
in interface PortletItemModel
AutoEscapeBeanHandler
public String toString()
toString
in interface PortletItemModel
toString
in class Object
public PortletItem toUnescapedModel()
toUnescapedModel
in interface BaseModel<PortletItem>
toUnescapedModel
in interface PortletItemModel
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<PortletItem>
toXmlString
in interface PortletItemModel
public boolean equals(Object obj)
equals
in class Object
public PortletItem getWrappedModel()
getWrappedModel
in interface ModelWrapper<PortletItem>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<PortletItem>
true
if this model's entity cache is enabled;
false
otherwisepublic boolean isFinderCacheEnabled()
BaseModel
true
if this model's finder cache is enabled.isFinderCacheEnabled
in interface BaseModel<PortletItem>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<PortletItem>