@ProviderType public class MBThreadWrapper extends Object implements MBThread, ModelWrapper<MBThread>
This class is a wrapper for MBThread.
MBThread,
Serialized FormTHREAD_ID_ACCESSOR| Constructor and Description |
|---|
MBThreadWrapper(MBThread mbThread) |
| Modifier and Type | Method and Description |
|---|---|
Folder |
addAttachmentsFolder() |
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(MBThread mbThread) |
boolean |
equals(Object obj) |
long |
getAttachmentsFolderId() |
MBCategory |
getCategory() |
long |
getCategoryId()
Returns the category ID of this message boards thread.
|
long |
getCompanyId()
Returns the company ID of this message boards thread.
|
long |
getContainerModelId()
Returns the container model ID of this message boards thread.
|
String |
getContainerModelName()
Returns the container name of this message boards thread.
|
Date |
getCreateDate()
Returns the create date of this message boards thread.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
long |
getGroupId()
Returns the group ID of this message boards thread.
|
long |
getLastPostByUserId()
Returns the last post by user ID of this message boards thread.
|
String |
getLastPostByUserUuid()
Returns the last post by user uuid of this message boards thread.
|
Date |
getLastPostDate()
Returns the last post date of this message boards thread.
|
Date |
getLastPublishDate()
Returns the last publish date of this message boards thread.
|
Lock |
getLock() |
int |
getMessageCount()
Returns the message count of this message boards thread.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
Date |
getModifiedDate()
Returns the modified date of this message boards thread.
|
long |
getParentContainerModelId()
Returns the parent container model ID of this message boards thread.
|
long[] |
getParticipantUserIds() |
long |
getPrimaryKey()
Returns the primary key of this message boards thread.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
double |
getPriority()
Returns the priority of this message boards thread.
|
boolean |
getQuestion()
Returns the question of this message boards thread.
|
long |
getRootMessageId()
Returns the root message ID of this message boards thread.
|
long |
getRootMessageUserId()
Returns the root message user ID of this message boards thread.
|
String |
getRootMessageUserUuid()
Returns the root message user uuid of this message boards thread.
|
StagedModelType |
getStagedModelType() |
int |
getStatus()
Returns the status of this message boards thread.
|
long |
getStatusByUserId()
Returns the status by user ID of this message boards thread.
|
String |
getStatusByUserName()
Returns the status by user name of this message boards thread.
|
String |
getStatusByUserUuid()
Returns the status by user uuid of this message boards thread.
|
Date |
getStatusDate()
Returns the status date of this message boards thread.
|
long |
getThreadId()
Returns the thread ID of this message boards thread.
|
TrashEntry |
getTrashEntry()
Returns the trash entry created when this message boards thread was moved to the Recycle Bin.
|
long |
getTrashEntryClassPK()
Returns the class primary key of the trash entry for this message boards thread.
|
TrashHandler |
getTrashHandler()
Returns the trash handler for this message boards thread.
|
long |
getUserId()
Returns the user ID of this message boards thread.
|
String |
getUserName()
Returns the user name of this message boards thread.
|
String |
getUserUuid()
Returns the user uuid of this message boards thread.
|
String |
getUuid()
Returns the uuid of this message boards thread.
|
int |
getViewCount()
Returns the view count of this message boards thread.
|
MBThread |
getWrappedModel() |
int |
hashCode() |
boolean |
hasLock(long userId) |
boolean |
isApproved()
Returns
true if this message boards thread is approved. |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isDenied()
Returns
true if this message boards thread is denied. |
boolean |
isDraft()
Returns
true if this message boards thread 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 thread is expired. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
boolean |
isInactive()
Returns
true if this message boards thread is inactive. |
boolean |
isIncomplete()
Returns
true if this message boards thread is incomplete. |
boolean |
isInTrash()
Returns
true if this message boards thread is in the Recycle Bin. |
boolean |
isInTrashContainer()
Returns
true if the parent of this message boards thread is in the Recycle Bin. |
boolean |
isInTrashExplicitly() |
boolean |
isInTrashImplicitly() |
boolean |
isLocked() |
boolean |
isNew()
Returns
true if this model instance does not yet exist in
the database. |
boolean |
isPending()
Returns
true if this message boards thread is pending. |
boolean |
isQuestion()
Returns
true if this message boards thread is question. |
boolean |
isScheduled()
Returns
true if this message boards thread 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 |
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 thread.
|
void |
setCompanyId(long companyId)
Sets the company ID of this message boards thread.
|
void |
setContainerModelId(long containerModelId)
Sets the container model ID of this message boards thread.
|
void |
setCreateDate(Date createDate)
Sets the create date of this message boards thread.
|
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 message boards thread.
|
void |
setLastPostByUserId(long lastPostByUserId)
Sets the last post by user ID of this message boards thread.
|
void |
setLastPostByUserUuid(String lastPostByUserUuid)
Sets the last post by user uuid of this message boards thread.
|
void |
setLastPostDate(Date lastPostDate)
Sets the last post date of this message boards thread.
|
void |
setLastPublishDate(Date lastPublishDate)
Sets the last publish date of this message boards thread.
|
void |
setMessageCount(int messageCount)
Sets the message count of this message boards thread.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this message boards thread.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setParentContainerModelId(long parentContainerModelId)
Sets the parent container model ID of this message boards thread.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this message boards thread.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setPriority(double priority)
Sets the priority of this message boards thread.
|
void |
setQuestion(boolean question)
Sets whether this message boards thread is question.
|
void |
setRootMessageId(long rootMessageId)
Sets the root message ID of this message boards thread.
|
void |
setRootMessageUserId(long rootMessageUserId)
Sets the root message user ID of this message boards thread.
|
void |
setRootMessageUserUuid(String rootMessageUserUuid)
Sets the root message user uuid of this message boards thread.
|
void |
setStatus(int status)
Sets the status of this message boards thread.
|
void |
setStatusByUserId(long statusByUserId)
Sets the status by user ID of this message boards thread.
|
void |
setStatusByUserName(String statusByUserName)
Sets the status by user name of this message boards thread.
|
void |
setStatusByUserUuid(String statusByUserUuid)
Sets the status by user uuid of this message boards thread.
|
void |
setStatusDate(Date statusDate)
Sets the status date of this message boards thread.
|
void |
setThreadId(long threadId)
Sets the thread ID of this message boards thread.
|
void |
setUserId(long userId)
Sets the user ID of this message boards thread.
|
void |
setUserName(String userName)
Sets the user name of this message boards thread.
|
void |
setUserUuid(String userUuid)
Sets the user uuid of this message boards thread.
|
void |
setUuid(String uuid)
Sets the uuid of this message boards thread.
|
void |
setViewCount(int viewCount)
Sets the view count of this message boards thread.
|
CacheModel<MBThread> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
MBThread |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
String |
toString() |
MBThread |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public MBThreadWrapper(MBThread mbThread)
public Class<?> getModelClass()
getModelClass in interface ClassedModelgetModelClass in interface ContainerModelpublic String getModelClassName()
getModelClassName in interface ClassedModelgetModelClassName in interface ContainerModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<MBThread>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<MBThread>public MBCategory getCategory() throws PortalException
getCategory in interface MBThreadPortalExceptionpublic MBThread toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface MBThreadModeltoEscapedModel in interface BaseModel<MBThread>AutoEscapeBeanHandlerpublic MBThread toUnescapedModel()
toUnescapedModel in interface MBThreadModeltoUnescapedModel in interface BaseModel<MBThread>public boolean getQuestion()
getQuestion in interface MBThreadModelpublic boolean isApproved()
true if this message boards thread is approved.isApproved in interface MBThreadModelisApproved in interface WorkflowedModeltrue if this message boards thread is approved; false otherwisepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface MBThreadModelisCachedModel in interface BaseModel<MBThread>true if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isDenied()
true if this message boards thread is denied.isDenied in interface MBThreadModelisDenied in interface WorkflowedModeltrue if this message boards thread is denied; false otherwisepublic boolean isDraft()
true if this message boards thread is a draft.isDraft in interface MBThreadModelisDraft in interface WorkflowedModeltrue if this message boards thread is a draft; false otherwisepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface MBThreadModelisEscapedModel in interface BaseModel<MBThread>true if this model instance is escaped;
false otherwisepublic boolean isExpired()
true if this message boards thread is expired.isExpired in interface MBThreadModelisExpired in interface WorkflowedModeltrue if this message boards thread is expired; false otherwisepublic boolean isInTrash()
true if this message boards thread is in the Recycle Bin.isInTrash in interface MBThreadModelisInTrash in interface TrashedModeltrue if this message boards thread is in the Recycle Bin; false otherwisepublic boolean isInTrashContainer()
true if the parent of this message boards thread is in the Recycle Bin.isInTrashContainer in interface MBThreadModelisInTrashContainer in interface TrashedModeltrue if the parent of this message boards thread is in the Recycle Bin; false otherwisepublic boolean isInTrashExplicitly()
isInTrashExplicitly in interface MBThreadModelisInTrashExplicitly in interface TrashedModelpublic boolean isInTrashImplicitly()
isInTrashImplicitly in interface MBThreadModelisInTrashImplicitly in interface TrashedModelpublic boolean isInactive()
true if this message boards thread is inactive.isInactive in interface MBThreadModelisInactive in interface WorkflowedModeltrue if this message boards thread is inactive; false otherwisepublic boolean isIncomplete()
true if this message boards thread is incomplete.isIncomplete in interface MBThreadModelisIncomplete in interface WorkflowedModeltrue if this message boards thread is incomplete; false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface MBThreadModelisNew in interface BaseModel<MBThread>true if this model instance does not yet exist in
the database; false otherwisepublic boolean isPending()
true if this message boards thread is pending.isPending in interface MBThreadModelisPending in interface WorkflowedModeltrue if this message boards thread is pending; false otherwisepublic boolean isQuestion()
true if this message boards thread is question.isQuestion in interface MBThreadModeltrue if this message boards thread is question; false otherwisepublic boolean isScheduled()
true if this message boards thread is scheduled.isScheduled in interface MBThreadModelisScheduled in interface WorkflowedModeltrue if this message boards thread is scheduled; false otherwisepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface MBThreadModelgetExpandoBridge in interface BaseModel<MBThread>getExpandoBridge in interface ClassedModelpublic CacheModel<MBThread> toCacheModel()
BaseModeltoCacheModel in interface MBThreadModeltoCacheModel in interface BaseModel<MBThread>public Folder addAttachmentsFolder() throws PortalException
addAttachmentsFolder in interface MBThreadPortalExceptionpublic TrashHandler getTrashHandler()
getTrashHandler in interface MBThreadModelgetTrashHandler in interface TrashedModelpublic TrashEntry getTrashEntry() throws PortalException
getTrashEntry in interface MBThreadModelgetTrashEntry in interface TrashedModelPortalExceptionpublic double getPriority()
getPriority in interface MBThreadModelpublic int compareTo(MBThread mbThread)
compareTo in interface MBThreadModelcompareTo in interface Comparable<MBThread>public int getMessageCount()
getMessageCount in interface MBThreadModelpublic int getStatus()
getStatus in interface MBThreadModelgetStatus in interface TrashedModelgetStatus in interface WorkflowedModelpublic int getViewCount()
getViewCount in interface MBThreadModelpublic int hashCode()
hashCode in interface MBThreadModelhashCode in class Objectpublic Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface MBThreadModelgetPrimaryKeyObj in interface BaseModel<MBThread>getPrimaryKeyObj in interface ClassedModelpublic Object clone()
BaseModelclone in interface MBThreadModelclone in interface BaseModel<MBThread>clone in interface StagedModelclone in class Objectpublic String getContainerModelName()
getContainerModelName in interface MBThreadModelgetContainerModelName in interface ContainerModelpublic String getLastPostByUserUuid()
getLastPostByUserUuid in interface MBThreadModelpublic String getRootMessageUserUuid()
getRootMessageUserUuid in interface MBThreadModelpublic String getStatusByUserName()
getStatusByUserName in interface MBThreadModelgetStatusByUserName in interface WorkflowedModelpublic String getStatusByUserUuid()
getStatusByUserUuid in interface MBThreadModelgetStatusByUserUuid in interface WorkflowedModelpublic String getUserName()
getUserName in interface MBThreadModelgetUserName in interface AuditedModelpublic String getUserUuid()
getUserUuid in interface MBThreadModelgetUserUuid in interface AuditedModelpublic String getUuid()
getUuid in interface MBThreadModelgetUuid in interface StagedModelpublic String toString()
toString in interface MBThreadModeltoString in class Objectpublic String toXmlString()
BaseModeltoXmlString in interface MBThreadModeltoXmlString in interface BaseModel<MBThread>public Date getCreateDate()
getCreateDate in interface MBThreadModelgetCreateDate in interface AuditedModelgetCreateDate in interface StagedModelpublic Date getLastPostDate()
getLastPostDate in interface MBThreadModelpublic Date getLastPublishDate()
getLastPublishDate in interface MBThreadModelgetLastPublishDate in interface StagedGroupedModelpublic Date getModifiedDate()
getModifiedDate in interface MBThreadModelgetModifiedDate in interface AuditedModelgetModifiedDate in interface StagedModelpublic Date getStatusDate()
getStatusDate in interface MBThreadModelgetStatusDate in interface WorkflowedModelpublic long getAttachmentsFolderId()
getAttachmentsFolderId in interface MBThreadpublic long getCategoryId()
getCategoryId in interface MBThreadModelpublic long getCompanyId()
getCompanyId in interface MBThreadModelgetCompanyId in interface AuditedModelgetCompanyId in interface ShardedModelgetCompanyId in interface StagedModelpublic long getContainerModelId()
getContainerModelId in interface MBThreadModelgetContainerModelId in interface ContainerModelpublic long getGroupId()
getGroupId in interface MBThreadModelgetGroupId in interface GroupedModelpublic long getLastPostByUserId()
getLastPostByUserId in interface MBThreadModelpublic long getParentContainerModelId()
getParentContainerModelId in interface MBThreadModelgetParentContainerModelId in interface ContainerModelpublic long getPrimaryKey()
getPrimaryKey in interface MBThreadModelpublic long getRootMessageId()
getRootMessageId in interface MBThreadModelpublic long getRootMessageUserId()
getRootMessageUserId in interface MBThreadModelpublic long getStatusByUserId()
getStatusByUserId in interface MBThreadModelgetStatusByUserId in interface WorkflowedModelpublic long getThreadId()
getThreadId in interface MBThreadModelpublic long getTrashEntryClassPK()
getTrashEntryClassPK in interface MBThreadModelgetTrashEntryClassPK in interface TrashedModelpublic long getUserId()
getUserId in interface MBThreadModelgetUserId in interface AuditedModelpublic long[] getParticipantUserIds()
getParticipantUserIds in interface MBThreadpublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface MBThreadModelsetCachedModel in interface BaseModel<MBThread>cachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setCategoryId(long categoryId)
setCategoryId in interface MBThreadModelcategoryId - the category ID of this message boards threadpublic void setCompanyId(long companyId)
setCompanyId in interface MBThreadModelsetCompanyId in interface AuditedModelsetCompanyId in interface ShardedModelsetCompanyId in interface StagedModelcompanyId - the company ID of this message boards threadpublic void setContainerModelId(long containerModelId)
setContainerModelId in interface MBThreadModelsetContainerModelId in interface ContainerModelcontainerModelId - the container model ID of this message boards threadpublic void setCreateDate(Date createDate)
setCreateDate in interface MBThreadModelsetCreateDate in interface AuditedModelsetCreateDate in interface StagedModelcreateDate - the create date of this message boards threadpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface MBThreadModelsetExpandoBridgeAttributes in interface BaseModel<MBThread>public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface MBThreadModelsetExpandoBridgeAttributes in interface BaseModel<MBThread>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface MBThreadModelsetExpandoBridgeAttributes in interface BaseModel<MBThread>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public void setGroupId(long groupId)
setGroupId in interface MBThreadModelsetGroupId in interface GroupedModelgroupId - the group ID of this message boards threadpublic void setLastPostByUserId(long lastPostByUserId)
setLastPostByUserId in interface MBThreadModellastPostByUserId - the last post by user ID of this message boards threadpublic void setLastPostByUserUuid(String lastPostByUserUuid)
setLastPostByUserUuid in interface MBThreadModellastPostByUserUuid - the last post by user uuid of this message boards threadpublic void setLastPostDate(Date lastPostDate)
setLastPostDate in interface MBThreadModellastPostDate - the last post date of this message boards threadpublic void setLastPublishDate(Date lastPublishDate)
setLastPublishDate in interface MBThreadModelsetLastPublishDate in interface StagedGroupedModellastPublishDate - the last publish date of this message boards threadpublic void setMessageCount(int messageCount)
setMessageCount in interface MBThreadModelmessageCount - the message count of this message boards threadpublic void setModifiedDate(Date modifiedDate)
setModifiedDate in interface MBThreadModelsetModifiedDate in interface AuditedModelsetModifiedDate in interface StagedModelmodifiedDate - the modified date of this message boards threadpublic void setNew(boolean n)
BaseModelsetNew in interface MBThreadModelsetNew in interface BaseModel<MBThread>n - whether this model instance does not yet exist in the databasepublic void setParentContainerModelId(long parentContainerModelId)
setParentContainerModelId in interface MBThreadModelsetParentContainerModelId in interface ContainerModelparentContainerModelId - the parent container model ID of this message boards threadpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface MBThreadModelprimaryKey - the primary key of this message boards threadpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface MBThreadModelsetPrimaryKeyObj in interface BaseModel<MBThread>setPrimaryKeyObj in interface ClassedModelprimaryKeyObj - the primary key of this model instancepublic void setPriority(double priority)
setPriority in interface MBThreadModelpriority - the priority of this message boards threadpublic void setQuestion(boolean question)
setQuestion in interface MBThreadModelquestion - the question of this message boards threadpublic void setRootMessageId(long rootMessageId)
setRootMessageId in interface MBThreadModelrootMessageId - the root message ID of this message boards threadpublic void setRootMessageUserId(long rootMessageUserId)
setRootMessageUserId in interface MBThreadModelrootMessageUserId - the root message user ID of this message boards threadpublic void setRootMessageUserUuid(String rootMessageUserUuid)
setRootMessageUserUuid in interface MBThreadModelrootMessageUserUuid - the root message user uuid of this message boards threadpublic void setStatus(int status)
setStatus in interface MBThreadModelsetStatus in interface WorkflowedModelstatus - the status of this message boards threadpublic void setStatusByUserId(long statusByUserId)
setStatusByUserId in interface MBThreadModelsetStatusByUserId in interface WorkflowedModelstatusByUserId - the status by user ID of this message boards threadpublic void setStatusByUserName(String statusByUserName)
setStatusByUserName in interface MBThreadModelsetStatusByUserName in interface WorkflowedModelstatusByUserName - the status by user name of this message boards threadpublic void setStatusByUserUuid(String statusByUserUuid)
setStatusByUserUuid in interface MBThreadModelsetStatusByUserUuid in interface WorkflowedModelstatusByUserUuid - the status by user uuid of this message boards threadpublic void setStatusDate(Date statusDate)
setStatusDate in interface MBThreadModelsetStatusDate in interface WorkflowedModelstatusDate - the status date of this message boards threadpublic void setThreadId(long threadId)
setThreadId in interface MBThreadModelthreadId - the thread ID of this message boards threadpublic void setUserId(long userId)
setUserId in interface MBThreadModelsetUserId in interface AuditedModeluserId - the user ID of this message boards threadpublic void setUserName(String userName)
setUserName in interface MBThreadModelsetUserName in interface AuditedModeluserName - the user name of this message boards threadpublic void setUserUuid(String userUuid)
setUserUuid in interface MBThreadModelsetUserUuid in interface AuditedModeluserUuid - the user uuid of this message boards threadpublic void setUuid(String uuid)
setUuid in interface MBThreadModelsetUuid in interface StagedModeluuid - the uuid of this message boards threadpublic void setViewCount(int viewCount)
setViewCount in interface MBThreadModelviewCount - the view count of this message boards threadpublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelpublic MBThread getWrappedModel()
getWrappedModel in interface ModelWrapper<MBThread>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<MBThread>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.isFinderCacheEnabled in interface BaseModel<MBThread>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<MBThread>