com.liferay.portlet.messageboards.model
Class MBMessageWrapper

java.lang.Object
  extended by com.liferay.portlet.messageboards.model.MBMessageWrapper
All Implemented Interfaces:
BaseModel<MBMessage>, MBMessage, MBMessageModel, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<MBMessage>

public class MBMessageWrapper
extends java.lang.Object
implements MBMessage

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class is a wrapper for MBMessage.

Author:
Brian Wing Shun Chan
See Also:
MBMessage, Serialized Form
Generated:

Constructor Summary
MBMessageWrapper(MBMessage mbMessage)
           
 
Method Summary
 java.lang.Object clone()
           
 int compareTo(MBMessage mbMessage)
           
 boolean getAnonymous()
           
 boolean getAttachments()
           
 java.lang.String getAttachmentsDir()
           
 java.lang.String[] getAttachmentsFiles()
           
 java.lang.String getBody()
           
 java.lang.String getBody(boolean translate)
           
 MBCategory getCategory()
           
 long getCategoryId()
           
 java.lang.String getClassName()
           
 long getClassNameId()
           
 long getClassPK()
           
 long getCompanyId()
           
 java.util.Date getCreateDate()
           
 ExpandoBridge getExpandoBridge()
           
 long getGroupId()
           
 long getMessageId()
           
 java.util.Date getModifiedDate()
           
 long getParentMessageId()
           
 long getPrimaryKey()
           
 java.io.Serializable getPrimaryKeyObj()
           
 double getPriority()
           
 java.lang.String getSubject()
           
 java.lang.String[] getTagsEntries()
           
 MBThread getThread()
           
 java.lang.String getThreadAttachmentsDir()
           
 long getThreadId()
           
 long getUserId()
           
 java.lang.String getUserName()
           
 java.lang.String getUserUuid()
           
 java.lang.String getUuid()
           
 MBMessage getWrappedMBMessage()
           
 int hashCode()
           
 boolean isAnonymous()
           
 boolean isAttachments()
           
 boolean isCachedModel()
           
 boolean isDiscussion()
           
 boolean isEscapedModel()
           
 boolean isNew()
           
 boolean isReply()
           
 boolean isRoot()
           
 void setAnonymous(boolean anonymous)
           
 void setAttachments(boolean attachments)
           
 void setAttachmentsDir(java.lang.String attachmentsDir)
           
 void setBody(java.lang.String body)
           
 void setCachedModel(boolean cachedModel)
           
 void setCategoryId(long categoryId)
           
 void setClassNameId(long classNameId)
           
 void setClassPK(long classPK)
           
 void setCompanyId(long companyId)
           
 void setCreateDate(java.util.Date createDate)
           
 void setEscapedModel(boolean escapedModel)
           
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
           
 void setGroupId(long groupId)
           
 void setMessageId(long messageId)
           
 void setModifiedDate(java.util.Date modifiedDate)
           
 boolean setNew(boolean n)
           
 void setParentMessageId(long parentMessageId)
           
 void setPrimaryKey(long pk)
           
 void setPriority(double priority)
           
 void setSubject(java.lang.String subject)
           
 void setThreadId(long threadId)
           
 void setUserId(long userId)
           
 void setUserName(java.lang.String userName)
           
 void setUserUuid(java.lang.String userUuid)
           
 void setUuid(java.lang.String uuid)
           
 MBMessage toEscapedModel()
           
 java.lang.String toString()
           
 java.lang.String toXmlString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MBMessageWrapper

public MBMessageWrapper(MBMessage mbMessage)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Specified by:
getPrimaryKey in interface MBMessageModel

setPrimaryKey

public void setPrimaryKey(long pk)
Specified by:
setPrimaryKey in interface MBMessageModel

getUuid

public java.lang.String getUuid()
Specified by:
getUuid in interface MBMessageModel

setUuid

public void setUuid(java.lang.String uuid)
Specified by:
setUuid in interface MBMessageModel

getMessageId

public long getMessageId()
Specified by:
getMessageId in interface MBMessageModel

