Liferay 6.0.3

com.liferay.portlet.messageboards.model
Class MBThreadWrapper

java.lang.Object
  extended by com.liferay.portlet.messageboards.model.MBThreadWrapper
All Implemented Interfaces:
BaseModel<MBThread>, MBThread, MBThreadModel, Serializable, Cloneable, Comparable<MBThread>

public class MBThreadWrapper
extends Object
implements MBThread

This class is a wrapper for MBThread.

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

Constructor Summary
MBThreadWrapper(MBThread mbThread)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(MBThread mbThread)
           
 String getAttachmentsDir()
           
 long getCategoryId()
           
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 long getGroupId()
           
 long getLastPostByUserId()
           
 String getLastPostByUserUuid()
           
 Date getLastPostDate()
           
 Lock getLock()
           
 int getMessageCount()
           
 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()
           
 long getThreadId()
           
 int getViewCount()
           
 MBThread getWrappedMBThread()
           
 int hashCode()
           
 boolean hasLock(long userId)
           
 boolean isApproved()
           
 boolean isCachedModel()
          Determines if this model instance was retrieved from the entity cache.
 boolean isDraft()
           
 boolean isEscapedModel()
          Determines if this model instance has been wrapped with an HTML auto escape handler.
 boolean isExpired()
           
 boolean isLocked()
           
 boolean isNew()
          Determines if this model instance does not yet exist in the database.
 boolean isPending()
           
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 void setCategoryId(long categoryId)
           
 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 setLastPostByUserId(long lastPostByUserId)
           
 void setLastPostByUserUuid(String lastPostByUserUuid)
           
 void setLastPostDate(Date lastPostDate)
           
 void setMessageCount(int messageCount)
           
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 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 setThreadId(long threadId)
           
 void setViewCount(int viewCount)
           
 MBThread 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

MBThreadWrapper

public MBThreadWrapper(MBThread mbThread)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Specified by:
getPrimaryKey in interface MBThreadModel

setPrimaryKey

public void setPrimaryKey(long pk)
Specified by:
setPrimaryKey in interface MBThreadModel

getThreadId

public long getThreadId()
Specified by:
getThreadId in interface MBThreadModel

setThreadId

public void setThreadId(long threadId)
Specified by:
setThreadId in interface MBThreadModel

getGroupId

public long getGroupId()
Specified by:
getGroupId in interface MBThreadModel

setGroupId

public void setGroupId(long groupId)
Specified by:
setGroupId in interface MBThreadModel

getCategoryId

public long getCategoryId()
Specified by:
getCategoryId in interface MBThreadModel

setCategoryId

public void setCategoryId(long categoryId)
Specified by:
setCategoryId in interface MBThreadModel

getRootMessageId

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

setRootMessageId

public void setRootMessageId(long rootMessageId)
Specified by:
setRootMessageId in interface MBThreadModel

getMessageCount

public int getMessageCount()
Specified by:
getMessageCount in interface MBThreadModel

setMessageCount

public void setMessageCount(int messageCount)
Specified by:
setMessageCount in interface MBThreadModel

getViewCount

public int getViewCount()
Specified by:
getViewCount in interface MBThreadModel

setViewCount

public void setViewCount(int viewCount)
Specified by:
setViewCount in interface MBThreadModel

getLastPostByUserId

public long getLastPostByUserId()
Specified by:
getLastPostByUserId in interface MBThreadModel

setLastPostByUserId

public void setLastPostByUserId(long lastPostByUserId)
Specified by:
setLastPostByUserId in interface MBThreadModel

getLastPostByUserUuid

public String getLastPostByUserUuid()
                             throws SystemException
Specified by:
getLastPostByUserUuid in interface MBThreadModel
Throws:
SystemException

setLastPostByUserUuid

public void setLastPostByUserUuid(String lastPostByUserUuid)
Specified by:
setLastPostByUserUuid in interface MBThreadModel

getLastPostDate

public Date getLastPostDate()
Specified by:
getLastPostDate in interface MBThreadModel

setLastPostDate

public void setLastPostDate(Date lastPostDate)
Specified by:
setLastPostDate in interface MBThreadModel

getPriority

public double getPriority()
Specified by:
getPriority in interface MBThreadModel

setPriority

public void setPriority(double priority)
Specified by:
setPriority in interface MBThreadModel

getStatus

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

setStatus

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

getStatusByUserId

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

setStatusByUserId

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

getStatusByUserUuid

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

setStatusByUserUuid

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

getStatusByUserName

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

setStatusByUserName

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

getStatusDate

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

setStatusDate

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

isApproved

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

isDraft

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

isExpired

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

isPending

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

toEscapedModel

public MBThread toEscapedModel()
Specified by:
toEscapedModel in interface MBThreadModel

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<MBThread>
Specified by:
isNew in interface MBThreadModel
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<MBThread>
Specified by:
setNew in interface MBThreadModel
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<MBThread>
Specified by:
isCachedModel in interface MBThreadModel
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<MBThread>
Specified by:
setCachedModel in interface MBThreadModel
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<MBThread>
Specified by:
isEscapedModel in interface MBThreadModel
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<MBThread>
Specified by:
setEscapedModel in interface MBThreadModel
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<MBThread>
Specified by:
getPrimaryKeyObj in interface MBThreadModel
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<MBThread>
Specified by:
getExpandoBridge in interface MBThreadModel
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<MBThread>
Specified by:
setExpandoBridgeAttributes in interface MBThreadModel
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<MBThread>
Specified by:
clone in interface MBThreadModel
Overrides:
clone in class Object
Returns:
the clone

compareTo

public int compareTo(MBThread mbThread)
Specified by:
compareTo in interface MBThreadModel
Specified by:
compareTo in interface Comparable<MBThread>

hashCode

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

toString

public String toString()
Specified by:
toString in interface MBThreadModel
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<MBThread>
Specified by:
toXmlString in interface MBThreadModel
Returns:
the XML representation of this model instance

getAttachmentsDir

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

getLock

public Lock getLock()
Specified by:
getLock in interface MBThread

hasLock

public boolean hasLock(long userId)
Specified by:
hasLock in interface MBThread

isLocked

public boolean isLocked()
Specified by:
isLocked in interface MBThread

getWrappedMBThread

public MBThread getWrappedMBThread()

Liferay 6.0.3