|
Liferay 6.1.0-ce-ga1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.messageboards.model.MBThreadWrapper
public class MBThreadWrapper
This class is a wrapper for MBThread.
MBThread,
Serialized Form| Constructor Summary | |
|---|---|
MBThreadWrapper(MBThread mbThread)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(MBThread mbThread)
|
boolean |
getApproved()
Deprecated. Renamed to isApproved() |
String |
getAttachmentsDir()
|
long |
getCategoryId()
Returns the category ID of this message boards thread. |
long |
getCompanyId()
Returns the company ID 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. |
Lock |
getLock()
|
int |
getMessageCount()
Returns the message count of this message boards thread. |
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
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. |
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. |
int |
getViewCount()
Returns the view count of this message boards thread. |
MBThread |
getWrappedMBThread()
Deprecated. Renamed to getWrappedModel() |
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 |
isDraft()
Returns true if this message boards thread is a draft. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
boolean |
isExpired()
Returns true if this message boards thread is expired. |
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. |
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 |
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 |
setMessageCount(int messageCount)
Sets the message count of this message boards thread. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
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 |
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()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MBThreadWrapper(MBThread mbThread)
| Method Detail |
|---|
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic long getPrimaryKey()
getPrimaryKey in interface MBThreadModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface MBThreadModelprimaryKey - the primary key of this message boards threadpublic long getThreadId()
getThreadId in interface MBThreadModelpublic void setThreadId(long threadId)
setThreadId in interface MBThreadModelthreadId - the thread ID of this message boards threadpublic long getGroupId()
getGroupId in interface MBThreadModelpublic void setGroupId(long groupId)
setGroupId in interface MBThreadModelgroupId - the group ID of this message boards threadpublic long getCompanyId()
getCompanyId in interface MBThreadModelpublic void setCompanyId(long companyId)
setCompanyId in interface MBThreadModelcompanyId - the company ID of this message boards threadpublic long getCategoryId()
getCategoryId in interface MBThreadModelpublic void setCategoryId(long categoryId)
setCategoryId in interface MBThreadModelcategoryId - the category ID of this message boards threadpublic long getRootMessageId()
getRootMessageId in interface MBThreadModelpublic void setRootMessageId(long rootMessageId)
setRootMessageId in interface MBThreadModelrootMessageId - the root message ID of this message boards threadpublic long getRootMessageUserId()
getRootMessageUserId in interface MBThreadModelpublic void setRootMessageUserId(long rootMessageUserId)
setRootMessageUserId in interface MBThreadModelrootMessageUserId - the root message user ID of this message boards thread
public String getRootMessageUserUuid()
throws SystemException
getRootMessageUserUuid in interface MBThreadModelSystemException - if a system exception occurredpublic void setRootMessageUserUuid(String rootMessageUserUuid)
setRootMessageUserUuid in interface MBThreadModelrootMessageUserUuid - the root message user uuid of this message boards threadpublic int getMessageCount()
getMessageCount in interface MBThreadModelpublic void setMessageCount(int messageCount)
setMessageCount in interface MBThreadModelmessageCount - the message count of this message boards threadpublic int getViewCount()
getViewCount in interface MBThreadModelpublic void setViewCount(int viewCount)
setViewCount in interface MBThreadModelviewCount - the view count of this message boards threadpublic long getLastPostByUserId()
getLastPostByUserId in interface MBThreadModelpublic void setLastPostByUserId(long lastPostByUserId)
setLastPostByUserId in interface MBThreadModellastPostByUserId - the last post by user ID of this message boards thread
public String getLastPostByUserUuid()
throws SystemException
getLastPostByUserUuid in interface MBThreadModelSystemException - if a system exception occurredpublic void setLastPostByUserUuid(String lastPostByUserUuid)
setLastPostByUserUuid in interface MBThreadModellastPostByUserUuid - the last post by user uuid of this message boards threadpublic Date getLastPostDate()
getLastPostDate in interface MBThreadModelpublic void setLastPostDate(Date lastPostDate)
setLastPostDate in interface MBThreadModellastPostDate - the last post date of this message boards threadpublic double getPriority()
getPriority in interface MBThreadModelpublic void setPriority(double priority)
setPriority in interface MBThreadModelpriority - the priority of this message boards threadpublic boolean getQuestion()
getQuestion in interface MBThreadModelpublic boolean isQuestion()
true if this message boards thread is question.
isQuestion in interface MBThreadModeltrue if this message boards thread is question; false otherwisepublic void setQuestion(boolean question)
setQuestion in interface MBThreadModelquestion - the question of this message boards threadpublic int getStatus()
getStatus in interface WorkflowedModelgetStatus in interface MBThreadModelpublic void setStatus(int status)
setStatus in interface WorkflowedModelsetStatus in interface MBThreadModelstatus - the status of this message boards threadpublic long getStatusByUserId()
getStatusByUserId in interface WorkflowedModelgetStatusByUserId in interface MBThreadModelpublic void setStatusByUserId(long statusByUserId)
setStatusByUserId in interface WorkflowedModelsetStatusByUserId in interface MBThreadModelstatusByUserId - the status by user ID of this message boards thread
public String getStatusByUserUuid()
throws SystemException
getStatusByUserUuid in interface MBThreadModelSystemException - if a system exception occurredpublic void setStatusByUserUuid(String statusByUserUuid)
setStatusByUserUuid in interface MBThreadModelstatusByUserUuid - the status by user uuid of this message boards threadpublic String getStatusByUserName()
getStatusByUserName in interface WorkflowedModelgetStatusByUserName in interface MBThreadModelpublic void setStatusByUserName(String statusByUserName)
setStatusByUserName in interface WorkflowedModelsetStatusByUserName in interface MBThreadModelstatusByUserName - the status by user name of this message boards threadpublic Date getStatusDate()
getStatusDate in interface WorkflowedModelgetStatusDate in interface MBThreadModelpublic void setStatusDate(Date statusDate)
setStatusDate in interface WorkflowedModelsetStatusDate in interface MBThreadModelstatusDate - the status date of this message boards threadpublic boolean getApproved()
isApproved()
getApproved in interface MBThreadModelpublic boolean isApproved()
true if this message boards thread is approved.
isApproved in interface WorkflowedModelisApproved in interface MBThreadModeltrue if this message boards thread is approved; false otherwisepublic boolean isDraft()
true if this message boards thread is a draft.
isDraft in interface WorkflowedModelisDraft in interface MBThreadModeltrue if this message boards thread is a draft; false otherwisepublic boolean isExpired()
true if this message boards thread is expired.
isExpired in interface WorkflowedModelisExpired in interface MBThreadModeltrue if this message boards thread is expired; false otherwisepublic boolean isPending()
true if this message boards thread is pending.
isPending in interface WorkflowedModelisPending in interface MBThreadModeltrue if this message boards thread is pending; false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<MBThread>isNew in interface MBThreadModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<MBThread>setNew in interface MBThreadModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<MBThread>isCachedModel in interface MBThreadModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<MBThread>setCachedModel in interface MBThreadModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<MBThread>isEscapedModel in interface MBThreadModeltrue if this model instance is escaped;
false otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<MBThread>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface MBThreadModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<MBThread>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface MBThreadModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<MBThread>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface MBThreadModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<MBThread>setExpandoBridgeAttributes in interface MBThreadModelserviceContext - the service contextServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<MBThread>clone in interface MBThreadModelclone in class Objectpublic int compareTo(MBThread mbThread)
compareTo in interface MBThreadModelcompareTo in interface Comparable<MBThread>public int hashCode()
hashCode in interface MBThreadModelhashCode in class Objectpublic CacheModel<MBThread> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<MBThread>toCacheModel in interface MBThreadModelpublic MBThread toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<MBThread>toEscapedModel in interface MBThreadModelAutoEscapeBeanHandlerpublic String toString()
toString in interface MBThreadModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<MBThread>toXmlString in interface MBThreadModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurredpublic String getAttachmentsDir()
getAttachmentsDir in interface MBThreadpublic Lock getLock()
getLock in interface MBThreadpublic boolean hasLock(long userId)
hasLock in interface MBThreadpublic boolean isLocked()
isLocked in interface MBThreadpublic MBThread getWrappedMBThread()
getWrappedModel()
public MBThread getWrappedModel()
getWrappedModel in interface ModelWrapper<MBThread>public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<MBThread>
|
Liferay 6.1.0-ce-ga1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||