setMessageId

public void setMessageId(long messageId)
Specified by:
setMessageId in interface MBMessageModel

getGroupId

public long getGroupId()
Specified by:
getGroupId in interface MBMessageModel

setGroupId

public void setGroupId(long groupId)
Specified by:
setGroupId in interface MBMessageModel

getCompanyId

public long getCompanyId()
Specified by:
getCompanyId in interface MBMessageModel

setCompanyId

public void setCompanyId(long companyId)
Specified by:
setCompanyId in interface MBMessageModel

getUserId

public long getUserId()
Specified by:
getUserId in interface MBMessageModel

setUserId

public void setUserId(long userId)
Specified by:
setUserId in interface MBMessageModel

getUserUuid

public java.lang.String getUserUuid()
                             throws com.liferay.portal.SystemException
Specified by:
getUserUuid in interface MBMessageModel
Throws:
com.liferay.portal.SystemException

setUserUuid

public void setUserUuid(java.lang.String userUuid)
Specified by:
setUserUuid in interface MBMessageModel

getUserName

public java.lang.String getUserName()
Specified by:
getUserName in interface MBMessageModel

setUserName

public void setUserName(java.lang.String userName)
Specified by:
setUserName in interface MBMessageModel

getCreateDate

public java.util.Date getCreateDate()
Specified by:
getCreateDate in interface MBMessageModel

setCreateDate

public void setCreateDate(java.util.Date createDate)
Specified by:
setCreateDate in interface MBMessageModel

getModifiedDate

public java.util.Date getModifiedDate()
Specified by:
getModifiedDate in interface MBMessageModel

setModifiedDate

public void setModifiedDate(java.util.Date modifiedDate)
Specified by:
setModifiedDate in interface MBMessageModel

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in interface MBMessageModel

getClassNameId

public long getClassNameId()
Specified by:
getClassNameId in interface MBMessageModel

setClassNameId

public void setClassNameId(long classNameId)
Specified by:
setClassNameId in interface MBMessageModel

getClassPK

public long getClassPK()
Specified by:
getClassPK in interface MBMessageModel

setClassPK

public void setClassPK(long classPK)
Specified by:
setClassPK in interface MBMessageModel

getCategoryId

public long getCategoryId()
Specified by:
getCategoryId in interface MBMessageModel

setCategoryId

public void setCategoryId(long categoryId)
Specified by:
setCategoryId in interface MBMessageModel

getThreadId

public long getThreadId()
Specified by:
getThreadId in interface MBMessageModel

setThreadId

public void setThreadId(long threadId)
Specified by:
setThreadId in interface MBMessageModel

getParentMessageId

public long getParentMessageId()
Specified by:
getParentMessageId in interface MBMessageModel

setParentMessageId

public void setParentMessageId(long parentMessageId)
Specified by:
setParentMessageId in interface MBMessageModel

getSubject

public java.lang.String getSubject()
Specified by:
getSubject in interface MBMessageModel

setSubject

public void setSubject(java.lang.String subject)
Specified by:
setSubject in interface MBMessageModel

getBody

public java.lang.String getBody()
Specified by:
getBody in interface MBMessageModel

setBody

public void setBody(java.lang.String body)
Specified by:
setBody in interface MBMessageModel

getAttachments

public boolean getAttachments()
Specified by:
getAttachments in interface MBMessageModel

isAttachments

public boolean isAttachments()
Specified by:
isAttachments in interface MBMessageModel

setAttachments

public void setAttachments(boolean attachments)
Specified by:
setAttachments in interface MBMessageModel

getAnonymous

public boolean getAnonymous()
Specified by:
getAnonymous in interface MBMessageModel

isAnonymous

public boolean isAnonymous()
Specified by:
isAnonymous in interface MBMessageModel

setAnonymous

public void setAnonymous(boolean anonymous)
Specified by:
setAnonymous in interface MBMessageModel

getPriority

public double getPriority()
Specified by:
getPriority in interface MBMessageModel

setPriority

public void setPriority(double priority)
Specified by:
setPriority in interface MBMessageModel

