com.liferay.portlet.messageboards.model.impl
Class MBThreadModelImpl
java.lang.Object
com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portlet.messageboards.model.MBThread>
com.liferay.portlet.messageboards.model.impl.MBThreadModelImpl
- All Implemented Interfaces:
- com.liferay.portal.model.BaseModel<com.liferay.portlet.messageboards.model.MBThread>, com.liferay.portal.model.ClassedModel, com.liferay.portal.model.WorkflowedModel, com.liferay.portlet.messageboards.model.MBThreadModel, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<com.liferay.portlet.messageboards.model.MBThread>
- Direct Known Subclasses:
- MBThreadBaseImpl
@JSON(strict=true)
public class MBThreadModelImpl
- extends com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portlet.messageboards.model.MBThread>
- implements com.liferay.portlet.messageboards.model.MBThreadModel
The base model implementation for the MBThread service. Represents a row in the "MBThread" database table, with each column mapped to a property of this class.
This implementation and its corresponding interface MBThreadModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in MBThreadImpl.
- Author:
- Brian Wing Shun Chan
- See Also:
MBThreadImpl,
MBThread,
MBThreadModel,
Serialized Form- Generated:
| Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl |
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, 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, setNew |
TABLE_NAME
public static final java.lang.String TABLE_NAME
- See Also:
- Constant Field Values
TABLE_COLUMNS
public static final java.lang.Object[][] TABLE_COLUMNS
TABLE_SQL_CREATE
public static final java.lang.String TABLE_SQL_CREATE
- See Also:
- Constant Field Values
TABLE_SQL_DROP
public static final java.lang.String TABLE_SQL_DROP
- See Also:
- Constant Field Values
ORDER_BY_JPQL
public static final java.lang.String ORDER_BY_JPQL
- See Also:
- Constant Field Values
ORDER_BY_SQL
public static final java.lang.String ORDER_BY_SQL
- See Also:
- Constant Field Values
DATA_SOURCE
public static final java.lang.String DATA_SOURCE
- See Also:
- Constant Field Values
SESSION_FACTORY
public static final java.lang.String SESSION_FACTORY
- See Also:
- Constant Field Values
TX_MANAGER
public static final java.lang.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
COLUMN_BITMASK_ENABLED
public static final boolean COLUMN_BITMASK_ENABLED
CATEGORYID_COLUMN_BITMASK
public static long CATEGORYID_COLUMN_BITMASK
GROUPID_COLUMN_BITMASK
public static long GROUPID_COLUMN_BITMASK
LASTPOSTDATE_COLUMN_BITMASK
public static long LASTPOSTDATE_COLUMN_BITMASK
PRIORITY_COLUMN_BITMASK
public static long PRIORITY_COLUMN_BITMASK
ROOTMESSAGEID_COLUMN_BITMASK
public static long ROOTMESSAGEID_COLUMN_BITMASK
STATUS_COLUMN_BITMASK
public static long STATUS_COLUMN_BITMASK
LOCK_EXPIRATION_TIME
public static final long LOCK_EXPIRATION_TIME
MBThreadModelImpl
public MBThreadModelImpl()
toModel
public static com.liferay.portlet.messageboards.model.MBThread toModel(com.liferay.portlet.messageboards.model.MBThreadSoap soapModel)
- Converts the soap model instance into a normal model instance.
- Parameters:
soapModel - the soap model instance to convert
- Returns:
- the normal model instance
toModels
public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> toModels(com.liferay.portlet.messageboards.model.MBThreadSoap[] soapModels)
- Converts the soap model instances into normal model instances.
- Parameters:
soapModels - the soap model instances to convert
- Returns:
- the normal model instances
getPrimaryKey
public long getPrimaryKey()
- Specified by:
getPrimaryKey in interface com.liferay.portlet.messageboards.model.MBThreadModel
setPrimaryKey
public void setPrimaryKey(long primaryKey)
- Specified by:
setPrimaryKey in interface com.liferay.portlet.messageboards.model.MBThreadModel
getPrimaryKeyObj
public java.io.Serializable getPrimaryKeyObj()
- Specified by:
getPrimaryKeyObj in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.messageboards.model.MBThread>- Specified by:
getPrimaryKeyObj in interface com.liferay.portal.model.ClassedModel- Specified by:
getPrimaryKeyObj in interface com.liferay.portlet.messageboards.model.MBThreadModel
setPrimaryKeyObj
public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
- Specified by:
setPrimaryKeyObj in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.messageboards.model.MBThread>- Specified by:
setPrimaryKeyObj in interface com.liferay.portal.model.ClassedModel- Specified by:
setPrimaryKeyObj in interface com.liferay.portlet.messageboards.model.MBThreadModel
getModelClass
public java.lang.Class<?> getModelClass()
- Specified by:
getModelClass in interface com.liferay.portal.model.ClassedModel
getModelClassName
public java.lang.String getModelClassName()
- Specified by:
getModelClassName in interface com.liferay.portal.model.ClassedModel
getThreadId
@JSON
public long getThreadId()
- Specified by:
getThreadId in interface com.liferay.portlet.messageboards.model.MBThreadModel
setThreadId
public void setThreadId(long threadId)
- Specified by:
setThreadId in interface com.liferay.portlet.messageboards.model.MBThreadModel
getGroupId
@JSON
public long getGroupId()
- Specified by:
getGroupId in interface com.liferay.portlet.messageboards.model.MBThreadModel
setGroupId
public void setGroupId(long groupId)
- Specified by:
setGroupId in interface com.liferay.portlet.messageboards.model.MBThreadModel
getOriginalGroupId
public long getOriginalGroupId()
getCompanyId
@JSON
public long getCompanyId()
- Specified by:
getCompanyId in interface com.liferay.portlet.messageboards.model.MBThreadModel
setCompanyId
public void setCompanyId(long companyId)
- Specified by:
setCompanyId in interface com.liferay.portlet.messageboards.model.MBThreadModel
getCategoryId
@JSON
public long getCategoryId()
- Specified by:
getCategoryId in interface com.liferay.portlet.messageboards.model.MBThreadModel
setCategoryId
public void setCategoryId(long categoryId)
- Specified by:
setCategoryId in interface com.liferay.portlet.messageboards.model.MBThreadModel
getOriginalCategoryId
public long getOriginalCategoryId()
getRootMessageId
@JSON
public long getRootMessageId()
- Specified by:
getRootMessageId in interface com.liferay.portlet.messageboards.model.MBThreadModel
setRootMessageId
public void setRootMessageId(long rootMessageId)
- Specified by:
setRootMessageId in interface com.liferay.portlet.messageboards.model.MBThreadModel
getOriginalRootMessageId
public long getOriginalRootMessageId()
getRootMessageUserId
@JSON
public long getRootMessageUserId()
- Specified by:
getRootMessageUserId in interface com.liferay.portlet.messageboards.model.MBThreadModel
setRootMessageUserId
public void setRootMessageUserId(long rootMessageUserId)
- Specified by:
setRootMessageUserId in interface com.liferay.portlet.messageboards.model.MBThreadModel
getRootMessageUserUuid
public java.lang.String getRootMessageUserUuid()
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getRootMessageUserUuid in interface com.liferay.portlet.messageboards.model.MBThreadModel
- Throws:
com.liferay.portal.kernel.exception.SystemException
setRootMessageUserUuid
public void setRootMessageUserUuid(java.lang.String rootMessageUserUuid)
- Specified by:
setRootMessageUserUuid in interface com.liferay.portlet.messageboards.model.MBThreadModel
getMessageCount
@JSON
public int getMessageCount()
- Specified by:
getMessageCount in interface com.liferay.portlet.messageboards.model.MBThreadModel
setMessageCount
public void setMessageCount(int messageCount)
- Specified by:
setMessageCount in interface com.liferay.portlet.messageboards.model.MBThreadModel
getViewCount
@JSON
public int getViewCount()
- Specified by:
getViewCount in interface com.liferay.portlet.messageboards.model.MBThreadModel
setViewCount
public void setViewCount(int viewCount)
- Specified by:
setViewCount in interface com.liferay.portlet.messageboards.model.MBThreadModel
getLastPostByUserId
@JSON
public long getLastPostByUserId()
- Specified by:
getLastPostByUserId in interface com.liferay.portlet.messageboards.model.MBThreadModel
setLastPostByUserId
public void setLastPostByUserId(long lastPostByUserId)
- Specified by:
setLastPostByUserId in interface com.liferay.portlet.messageboards.model.MBThreadModel
getLastPostByUserUuid
public java.lang.String getLastPostByUserUuid()
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getLastPostByUserUuid in interface com.liferay.portlet.messageboards.model.MBThreadModel
- Throws:
com.liferay.portal.kernel.exception.SystemException
setLastPostByUserUuid
public void setLastPostByUserUuid(java.lang.String lastPostByUserUuid)
- Specified by:
setLastPostByUserUuid in interface com.liferay.portlet.messageboards.model.MBThreadModel
getLastPostDate
@JSON
public java.util.Date getLastPostDate()
- Specified by:
getLastPostDate in interface com.liferay.portlet.messageboards.model.MBThreadModel
setLastPostDate
public void setLastPostDate(java.util.Date lastPostDate)
- Specified by:
setLastPostDate in interface com.liferay.portlet.messageboards.model.MBThreadModel
getOriginalLastPostDate
public java.util.Date getOriginalLastPostDate()
getPriority
@JSON
public double getPriority()
- Specified by:
getPriority in interface com.liferay.portlet.messageboards.model.MBThreadModel
setPriority
public void setPriority(double priority)
- Specified by:
setPriority in interface com.liferay.portlet.messageboards.model.MBThreadModel
getOriginalPriority
public double getOriginalPriority()
getQuestion
@JSON
public boolean getQuestion()
- Specified by:
getQuestion in interface com.liferay.portlet.messageboards.model.MBThreadModel
isQuestion
public boolean isQuestion()
- Specified by:
isQuestion in interface com.liferay.portlet.messageboards.model.MBThreadModel
setQuestion
public void setQuestion(boolean question)
- Specified by:
setQuestion in interface com.liferay.portlet.messageboards.model.MBThreadModel
getStatus
@JSON
public int getStatus()
- Specified by:
getStatus in interface com.liferay.portal.model.WorkflowedModel- Specified by:
getStatus in interface com.liferay.portlet.messageboards.model.MBThreadModel
setStatus
public void setStatus(int status)
- Specified by:
setStatus in interface com.liferay.portal.model.WorkflowedModel- Specified by:
setStatus in interface com.liferay.portlet.messageboards.model.MBThreadModel
getOriginalStatus
public int getOriginalStatus()
getStatusByUserId
@JSON
public long getStatusByUserId()
- Specified by:
getStatusByUserId in interface com.liferay.portal.model.WorkflowedModel- Specified by:
getStatusByUserId in interface com.liferay.portlet.messageboards.model.MBThreadModel
setStatusByUserId
public void setStatusByUserId(long statusByUserId)
- Specified by:
setStatusByUserId in interface com.liferay.portal.model.WorkflowedModel- Specified by:
setStatusByUserId in interface com.liferay.portlet.messageboards.model.MBThreadModel
getStatusByUserUuid
public java.lang.String getStatusByUserUuid()
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getStatusByUserUuid in interface com.liferay.portlet.messageboards.model.MBThreadModel
- Throws:
com.liferay.portal.kernel.exception.SystemException
setStatusByUserUuid
public void setStatusByUserUuid(java.lang.String statusByUserUuid)
- Specified by:
setStatusByUserUuid in interface com.liferay.portlet.messageboards.model.MBThreadModel
getStatusByUserName
@JSON
public java.lang.String getStatusByUserName()
- Specified by:
getStatusByUserName in interface com.liferay.portal.model.WorkflowedModel- Specified by:
getStatusByUserName in interface com.liferay.portlet.messageboards.model.MBThreadModel
setStatusByUserName
public void setStatusByUserName(java.lang.String statusByUserName)
- Specified by:
setStatusByUserName in interface com.liferay.portal.model.WorkflowedModel- Specified by:
setStatusByUserName in interface com.liferay.portlet.messageboards.model.MBThreadModel
getStatusDate
@JSON
public java.util.Date getStatusDate()
- Specified by:
getStatusDate in interface com.liferay.portal.model.WorkflowedModel- Specified by:
getStatusDate in interface com.liferay.portlet.messageboards.model.MBThreadModel
setStatusDate
public void setStatusDate(java.util.Date statusDate)
- Specified by:
setStatusDate in interface com.liferay.portal.model.WorkflowedModel- Specified by:
setStatusDate in interface com.liferay.portlet.messageboards.model.MBThreadModel
getApproved
public boolean getApproved()
- Deprecated.
isApproved()
- Specified by:
getApproved in interface com.liferay.portlet.messageboards.model.MBThreadModel
isApproved
public boolean isApproved()
- Specified by:
isApproved in interface com.liferay.portal.model.WorkflowedModel- Specified by:
isApproved in interface com.liferay.portlet.messageboards.model.MBThreadModel
isDraft
public boolean isDraft()
- Specified by:
isDraft in interface com.liferay.portal.model.WorkflowedModel- Specified by:
isDraft in interface com.liferay.portlet.messageboards.model.MBThreadModel
isExpired
public boolean isExpired()
- Specified by:
isExpired in interface com.liferay.portal.model.WorkflowedModel- Specified by:
isExpired in interface com.liferay.portlet.messageboards.model.MBThreadModel
isPending
public boolean isPending()
- Specified by:
isPending in interface com.liferay.portal.model.WorkflowedModel- Specified by:
isPending in interface com.liferay.portlet.messageboards.model.MBThreadModel
getColumnBitmask
public long getColumnBitmask()
toEscapedModel
public com.liferay.portlet.messageboards.model.MBThread toEscapedModel()
- Specified by:
toEscapedModel in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.messageboards.model.MBThread>- Specified by:
toEscapedModel in interface com.liferay.portlet.messageboards.model.MBThreadModel- Overrides:
toEscapedModel in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portlet.messageboards.model.MBThread>
getExpandoBridge
public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge()
- Specified by:
getExpandoBridge in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.messageboards.model.MBThread>- Specified by:
getExpandoBridge in interface com.liferay.portal.model.ClassedModel- Specified by:
getExpandoBridge in interface com.liferay.portlet.messageboards.model.MBThreadModel- Overrides:
getExpandoBridge in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portlet.messageboards.model.MBThread>
setExpandoBridgeAttributes
public void setExpandoBridgeAttributes(com.liferay.portal.service.ServiceContext serviceContext)
- Specified by:
setExpandoBridgeAttributes in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.messageboards.model.MBThread>- Specified by:
setExpandoBridgeAttributes in interface com.liferay.portlet.messageboards.model.MBThreadModel- Overrides:
setExpandoBridgeAttributes in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portlet.messageboards.model.MBThread>
clone
public java.lang.Object clone()
- Specified by:
clone in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.messageboards.model.MBThread>- Specified by:
clone in interface com.liferay.portlet.messageboards.model.MBThreadModel- Specified by:
clone in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portlet.messageboards.model.MBThread>
compareTo
public int compareTo(com.liferay.portlet.messageboards.model.MBThread mbThread)
- Specified by:
compareTo in interface com.liferay.portlet.messageboards.model.MBThreadModel- Specified by:
compareTo in interface java.lang.Comparable<com.liferay.portlet.messageboards.model.MBThread>
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Specified by:
hashCode in interface com.liferay.portlet.messageboards.model.MBThreadModel- Overrides:
hashCode in class java.lang.Object
resetOriginalValues
public void resetOriginalValues()
- Specified by:
resetOriginalValues in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.messageboards.model.MBThread>- Overrides:
resetOriginalValues in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portlet.messageboards.model.MBThread>
toCacheModel
public com.liferay.portal.model.CacheModel<com.liferay.portlet.messageboards.model.MBThread> toCacheModel()
- Specified by:
toCacheModel in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.messageboards.model.MBThread>- Specified by:
toCacheModel in interface com.liferay.portlet.messageboards.model.MBThreadModel- Overrides:
toCacheModel in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portlet.messageboards.model.MBThread>
toString
public java.lang.String toString()
- Specified by:
toString in interface com.liferay.portlet.messageboards.model.MBThreadModel- Overrides:
toString in class java.lang.Object
toXmlString
public java.lang.String toXmlString()
- Specified by:
toXmlString in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.messageboards.model.MBThread>- Specified by:
toXmlString in interface com.liferay.portlet.messageboards.model.MBThreadModel