Package com.liferay.portal.kernel.model
Class PortletItemWrapper
Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<PortletItem>
com.liferay.portal.kernel.model.PortletItemWrapper
- All Implemented Interfaces:
AuditedModel
,BaseModel<PortletItem>
,ClassedModel
,GroupedModel
,ModelWrapper<PortletItem>
,MVCCModel
,PersistedModel
,PortletItem
,PortletItemModel
,ShardedModel
,TypedModel
,Serializable
,Cloneable
,Comparable<PortletItem>
public class PortletItemWrapper
extends BaseModelWrapper<PortletItem>
implements ModelWrapper<PortletItem>, PortletItem
This class is a wrapper for PortletItem
.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
model
Fields inherited from interface com.liferay.portal.kernel.model.PortletItem
PORTLET_ITEM_ID_ACCESSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the fully qualified class name of this portlet item.long
Returns the class name ID of this portlet item.long
Returns the company ID of this portlet item.Returns the create date of this portlet item.long
Returns the group ID of this portlet item.Returns the modified date of this portlet item.long
Returns the mvcc version of this portlet item.getName()
Returns the name of this portlet item.Returns the portlet ID of this portlet item.long
Returns the portlet item ID of this portlet item.long
Returns the primary key of this portlet item.long
Returns the user ID of this portlet item.Returns the user name of this portlet item.Returns the user uuid of this portlet item.void
persist()
Updates this model instance in the database or adds it if it does not yet exist.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
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
Sets the name of this portlet item.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
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.protected PortletItemWrapper
wrap
(PortletItem portletItem) Methods inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
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
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassName
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.liferay.portal.kernel.model.ModelWrapper
getWrappedModel
-
Constructor Details
-
PortletItemWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributes
in interfaceBaseModel<PortletItem>
-
setModelAttributes
- Specified by:
setModelAttributes
in interfaceBaseModel<PortletItem>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValues
in interfaceBaseModel<PortletItem>
- Specified by:
cloneWithOriginalValues
in interfacePortletItemModel
-
getClassName
Returns the fully qualified class name of this portlet item.- Specified by:
getClassName
in interfacePortletItemModel
- Specified by:
getClassName
in interfaceTypedModel
- Returns:
- the fully qualified class name of this portlet item
-
getClassNameId
public long getClassNameId()Returns the class name ID of this portlet item.- Specified by:
getClassNameId
in interfacePortletItemModel
- Specified by:
getClassNameId
in interfaceTypedModel
- Returns:
- the class name ID of this portlet item
-
getCompanyId
public long getCompanyId()Returns the company ID of this portlet item.- Specified by:
getCompanyId
in interfaceAuditedModel
- Specified by:
getCompanyId
in interfacePortletItemModel
- Specified by:
getCompanyId
in interfaceShardedModel
- Returns:
- the company ID of this portlet item
-
getCreateDate
Returns the create date of this portlet item.- Specified by:
getCreateDate
in interfaceAuditedModel
- Specified by:
getCreateDate
in interfacePortletItemModel
- Returns:
- the create date of this portlet item
-
getGroupId
public long getGroupId()Returns the group ID of this portlet item.- Specified by:
getGroupId
in interfaceGroupedModel
- Specified by:
getGroupId
in interfacePortletItemModel
- Returns:
- the group ID of this portlet item
-
getModifiedDate
Returns the modified date of this portlet item.- Specified by:
getModifiedDate
in interfaceAuditedModel
- Specified by:
getModifiedDate
in interfacePortletItemModel
- Returns:
- the modified date of this portlet item
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this portlet item.- Specified by:
getMvccVersion
in interfaceMVCCModel
- Specified by:
getMvccVersion
in interfacePortletItemModel
- Returns:
- the mvcc version of this portlet item
-
getName
Returns the name of this portlet item.- Specified by:
getName
in interfacePortletItemModel
- Returns:
- the name of this portlet item
-
getPortletId
Returns the portlet ID of this portlet item.- Specified by:
getPortletId
in interfacePortletItemModel
- Returns:
- the portlet ID of this portlet item
-
getPortletItemId
public long getPortletItemId()Returns the portlet item ID of this portlet item.- Specified by:
getPortletItemId
in interfacePortletItemModel
- Returns:
- the portlet item ID of this portlet item
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this portlet item.- Specified by:
getPrimaryKey
in interfacePortletItemModel
- Returns:
- the primary key of this portlet item
-
getUserId
public long getUserId()Returns the user ID of this portlet item.- Specified by:
getUserId
in interfaceAuditedModel
- Specified by:
getUserId
in interfacePortletItemModel
- Returns:
- the user ID of this portlet item
-
getUserName
Returns the user name of this portlet item.- Specified by:
getUserName
in interfaceAuditedModel
- Specified by:
getUserName
in interfacePortletItemModel
- Returns:
- the user name of this portlet item
-
getUserUuid
Returns the user uuid of this portlet item.- Specified by:
getUserUuid
in interfaceAuditedModel
- Specified by:
getUserUuid
in interfacePortletItemModel
- Returns:
- the user uuid of this portlet item
-
persist
public void persist()Description copied from interface:PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.- Specified by:
persist
in interfacePersistedModel
-
setClassName
- Specified by:
setClassName
in interfacePortletItemModel
-
setClassNameId
public void setClassNameId(long classNameId) Sets the class name ID of this portlet item.- Specified by:
setClassNameId
in interfacePortletItemModel
- Specified by:
setClassNameId
in interfaceTypedModel
- Parameters:
classNameId
- the class name ID of this portlet item
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this portlet item.- Specified by:
setCompanyId
in interfaceAuditedModel
- Specified by:
setCompanyId
in interfacePortletItemModel
- Specified by:
setCompanyId
in interfaceShardedModel
- Parameters:
companyId
- the company ID of this portlet item
-
setCreateDate
Sets the create date of this portlet item.- Specified by:
setCreateDate
in interfaceAuditedModel
- Specified by:
setCreateDate
in interfacePortletItemModel
- Parameters:
createDate
- the create date of this portlet item
-
setGroupId
public void setGroupId(long groupId) Sets the group ID of this portlet item.- Specified by:
setGroupId
in interfaceGroupedModel
- Specified by:
setGroupId
in interfacePortletItemModel
- Parameters:
groupId
- the group ID of this portlet item
-
setModifiedDate
Sets the modified date of this portlet item.- Specified by:
setModifiedDate
in interfaceAuditedModel
- Specified by:
setModifiedDate
in interfacePortletItemModel
- Parameters:
modifiedDate
- the modified date of this portlet item
-
setMvccVersion
public void setMvccVersion(long mvccVersion) Sets the mvcc version of this portlet item.- Specified by:
setMvccVersion
in interfaceMVCCModel
- Specified by:
setMvccVersion
in interfacePortletItemModel
- Parameters:
mvccVersion
- the mvcc version of this portlet item
-
setName
Sets the name of this portlet item.- Specified by:
setName
in interfacePortletItemModel
- Parameters:
name
- the name of this portlet item
-
setPortletId
Sets the portlet ID of this portlet item.- Specified by:
setPortletId
in interfacePortletItemModel
- Parameters:
portletId
- the portlet ID of this portlet item
-
setPortletItemId
public void setPortletItemId(long portletItemId) Sets the portlet item ID of this portlet item.- Specified by:
setPortletItemId
in interfacePortletItemModel
- Parameters:
portletItemId
- the portlet item ID of this portlet item
-
setPrimaryKey
public void setPrimaryKey(long primaryKey) Sets the primary key of this portlet item.- Specified by:
setPrimaryKey
in interfacePortletItemModel
- Parameters:
primaryKey
- the primary key of this portlet item
-
setUserId
public void setUserId(long userId) Sets the user ID of this portlet item.- Specified by:
setUserId
in interfaceAuditedModel
- Specified by:
setUserId
in interfacePortletItemModel
- Parameters:
userId
- the user ID of this portlet item
-
setUserName
Sets the user name of this portlet item.- Specified by:
setUserName
in interfaceAuditedModel
- Specified by:
setUserName
in interfacePortletItemModel
- Parameters:
userName
- the user name of this portlet item
-
setUserUuid
Sets the user uuid of this portlet item.- Specified by:
setUserUuid
in interfaceAuditedModel
- Specified by:
setUserUuid
in interfacePortletItemModel
- Parameters:
userUuid
- the user uuid of this portlet item
-
toXmlString
- Specified by:
toXmlString
in interfacePortletItemModel
-
wrap
- Specified by:
wrap
in classBaseModelWrapper<PortletItem>
-