Liferay 6.0.3

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, Serializable, Cloneable, Comparable<MBMessage>

public class MBMessageWrapper
extends Object
implements MBMessage

This class is a wrapper for MBMessage.

See Also:
MBMessage, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
MBMessageWrapper(MBMessage mbMessage)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(MBMessage mbMessage)
           
 boolean getAllowPingbacks()
           
 boolean getAnonymous()
           
 String[] getAssetTagNames()
           
 boolean getAttachments()
           
 String getAttachmentsDir()
           
 String[] getAttachmentsFiles()
           
 String getBody()
           
 String getBody(boolean translate)
           
 MBCategory getCategory()
           
 long getCategoryId()
           
 String getClassName()
           
 long getClassNameId()
           
 long getClassPK()
           
 long getCompanyId()
           
 Date getCreateDate()
           
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 long getGroupId()
           
 long getMessageId()
           
 Date getModifiedDate()
           
 long getParentMessageId()
           
 long getPrimaryKey()
           
 Serializable getPrimaryKeyObj()
          Gets the primary key for this model instance.
 double getPriority()
           
 long getRootMessageId()
           
 int getStatus()
           
 long getStatusByUserId()
           
 String getStatusByUserName()
           
 String getStatusByUserUuid()
           
 Date getStatusDate()
           
 String getSubject()
           
 MBThread getThread()
           
 String getThreadAttachmentsDir()
           
 long getThreadId()
           
 long getUserId()
           
 String getUserName()
           
 String getUserUuid()
           
 String getUuid()
           
 String getWorkflowClassName()
           
 MBMessage getWrappedMBMessage()
           
 int hashCode()
           
 boolean isAllowPingbacks()
           
 boolean isAnonymous()
           
 boolean isApproved()
           
 boolean isAttachments()
           
 boolean isCachedModel()
          Determines if this model instance was retrieved from the entity cache.
 boolean isDiscussion()
           
 boolean isDraft()
           
 boolean isEscapedModel()
          Determines if this model instance has been wrapped with an HTML auto escape handler.
 boolean isExpired()
           
 boolean isNew()
          Determines if this model instance does not yet exist in the database.
 boolean isPending()
           
 boolean isReply()
           
 boolean isRoot()
           
 void setAllowPingbacks(boolean allowPingbacks)
           
 void setAnonymous(boolean anonymous)
           
 void setAttachments(boolean attachments)
           
 void setAttachmentsDir(String attachmentsDir)
           
 void setBody(String body)
           
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 void setCategoryId(long categoryId)
           
 void setClassNameId(long classNameId)
           
 void setClassPK(long classPK)
           
 void setCompanyId(long companyId)
           
 void setCreateDate(Date createDate)
           
 void setEscapedModel(boolean escapedModel)
          Sets whether this model instance has been wrapped with an HTML auto escape handler.
 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)
           
 void setMessageId(long messageId)
           
 void setModifiedDate(Date modifiedDate)
           
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setParentMessageId(long parentMessageId)
           
 void setPrimaryKey(long pk)
           
 void setPriority(double priority)
           
 void setRootMessageId(long rootMessageId)
           
 void setStatus(int status)
           
 void setStatusByUserId(long statusByUserId)
           
 void setStatusByUserName(String statusByUserName)
           
 void setStatusByUserUuid(String statusByUserUuid)
           
 void setStatusDate(Date statusDate)
           
 void setSubject(String subject)
           
 void setThreadId(long threadId)
           
 void setUserId(long userId)
           
 void setUserName(String userName)
           
 void setUserUuid(String userUuid)
           
 void setUuid(String uuid)
           
 MBMessage toEscapedModel()
           
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
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 String getUuid()
Specified by:
getUuid in interface MBMessageModel

setUuid

