|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.messageboards.model.MBThreadWrapper
public class MBThreadWrapper
This class is a wrapper for MBThread
.
MBThread
,
Serialized FormConstructor Summary | |
---|---|
MBThreadWrapper(MBThread mbThread)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(MBThread mbThread)
|
boolean |
equals(Object obj)
|
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. |
Map<String,Object> |
getModelAttributes()
|
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 |
isDenied()
Returns true if this message boards thread is denied. |
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 |
isInactive()
Returns true if this message boards thread is inactive. |
boolean |
isIncomplete()
Returns true if this message boards thread is incomplete. |
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 |
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 |
setModelAttributes(Map<String,Object> attributes)
|
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()
|
MBThread |
toUnescapedModel()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MBThreadWrapper(MBThread mbThread)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<MBThread>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<MBThread>
public long getPrimaryKey()
getPrimaryKey
in interface MBThreadModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface MBThreadModel
primaryKey
- the primary key of this message boards threadpublic long getThreadId()
getThreadId
in interface MBThreadModel
public void setThreadId(long threadId)
setThreadId
in interface MBThreadModel
threadId
- the thread ID of this message boards threadpublic long getGroupId()
getGroupId
in interface MBThreadModel
public void setGroupId(long groupId)
setGroupId
in interface MBThreadModel
groupId
- the group ID of this message boards threadpublic long getCompanyId()
getCompanyId
in interface MBThreadModel
public void setCompanyId(long companyId)
setCompanyId
in interface MBThreadModel
companyId
- the company ID of this message boards threadpublic long getCategoryId()
getCategoryId
in interface MBThreadModel
public void setCategoryId(long categoryId)
setCategoryId
in interface MBThreadModel
categoryId
- the category ID of this message boards threadpublic long getRootMessageId()
getRootMessageId
in interface MBThreadModel
public void setRootMessageId(long rootMessageId)
setRootMessageId
in interface MBThreadModel
rootMessageId
- the root message ID of this message boards threadpublic long getRootMessageUserId()
getRootMessageUserId
in interface MBThreadModel
public void setRootMessageUserId(long rootMessageUserId)
setRootMessageUserId
in interface MBThreadModel
rootMessageUserId
- the root message user ID of this message boards threadpublic String getRootMessageUserUuid() throws SystemException
getRootMessageUserUuid
in interface MBThreadModel
SystemException
- if a system exception occurredpublic void setRootMessageUserUuid(String rootMessageUserUuid)
setRootMessageUserUuid
in interface MBThreadModel
rootMessageUserUuid
- the root message user uuid of this message boards threadpublic int getMessageCount()
getMessageCount
in interface MBThreadModel
public void setMessageCount(int messageCount)
setMessageCount
in interface MBThreadModel
messageCount
- the message count of this message boards threadpublic int getViewCount()
getViewCount
in interface MBThreadModel
public void setViewCount(int viewCount)
setViewCount
in interface MBThreadModel
viewCount
- the view count of this message boards threadpublic long getLastPostByUserId()
getLastPostByUserId
in interface MBThreadModel
public void setLastPostByUserId(long lastPostByUserId)
setLastPostByUserId
in interface MBThreadModel
lastPostByUserId
- the last post by user ID of this message boards threadpublic String getLastPostByUserUuid() throws SystemException
getLastPostByUserUuid
in interface MBThreadModel
SystemException
- if a system exception occurredpublic void setLastPostByUserUuid(String lastPostByUserUuid)
setLastPostByUserUuid
in interface MBThreadModel
lastPostByUserUuid
- the last post by user uuid of this message boards threadpublic Date getLastPostDate()
getLastPostDate
in interface MBThreadModel
public void setLastPostDate(Date lastPostDate)
setLastPostDate
in interface MBThreadModel
lastPostDate
- the last post date of this message boards threadpublic double getPriority()
getPriority
in interface MBThreadModel
public void setPriority(double priority)
setPriority
in interface MBThreadModel
priority
- the priority of this message boards threadpublic boolean getQuestion()
getQuestion
in interface MBThreadModel
public boolean isQuestion()
true
if this message boards thread is question.
isQuestion
in interface MBThreadModel
true
if this message boards thread is question; false
otherwisepublic void setQuestion(boolean question)
setQuestion
in interface MBThreadModel
question
- the question of this message boards threadpublic int getStatus()
getStatus
in interface WorkflowedModel
getStatus
in interface MBThreadModel
public void setStatus(int status)
setStatus
in interface WorkflowedModel
setStatus
in interface MBThreadModel
status
- the status of this message boards threadpublic long getStatusByUserId()
getStatusByUserId
in interface WorkflowedModel
getStatusByUserId
in interface MBThreadModel
public void setStatusByUserId(long statusByUserId)
setStatusByUserId
in interface WorkflowedModel
setStatusByUserId
in interface MBThreadModel
statusByUserId
- the status by user ID of this message boards threadpublic String getStatusByUserUuid() throws SystemException
getStatusByUserUuid
in interface MBThreadModel
SystemException
- if a system exception occurredpublic void setStatusByUserUuid(String statusByUserUuid)
setStatusByUserUuid
in interface MBThreadModel
statusByUserUuid
- the status by user uuid of this message boards threadpublic String getStatusByUserName()
getStatusByUserName
in interface WorkflowedModel
getStatusByUserName
in interface MBThreadModel
public void setStatusByUserName(String statusByUserName)
setStatusByUserName
in interface WorkflowedModel
setStatusByUserName
in interface MBThreadModel
statusByUserName
- the status by user name of this message boards threadpublic Date getStatusDate()
getStatusDate
in interface WorkflowedModel
getStatusDate
in interface MBThreadModel
public void setStatusDate(Date statusDate)
setStatusDate
in interface WorkflowedModel
setStatusDate
in interface MBThreadModel
statusDate
- the status date of this message boards threadpublic boolean getApproved()
isApproved()
getApproved
in interface MBThreadModel
public boolean isApproved()
true
if this message boards thread is approved.
isApproved
in interface WorkflowedModel
isApproved
in interface MBThreadModel
true
if this message boards thread is approved; false
otherwisepublic boolean isDenied()
true
if this message boards thread is denied.
isDenied
in interface MBThreadModel
true
if this message boards thread is denied; false
otherwisepublic boolean isDraft()
true
if this message boards thread is a draft.
isDraft
in interface WorkflowedModel
isDraft
in interface MBThreadModel
true
if this message boards thread is a draft; false
otherwisepublic boolean isExpired()
true
if this message boards thread is expired.
isExpired
in interface WorkflowedModel
isExpired
in interface MBThreadModel
true
if this message boards thread is expired; false
otherwisepublic boolean isInactive()
true
if this message boards thread is inactive.
isInactive
in interface MBThreadModel
true
if this message boards thread is inactive; false
otherwisepublic boolean isIncomplete()
true
if this message boards thread is incomplete.
isIncomplete
in interface MBThreadModel
true
if this message boards thread is incomplete; false
otherwisepublic boolean isPending()
true
if this message boards thread is pending.
isPending
in interface WorkflowedModel
isPending
in interface MBThreadModel
true
if this message boards thread is pending; false
otherwisepublic boolean isScheduled()
true
if this message boards thread is scheduled.
isScheduled
in interface MBThreadModel
true
if this message boards thread is scheduled; false
otherwisepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<MBThread>
isNew
in interface MBThreadModel
true
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 MBThreadModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<MBThread>
isCachedModel
in interface MBThreadModel
true
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 MBThreadModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<MBThread>
isEscapedModel
in interface MBThreadModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<MBThread>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface MBThreadModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<MBThread>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface MBThreadModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<MBThread>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface MBThreadModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<MBThread>
setExpandoBridgeAttributes
in interface MBThreadModel
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<MBThread>
clone
in interface MBThreadModel
clone
in class Object
public int compareTo(MBThread mbThread)
compareTo
in interface MBThreadModel
compareTo
in interface Comparable<MBThread>
public int hashCode()
hashCode
in interface MBThreadModel
hashCode
in class Object
public CacheModel<MBThread> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<MBThread>
toCacheModel
in interface MBThreadModel
public MBThread toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<MBThread>
toEscapedModel
in interface MBThreadModel
AutoEscapeBeanHandler
public MBThread toUnescapedModel()
toUnescapedModel
in interface BaseModel<MBThread>
toUnescapedModel
in interface MBThreadModel
public String toString()
toString
in interface MBThreadModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<MBThread>
toXmlString
in interface MBThreadModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic String getAttachmentsDir()
getAttachmentsDir
in interface MBThread
public Lock getLock()
getLock
in interface MBThread
public boolean hasLock(long userId)
hasLock
in interface MBThread
public boolean isLocked()
isLocked
in interface MBThread
public boolean equals(Object obj)
equals
in class Object
public MBThread getWrappedMBThread()
getWrappedModel()
public MBThread getWrappedModel()
getWrappedModel
in interface ModelWrapper<MBThread>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<MBThread>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |