Liferay 6.0.3

com.liferay.portlet.messageboards.model.impl
Class MBThreadModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<MBThread>
      extended by com.liferay.portlet.messageboards.model.impl.MBThreadModelImpl
All Implemented Interfaces:
BaseModel<MBThread>, MBThreadModel, Serializable, Cloneable, Comparable<MBThread>
Direct Known Subclasses:
MBThreadImpl

public class MBThreadModelImpl
extends BaseModelImpl<MBThread>
implements MBThreadModel

This interface is a model that represents the MBThread table in the database.

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

Field Summary
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long LOCK_EXPIRATION_TIME
           
static String ORDER_BY_JPQL
           
static String ORDER_BY_SQL
           
static String SESSION_FACTORY
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
 
Constructor Summary
MBThreadModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(MBThread mbThread)
           
 boolean equals(Object obj)
           
 long getCategoryId()
           
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 long getGroupId()
           
 long getLastPostByUserId()
           
 String getLastPostByUserUuid()
           
 Date getLastPostDate()
           
 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()
           
 int hashCode()
           
 boolean isApproved()
           
 boolean isDraft()
           
 boolean isExpired()
           
 boolean isPending()
           
 void setCategoryId(long categoryId)
           
 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 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()
           
static MBThread toModel(MBThreadSoap soapModel)
           
static List<MBThread> toModels(MBThreadSoap[] soapModels)
           
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.messageboards.model.MBThreadModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew
 

Field Detail

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

ORDER_BY_JPQL

public static final String ORDER_BY_JPQL
See Also:
Constant Field Values

ORDER_BY_SQL

public static final String ORDER_BY_SQL
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

MBThreadModelImpl

public MBThreadModelImpl()
Method Detail

toModel

public static MBThread toModel(MBThreadSoap soapModel)

toModels

public static List<MBThread> toModels(MBThreadSoap[] soapModels)

getPrimaryKey

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

setPrimaryKey

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

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

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

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
Overrides:
getExpandoBridge in class BaseModelImpl<MBThread>
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
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<MBThread>
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
Specified by:
clone in class BaseModelImpl<MBThread>
Returns:
the clone

compareTo

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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

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

Liferay 6.0.3