public void setUuid(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 String getUserUuid()
                   throws SystemException
Specified by:
getUserUuid in interface MBMessageModel
Throws:
SystemException

setUserUuid

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

getUserName

public String getUserName()
Specified by:
getUserName in interface MBMessageModel

setUserName

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

getCreateDate

public Date getCreateDate()
Specified by:
getCreateDate in interface MBMessageModel

setCreateDate

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

getModifiedDate

public Date getModifiedDate()
Specified by:
getModifiedDate in interface MBMessageModel

setModifiedDate

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

getClassName

public 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

getRootMessageId

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

setRootMessageId

public void setRootMessageId(long rootMessageId)
Specified by:
setRootMessageId 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 String getSubject()
Specified by:
getSubject in interface MBMessageModel

setSubject

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

getBody

public String getBody()
Specified by:
getBody in interface MBMessageModel

setBody

public void setBody(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

getAllowPingbacks

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

isAllowPingbacks

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

setAllowPingbacks

public void setAllowPingbacks(boolean allowPingbacks)
Specified by:
setAllowPingbacks in interface MBMessageModel

getStatus

public int getStatus()
Specified by:
getStatus in interface MBMessageModel

setStatus

public void setStatus(int status)
Specified by:
setStatus in interface MBMessageModel

getStatusByUserId

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

setStatusByUserId

public void setStatusByUserId(long statusByUserId)
Specified by:
setStatusByUserId in interface MBMessageModel

getStatusByUserUuid

public String getStatusByUserUuid()
                           throws SystemException
Specified by:
getStatusByUserUuid in interface MBMessageModel
Throws:
SystemException

setStatusByUserUuid

public void setStatusByUserUuid(String statusByUserUuid)
Specified by:
setStatusByUserUuid in interface MBMessageModel

getStatusByUserName

public String getStatusByUserName()
Specified by:
getStatusByUserName in interface MBMessageModel

setStatusByUserName

public void setStatusByUserName(String statusByUserName)
Specified by:
setStatusByUserName in interface MBMessageModel

getStatusDate

public Date getStatusDate()
Specified by:
getStatusDate in interface MBMessageModel

setStatusDate

public void setStatusDate(Date statusDate)
Specified by:
setStatusDate in interface MBMessageModel

isApproved

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

isDraft

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

isExpired

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

isPending

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

toEscapedModel

public MBMessage toEscapedModel()
Specified by:
toEscapedModel in interface MBMessageModel

isNew

public boolean isNew()
Description copied from interface: BaseModel
Determines if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<MBMessage>
Specified by:
isNew in interface MBMessageModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<MBMessage>
Specified by:
setNew in interface MBMessageModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Determines if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<MBMessage>
Specified by:
isCachedModel in interface MBMessageModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<MBMessage>
Specified by:
setCachedModel in interface MBMessageModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Determines if this model instance has been wrapped with an HTML auto escape handler.

Specified by:
isEscapedModel in interface BaseModel<MBMessage>
Specified by:
isEscapedModel in interface MBMessageModel
Returns:
true if this model instance has been wrapped with an HTML auto escape handler; false otherwise
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Description copied from interface: BaseModel
Sets whether this model instance has been wrapped with an HTML auto escape handler.

A model instance can be wrapped with an HTML auto escape handler using its toEscapedModel method. For example, UserModel.toEscapedModel().

Specified by:
setEscapedModel in interface BaseModel<MBMessage>
Specified by:
setEscapedModel in interface MBMessageModel
Parameters:
escapedModel - whether this model instance has been wrapped with an HTML auto escape handler
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Gets the primary key for this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<MBMessage>
Specified by:
getPrimaryKeyObj in interface MBMessageModel
Returns:
the primary key

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Gets the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<MBMessage>
Specified by:
getExpandoBridge in interface MBMessageModel
Returns:
the expando bridge

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<MBMessage>
Specified by:
setExpandoBridgeAttributes in interface MBMessageModel
Parameters:
serviceContext - the service context to retrieve the expando bridge attributes from
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<MBMessage>
Specified by:
clone in interface MBMessageModel
Overrides:
clone in class Object
Returns:
the clone

compareTo

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

hashCode

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

toString

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

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<MBMessage>
Specified by:
toXmlString in interface MBMessageModel
Returns:
the XML representation of this model instance

getAssetTagNames

public String[] getAssetTagNames()
                          throws SystemException
Specified by:
getAssetTagNames in interface MBMessage
Throws:
SystemException

getAttachmentsDir

public String getAttachmentsDir()
Specified by:
getAttachmentsDir in interface MBMessage

getAttachmentsFiles

public String[] getAttachmentsFiles()
                             throws PortalException,
                                    SystemException
Specified by:
getAttachmentsFiles in interface MBMessage
Throws:
PortalException
SystemException

getBody

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

getCategory

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

getThread

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

getThreadAttachmentsDir

public String getThreadAttachmentsDir()
Specified by:
getThreadAttachmentsDir in interface MBMessage

getWorkflowClassName

public String getWorkflowClassName()
Specified by:
getWorkflowClassName 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(String attachmentsDir)
Specified by:
setAttachmentsDir in interface MBMessage

getWrappedMBMessage

public MBMessage getWrappedMBMessage()

Liferay 6.0.3