isNew

public boolean isNew()
Specified by:
isNew in interface BaseModel<MBMessage>
Specified by:
isNew in interface MBMessageModel

setNew

public boolean setNew(boolean n)
Specified by:
setNew in interface BaseModel<MBMessage>
Specified by:
setNew in interface MBMessageModel

isCachedModel

public boolean isCachedModel()
Specified by:
isCachedModel in interface BaseModel<MBMessage>
Specified by:
isCachedModel in interface MBMessageModel

setCachedModel

public void setCachedModel(boolean cachedModel)
Specified by:
setCachedModel in interface BaseModel<MBMessage>
Specified by:
setCachedModel in interface MBMessageModel

isEscapedModel

public boolean isEscapedModel()
Specified by:
isEscapedModel in interface BaseModel<MBMessage>
Specified by:
isEscapedModel in interface MBMessageModel

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Specified by:
setEscapedModel in interface BaseModel<MBMessage>
Specified by:
setEscapedModel in interface MBMessageModel

getPrimaryKeyObj

public java.io.Serializable getPrimaryKeyObj()
Specified by:
getPrimaryKeyObj in interface BaseModel<MBMessage>
Specified by:
getPrimaryKeyObj in interface MBMessageModel

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Specified by:
getExpandoBridge in interface BaseModel<MBMessage>
Specified by:
getExpandoBridge in interface MBMessageModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<MBMessage>
Specified by:
setExpandoBridgeAttributes in interface MBMessageModel

clone

public java.lang.Object clone()
Specified by:
clone in interface BaseModel<MBMessage>
Specified by:
clone in interface MBMessageModel
Overrides:
clone in class java.lang.Object

compareTo

public int compareTo(MBMessage mbMessage)
Specified by:
compareTo in interface MBMessageModel
Specified by:
compareTo in interface java.lang.Comparable<MBMessage>

hashCode

public int hashCode()
Specified by:
hashCode in interface MBMessageModel
Overrides:
hashCode in class java.lang.Object

toEscapedModel

public MBMessage toEscapedModel()
Specified by:
toEscapedModel in interface BaseModel<MBMessage>
Specified by:
toEscapedModel in interface MBMessageModel

toString

public java.lang.String toString()
Specified by:
toString in interface MBMessageModel
Overrides:
toString in class java.lang.Object

toXmlString

public java.lang.String toXmlString()
Specified by:
toXmlString in interface BaseModel<MBMessage>
Specified by:
toXmlString in interface MBMessageModel

getAttachmentsDir

public java.lang.String getAttachmentsDir()
Specified by:
getAttachmentsDir in interface MBMessage

getAttachmentsFiles

public java.lang.String[] getAttachmentsFiles()
                                       throws com.liferay.portal.PortalException,
                                              com.liferay.portal.SystemException
Specified by:
getAttachmentsFiles in interface MBMessage
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getBody

public java.lang.String getBody(boolean translate)
Specified by:
getBody in interface MBMessage

getCategory

public MBCategory getCategory()
Specified by:
getCategory in interface MBMessage

getTagsEntries

public java.lang.String[] getTagsEntries()
                                  throws com.liferay.portal.SystemException
Specified by:
getTagsEntries in interface MBMessage
Throws:
com.liferay.portal.SystemException

getThread

public MBThread getThread()
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Specified by:
getThread in interface MBMessage
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getThreadAttachmentsDir

public java.lang.String getThreadAttachmentsDir()
Specified by:
getThreadAttachmentsDir in interface MBMessage

isDiscussion

public boolean isDiscussion()
Specified by:
isDiscussion in interface MBMessage

isReply

public boolean isReply()
Specified by:
isReply in interface MBMessage

isRoot

public boolean isRoot()
Specified by:
isRoot in interface MBMessage

setAttachmentsDir

public void setAttachmentsDir(java.lang.String attachmentsDir)
Specified by:
setAttachmentsDir in interface MBMessage

getWrappedMBMessage

public MBMessage getWrappedMBMessage()