@ProviderType public class MBMessageWrapper extends Object implements MBMessage, ModelWrapper<MBMessage>
This class is a wrapper for MBMessage
.
MBMessage
,
Serialized FormMESSAGE_ID_ACCESSOR
Constructor and Description |
---|
MBMessageWrapper(MBMessage mbMessage) |
Modifier and Type | Method and Description |
---|---|
Folder |
addAttachmentsFolder() |
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(MBMessage mbMessage) |
boolean |
equals(Object obj) |
boolean |
getAllowPingbacks()
Returns the allow pingbacks of this message-boards message.
|
boolean |
getAnonymous()
Returns the anonymous of this message-boards message.
|
boolean |
getAnswer()
Returns the answer of this message-boards message.
|
String[] |
getAssetTagNames() |
List<FileEntry> |
getAttachmentsFileEntries() |
List<FileEntry> |
getAttachmentsFileEntries(int start,
int end) |
int |
getAttachmentsFileEntriesCount() |
long |
getAttachmentsFolderId() |
String |
getBody()
Returns the body of this message-boards message.
|
String |
getBody(boolean translate) |
MBCategory |
getCategory() |
long |
getCategoryId()
Returns the category ID of this message-boards message.
|
String |
getClassName()
Returns the fully qualified class name of this message-boards message.
|
long |
getClassNameId()
Returns the class name ID of this message-boards message.
|
long |
getClassPK()
Returns the class pk of this message-boards message.
|
long |
getCompanyId()
Returns the company ID of this message-boards message.
|
Date |
getCreateDate()
Returns the create date of this message-boards message.
|
List<FileEntry> |
getDeletedAttachmentsFileEntries() |
List<FileEntry> |
getDeletedAttachmentsFileEntries(int start,
int end) |
int |
getDeletedAttachmentsFileEntriesCount() |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
String |
getFormat()
Returns the format of this message-boards message.
|
long |
getGroupId()
Returns the group ID of this message-boards message.
|
Date |
getLastPublishDate()
Returns the last publish date of this message-boards message.
|
long |
getMessageId()
Returns the message ID of this message-boards message.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
Date |
getModifiedDate()
Returns the modified date of this message-boards message.
|
long |
getParentMessageId()
Returns the parent message ID of this message-boards message.
|
long |
getPrimaryKey()
Returns the primary key of this message-boards message.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
double |
getPriority()
Returns the priority of this message-boards message.
|
long |
getRootMessageId()
Returns the root message ID of this message-boards message.
|
StagedModelType |
getStagedModelType() |
int |
getStatus()
Returns the status of this message-boards message.
|
long |
getStatusByUserId()
Returns the status by user ID of this message-boards message.
|
String |
getStatusByUserName()
Returns the status by user name of this message-boards message.
|
String |
getStatusByUserUuid()
Returns the status by user uuid of this message-boards message.
|
Date |
getStatusDate()
Returns the status date of this message-boards message.
|
String |
getSubject()
Returns the subject of this message-boards message.
|
MBThread |
getThread() |
long |
getThreadAttachmentsFolderId() |
long |
getThreadId()
Returns the thread ID of this message-boards message.
|
TrashEntry |
getTrashEntry()
Returns the trash entry created when this message-boards message was moved to the Recycle Bin.
|
long |
getTrashEntryClassPK()
Returns the class primary key of the trash entry for this message-boards message.
|
TrashHandler |
getTrashHandler()
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
long |
getUserId()
Returns the user ID of this message-boards message.
|
String |
getUserName()
Returns the user name of this message-boards message.
|
String |
getUserUuid()
Returns the user uuid of this message-boards message.
|
String |
getUuid()
Returns the uuid of this message-boards message.
|
String |
getWorkflowClassName() |
MBMessage |
getWrappedModel() |
int |
hashCode() |
boolean |
isAllowPingbacks()
Returns
true if this message-boards message is allow pingbacks. |
boolean |
isAnonymous()
Returns
true if this message-boards message is anonymous. |
boolean |
isAnswer()
Returns
true if this message-boards message is answer. |
boolean |
isApproved()
Returns
true if this message-boards message is approved. |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isDenied()
Returns
true if this message-boards message is denied. |
boolean |
isDiscussion() |
boolean |
isDraft()
Returns
true if this message-boards message is a draft. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isExpired()
Returns
true if this message-boards message is expired. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
boolean |
isFormatBBCode() |
boolean |
isInactive()
Returns
true if this message-boards message is inactive. |
boolean |
isIncomplete()
Returns
true if this message-boards message is incomplete. |
boolean |
isInTrash()
Returns
true if this message-boards message is in the Recycle Bin. |
boolean |
isInTrashContainer()
Returns
true if the parent of this message-boards message is in the Recycle Bin. |
boolean |
isInTrashExplicitly() |
boolean |
isInTrashImplicitly() |
boolean |
isNew()
Returns
true if this model instance does not yet exist in
the database. |
boolean |
isPending()
Returns
true if this message-boards message is pending. |
boolean |
isReply() |
boolean |
isRoot() |
boolean |
isScheduled()
Returns
true if this message-boards message is scheduled. |
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 |
setAllowPingbacks(boolean allowPingbacks)
Sets whether this message-boards message is allow pingbacks.
|
void |
setAnonymous(boolean anonymous)
Sets whether this message-boards message is anonymous.
|
void |
setAnswer(boolean answer)
Sets whether this message-boards message is answer.
|
void |
setAttachmentsFolderId(long attachmentsFolderId) |
void |
setBody(String body)
Sets the body of this message-boards message.
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache.
|
void |
setCategoryId(long categoryId)
Sets the category ID of this message-boards message.
|
void |
setClassName(String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this message-boards message.
|
void |
setClassPK(long classPK)
Sets the class pk of this message-boards message.
|
void |
setCompanyId(long companyId)
Sets the company ID of this message-boards message.
|
void |
setCreateDate(Date createDate)
Sets the create date of this message-boards message.
|
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 |
setFormat(String format)
Sets the format of this message-boards message.
|
void |
setGroupId(long groupId)
Sets the group ID of this message-boards message.
|
void |
setLastPublishDate(Date lastPublishDate)
Sets the last publish date of this message-boards message.
|
void |
setMessageId(long messageId)
Sets the message ID of this message-boards message.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this message-boards message.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setParentMessageId(long parentMessageId)
Sets the parent message ID of this message-boards message.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this message-boards message.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setPriority(double priority)
Sets the priority of this message-boards message.
|
void |
setRootMessageId(long rootMessageId)
Sets the root message ID of this message-boards message.
|
void |
setStatus(int status)
Sets the status of this message-boards message.
|
void |
setStatusByUserId(long statusByUserId)
Sets the status by user ID of this message-boards message.
|
void |
setStatusByUserName(String statusByUserName)
Sets the status by user name of this message-boards message.
|
void |
setStatusByUserUuid(String statusByUserUuid)
Sets the status by user uuid of this message-boards message.
|
void |
setStatusDate(Date statusDate)
Sets the status date of this message-boards message.
|
void |
setSubject(String subject)
Sets the subject of this message-boards message.
|
void |
setThreadId(long threadId)
Sets the thread ID of this message-boards message.
|
void |
setUserId(long userId)
Sets the user ID of this message-boards message.
|
void |
setUserName(String userName)
Sets the user name of this message-boards message.
|
void |
setUserUuid(String userUuid)
Sets the user uuid of this message-boards message.
|
void |
setUuid(String uuid)
Sets the uuid of this message-boards message.
|
CacheModel<MBMessage> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
MBMessage |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
String |
toString() |
MBMessage |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public MBMessageWrapper(MBMessage mbMessage)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<MBMessage>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<MBMessage>
public Folder addAttachmentsFolder() throws PortalException
addAttachmentsFolder
in interface MBMessage
PortalException
public Object clone()
BaseModel
clone
in interface MBMessageModel
clone
in interface BaseModel<MBMessage>
clone
in interface StagedModel
clone
in class Object
public int compareTo(MBMessage mbMessage)
compareTo
in interface MBMessageModel
compareTo
in interface Comparable<MBMessage>
public boolean getAllowPingbacks()
getAllowPingbacks
in interface MBMessageModel
public boolean getAnonymous()
getAnonymous
in interface MBMessageModel
public boolean getAnswer()
getAnswer
in interface MBMessageModel
public String[] getAssetTagNames()
getAssetTagNames
in interface MBMessage
public List<FileEntry> getAttachmentsFileEntries() throws PortalException
getAttachmentsFileEntries
in interface MBMessage
PortalException
public List<FileEntry> getAttachmentsFileEntries(int start, int end) throws PortalException
getAttachmentsFileEntries
in interface MBMessage
PortalException
public int getAttachmentsFileEntriesCount() throws PortalException
getAttachmentsFileEntriesCount
in interface MBMessage
PortalException
public long getAttachmentsFolderId() throws PortalException
getAttachmentsFolderId
in interface MBMessage
PortalException
public String getBody()
getBody
in interface MBMessageModel
public MBCategory getCategory() throws PortalException
getCategory
in interface MBMessage
PortalException
public long getCategoryId()
getCategoryId
in interface MBMessageModel
public String getClassName()
getClassName
in interface MBMessageModel
getClassName
in interface TypedModel
public long getClassNameId()
getClassNameId
in interface MBMessageModel
getClassNameId
in interface TypedModel
public long getClassPK()
getClassPK
in interface MBMessageModel
getClassPK
in interface AttachedModel
public long getCompanyId()
getCompanyId
in interface MBMessageModel
getCompanyId
in interface AuditedModel
getCompanyId
in interface ShardedModel
getCompanyId
in interface StagedModel
public Date getCreateDate()
getCreateDate
in interface MBMessageModel
getCreateDate
in interface AuditedModel
getCreateDate
in interface StagedModel
public List<FileEntry> getDeletedAttachmentsFileEntries() throws PortalException
getDeletedAttachmentsFileEntries
in interface MBMessage
PortalException
public List<FileEntry> getDeletedAttachmentsFileEntries(int start, int end) throws PortalException
getDeletedAttachmentsFileEntries
in interface MBMessage
PortalException
public int getDeletedAttachmentsFileEntriesCount() throws PortalException
getDeletedAttachmentsFileEntriesCount
in interface MBMessage
PortalException
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface MBMessageModel
getExpandoBridge
in interface BaseModel<MBMessage>
getExpandoBridge
in interface ClassedModel
public String getFormat()
getFormat
in interface MBMessageModel
public long getGroupId()
getGroupId
in interface MBMessageModel
getGroupId
in interface GroupedModel
public Date getLastPublishDate()
getLastPublishDate
in interface MBMessageModel
getLastPublishDate
in interface StagedGroupedModel
public long getMessageId()
getMessageId
in interface MBMessageModel
public Date getModifiedDate()
getModifiedDate
in interface MBMessageModel
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface StagedModel
public long getParentMessageId()
getParentMessageId
in interface MBMessageModel
public long getPrimaryKey()
getPrimaryKey
in interface MBMessageModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface MBMessageModel
getPrimaryKeyObj
in interface BaseModel<MBMessage>
getPrimaryKeyObj
in interface ClassedModel
public double getPriority()
getPriority
in interface MBMessageModel
public long getRootMessageId()
getRootMessageId
in interface MBMessageModel
public int getStatus()
getStatus
in interface MBMessageModel
getStatus
in interface TrashedModel
getStatus
in interface WorkflowedModel
public long getStatusByUserId()
getStatusByUserId
in interface MBMessageModel
getStatusByUserId
in interface WorkflowedModel
public String getStatusByUserName()
getStatusByUserName
in interface MBMessageModel
getStatusByUserName
in interface WorkflowedModel
public String getStatusByUserUuid()
getStatusByUserUuid
in interface MBMessageModel
getStatusByUserUuid
in interface WorkflowedModel
public Date getStatusDate()
getStatusDate
in interface MBMessageModel
getStatusDate
in interface WorkflowedModel
public String getSubject()
getSubject
in interface MBMessageModel
public MBThread getThread() throws PortalException
getThread
in interface MBMessage
PortalException
public long getThreadAttachmentsFolderId() throws PortalException
getThreadAttachmentsFolderId
in interface MBMessage
PortalException
public long getThreadId()
getThreadId
in interface MBMessageModel
public TrashEntry getTrashEntry() throws PortalException
getTrashEntry
in interface MBMessageModel
getTrashEntry
in interface TrashedModel
PortalException
public long getTrashEntryClassPK()
getTrashEntryClassPK
in interface MBMessageModel
getTrashEntryClassPK
in interface TrashedModel
@Deprecated public TrashHandler getTrashHandler()
getTrashHandler
in interface MBMessageModel
getTrashHandler
in interface TrashedModel
public long getUserId()
getUserId
in interface MBMessageModel
getUserId
in interface AuditedModel
public String getUserName()
getUserName
in interface MBMessageModel
getUserName
in interface AuditedModel
public String getUserUuid()
getUserUuid
in interface MBMessageModel
getUserUuid
in interface AuditedModel
public String getUuid()
getUuid
in interface MBMessageModel
getUuid
in interface StagedModel
public String getWorkflowClassName()
getWorkflowClassName
in interface MBMessage
public int hashCode()
hashCode
in interface MBMessageModel
hashCode
in class Object
public boolean isAllowPingbacks()
true
if this message-boards message is allow pingbacks.isAllowPingbacks
in interface MBMessageModel
true
if this message-boards message is allow pingbacks; false
otherwisepublic boolean isAnonymous()
true
if this message-boards message is anonymous.isAnonymous
in interface MBMessageModel
true
if this message-boards message is anonymous; false
otherwisepublic boolean isAnswer()
true
if this message-boards message is answer.isAnswer
in interface MBMessageModel
true
if this message-boards message is answer; false
otherwisepublic boolean isApproved()
true
if this message-boards message is approved.isApproved
in interface MBMessageModel
isApproved
in interface WorkflowedModel
true
if this message-boards message is approved; false
otherwisepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface MBMessageModel
isCachedModel
in interface BaseModel<MBMessage>
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public boolean isDenied()
true
if this message-boards message is denied.isDenied
in interface MBMessageModel
isDenied
in interface WorkflowedModel
true
if this message-boards message is denied; false
otherwisepublic boolean isDiscussion()
isDiscussion
in interface MBMessage
public boolean isDraft()
true
if this message-boards message is a draft.isDraft
in interface MBMessageModel
isDraft
in interface WorkflowedModel
true
if this message-boards message is a draft; false
otherwisepublic boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface MBMessageModel
isEscapedModel
in interface BaseModel<MBMessage>
true
if this model instance is escaped;
false
otherwisepublic boolean isExpired()
true
if this message-boards message is expired.isExpired
in interface MBMessageModel
isExpired
in interface WorkflowedModel
true
if this message-boards message is expired; false
otherwisepublic boolean isFormatBBCode()
isFormatBBCode
in interface MBMessage
public boolean isInactive()
true
if this message-boards message is inactive.isInactive
in interface MBMessageModel
isInactive
in interface WorkflowedModel
true
if this message-boards message is inactive; false
otherwisepublic boolean isIncomplete()
true
if this message-boards message is incomplete.isIncomplete
in interface MBMessageModel
isIncomplete
in interface WorkflowedModel
true
if this message-boards message is incomplete; false
otherwisepublic boolean isInTrash()
true
if this message-boards message is in the Recycle Bin.isInTrash
in interface MBMessageModel
isInTrash
in interface TrashedModel
true
if this message-boards message is in the Recycle Bin; false
otherwisepublic boolean isInTrashContainer()
true
if the parent of this message-boards message is in the Recycle Bin.isInTrashContainer
in interface MBMessageModel
isInTrashContainer
in interface TrashedModel
true
if the parent of this message-boards message is in the Recycle Bin; false
otherwisepublic boolean isInTrashExplicitly()
isInTrashExplicitly
in interface MBMessageModel
isInTrashExplicitly
in interface TrashedModel
public boolean isInTrashImplicitly()
isInTrashImplicitly
in interface MBMessageModel
isInTrashImplicitly
in interface TrashedModel
public boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.isNew
in interface MBMessageModel
isNew
in interface BaseModel<MBMessage>
true
if this model instance does not yet exist in
the database; false
otherwisepublic boolean isPending()
true
if this message-boards message is pending.isPending
in interface MBMessageModel
isPending
in interface WorkflowedModel
true
if this message-boards message is pending; false
otherwisepublic boolean isScheduled()
true
if this message-boards message is scheduled.isScheduled
in interface MBMessageModel
isScheduled
in interface WorkflowedModel
true
if this message-boards message is scheduled; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setAllowPingbacks(boolean allowPingbacks)
setAllowPingbacks
in interface MBMessageModel
allowPingbacks
- the allow pingbacks of this message-boards messagepublic void setAnonymous(boolean anonymous)
setAnonymous
in interface MBMessageModel
anonymous
- the anonymous of this message-boards messagepublic void setAnswer(boolean answer)
setAnswer
in interface MBMessageModel
answer
- the answer of this message-boards messagepublic void setAttachmentsFolderId(long attachmentsFolderId)
setAttachmentsFolderId
in interface MBMessage
public void setBody(String body)
setBody
in interface MBMessageModel
body
- the body of this message-boards messagepublic void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface MBMessageModel
setCachedModel
in interface BaseModel<MBMessage>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setCategoryId(long categoryId)
setCategoryId
in interface MBMessageModel
categoryId
- the category ID of this message-boards messagepublic void setClassName(String className)
setClassName
in interface MBMessageModel
public void setClassNameId(long classNameId)
setClassNameId
in interface MBMessageModel
setClassNameId
in interface TypedModel
classNameId
- the class name ID of this message-boards messagepublic void setClassPK(long classPK)
setClassPK
in interface MBMessageModel
setClassPK
in interface AttachedModel
classPK
- the class pk of this message-boards messagepublic void setCompanyId(long companyId)
setCompanyId
in interface MBMessageModel
setCompanyId
in interface AuditedModel
setCompanyId
in interface ShardedModel
setCompanyId
in interface StagedModel
companyId
- the company ID of this message-boards messagepublic void setCreateDate(Date createDate)
setCreateDate
in interface MBMessageModel
setCreateDate
in interface AuditedModel
setCreateDate
in interface StagedModel
createDate
- the create date of this message-boards messagepublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface MBMessageModel
setExpandoBridgeAttributes
in interface BaseModel<MBMessage>
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface MBMessageModel
setExpandoBridgeAttributes
in interface BaseModel<MBMessage>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface MBMessageModel
setExpandoBridgeAttributes
in interface BaseModel<MBMessage>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setFormat(String format)
setFormat
in interface MBMessageModel
format
- the format of this message-boards messagepublic void setGroupId(long groupId)
setGroupId
in interface MBMessageModel
setGroupId
in interface GroupedModel
groupId
- the group ID of this message-boards messagepublic void setLastPublishDate(Date lastPublishDate)
setLastPublishDate
in interface MBMessageModel
setLastPublishDate
in interface StagedGroupedModel
lastPublishDate
- the last publish date of this message-boards messagepublic void setMessageId(long messageId)
setMessageId
in interface MBMessageModel
messageId
- the message ID of this message-boards messagepublic void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface MBMessageModel
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface StagedModel
modifiedDate
- the modified date of this message-boards messagepublic void setNew(boolean n)
BaseModel
setNew
in interface MBMessageModel
setNew
in interface BaseModel<MBMessage>
n
- whether this model instance does not yet exist in the databasepublic void setParentMessageId(long parentMessageId)
setParentMessageId
in interface MBMessageModel
parentMessageId
- the parent message ID of this message-boards messagepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface MBMessageModel
primaryKey
- the primary key of this message-boards messagepublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface MBMessageModel
setPrimaryKeyObj
in interface BaseModel<MBMessage>
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instancepublic void setPriority(double priority)
setPriority
in interface MBMessageModel
priority
- the priority of this message-boards messagepublic void setRootMessageId(long rootMessageId)
setRootMessageId
in interface MBMessageModel
rootMessageId
- the root message ID of this message-boards messagepublic void setStatus(int status)
setStatus
in interface MBMessageModel
setStatus
in interface WorkflowedModel
status
- the status of this message-boards messagepublic void setStatusByUserId(long statusByUserId)
setStatusByUserId
in interface MBMessageModel
setStatusByUserId
in interface WorkflowedModel
statusByUserId
- the status by user ID of this message-boards messagepublic void setStatusByUserName(String statusByUserName)
setStatusByUserName
in interface MBMessageModel
setStatusByUserName
in interface WorkflowedModel
statusByUserName
- the status by user name of this message-boards messagepublic void setStatusByUserUuid(String statusByUserUuid)
setStatusByUserUuid
in interface MBMessageModel
setStatusByUserUuid
in interface WorkflowedModel
statusByUserUuid
- the status by user uuid of this message-boards messagepublic void setStatusDate(Date statusDate)
setStatusDate
in interface MBMessageModel
setStatusDate
in interface WorkflowedModel
statusDate
- the status date of this message-boards messagepublic void setSubject(String subject)
setSubject
in interface MBMessageModel
subject
- the subject of this message-boards messagepublic void setThreadId(long threadId)
setThreadId
in interface MBMessageModel
threadId
- the thread ID of this message-boards messagepublic void setUserId(long userId)
setUserId
in interface MBMessageModel
setUserId
in interface AuditedModel
userId
- the user ID of this message-boards messagepublic void setUserName(String userName)
setUserName
in interface MBMessageModel
setUserName
in interface AuditedModel
userName
- the user name of this message-boards messagepublic void setUserUuid(String userUuid)
setUserUuid
in interface MBMessageModel
setUserUuid
in interface AuditedModel
userUuid
- the user uuid of this message-boards messagepublic void setUuid(String uuid)
setUuid
in interface MBMessageModel
setUuid
in interface StagedModel
uuid
- the uuid of this message-boards messagepublic CacheModel<MBMessage> toCacheModel()
BaseModel
toCacheModel
in interface MBMessageModel
toCacheModel
in interface BaseModel<MBMessage>
public MBMessage toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface MBMessageModel
toEscapedModel
in interface BaseModel<MBMessage>
AutoEscapeBeanHandler
public String toString()
toString
in interface MBMessageModel
toString
in class Object
public MBMessage toUnescapedModel()
toUnescapedModel
in interface MBMessageModel
toUnescapedModel
in interface BaseModel<MBMessage>
public String toXmlString()
BaseModel
toXmlString
in interface MBMessageModel
toXmlString
in interface BaseModel<MBMessage>
public boolean equals(Object obj)
equals
in class Object
public StagedModelType getStagedModelType()
getStagedModelType
in interface StagedModel
public MBMessage getWrappedModel()
getWrappedModel
in interface ModelWrapper<MBMessage>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<MBMessage>
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<MBMessage>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<MBMessage>