|
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.portal.model.impl.BaseModelImpl<MBThread> com.liferay.portlet.messageboards.model.impl.MBThreadModelImpl
@JSON(strict=true) public class MBThreadModelImpl
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
.
MBThreadImpl
,
MBThread
,
MBThreadModel
,
Serialized FormField Summary | |
---|---|
static long |
CATEGORYID_COLUMN_BITMASK
|
static boolean |
COLUMN_BITMASK_ENABLED
|
static String |
DATA_SOURCE
|
static boolean |
ENTITY_CACHE_ENABLED
|
static boolean |
FINDER_CACHE_ENABLED
|
static long |
GROUPID_COLUMN_BITMASK
|
static long |
LASTPOSTDATE_COLUMN_BITMASK
|
static long |
LOCK_EXPIRATION_TIME
|
static String |
ORDER_BY_JPQL
|
static String |
ORDER_BY_SQL
|
static long |
PRIORITY_COLUMN_BITMASK
|
static long |
ROOTMESSAGEID_COLUMN_BITMASK
|
static String |
SESSION_FACTORY
|
static long |
STATUS_COLUMN_BITMASK
|
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)
|
boolean |
getApproved()
Deprecated. isApproved() |
long |
getCategoryId()
Returns the category ID of this message boards thread. |
long |
getColumnBitmask()
|
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. |
int |
getMessageCount()
Returns the message count of this message boards thread. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
long |
getOriginalCategoryId()
|
long |
getOriginalGroupId()
|
Date |
getOriginalLastPostDate()
|
double |
getOriginalPriority()
|
long |
getOriginalRootMessageId()
|
int |
getOriginalStatus()
|
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. |
int |
hashCode()
|
boolean |
isApproved()
Returns true if this message boards thread is approved. |
boolean |
isDenied()
Returns true if this message boards thread is denied. |
boolean |
isDraft()
Returns true if this message boards thread is a draft. |
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 |
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 |
resetOriginalValues()
Reset all original fields to current values. |
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 |
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 . |
static MBThread |
toModel(MBThreadSoap soapModel)
Converts the soap model instance into a normal model instance. |
static List<MBThread> |
toModels(MBThreadSoap[] soapModels)
Converts the soap model instances into normal model instances. |
String |
toString()
|
MBThread |
toUnescapedModel()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
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 |
Field Detail |
---|
public static final String TABLE_NAME
public static final Object[][] TABLE_COLUMNS
public static final String TABLE_SQL_CREATE
public static final String TABLE_SQL_DROP
public static final String ORDER_BY_JPQL
public static final String ORDER_BY_SQL
public static final String DATA_SOURCE
public static final String SESSION_FACTORY
public static final String TX_MANAGER
public static final boolean ENTITY_CACHE_ENABLED
public static final boolean FINDER_CACHE_ENABLED
public static final boolean COLUMN_BITMASK_ENABLED
public static long CATEGORYID_COLUMN_BITMASK
public static long GROUPID_COLUMN_BITMASK
public static long LASTPOSTDATE_COLUMN_BITMASK
public static long PRIORITY_COLUMN_BITMASK
public static long ROOTMESSAGEID_COLUMN_BITMASK
public static long STATUS_COLUMN_BITMASK
public static final long LOCK_EXPIRATION_TIME
Constructor Detail |
---|
public MBThreadModelImpl()
Method Detail |
---|
public static MBThread toModel(MBThreadSoap soapModel)
soapModel
- the soap model instance to convert
public static List<MBThread> toModels(MBThreadSoap[] soapModels)
soapModels
- the soap model instances to convert
public long getPrimaryKey()
MBThreadModel
getPrimaryKey
in interface MBThreadModel
public void setPrimaryKey(long primaryKey)
MBThreadModel
setPrimaryKey
in interface MBThreadModel
primaryKey
- the primary key of this message boards threadpublic 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 Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<MBThread>
getModelAttributes
in class BaseModelImpl<MBThread>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<MBThread>
setModelAttributes
in class BaseModelImpl<MBThread>
@JSON public long getThreadId()
MBThreadModel
getThreadId
in interface MBThreadModel
public void setThreadId(long threadId)
MBThreadModel
setThreadId
in interface MBThreadModel
threadId
- the thread ID of this message boards thread@JSON public long getGroupId()
MBThreadModel
getGroupId
in interface MBThreadModel
public void setGroupId(long groupId)
MBThreadModel
setGroupId
in interface MBThreadModel
groupId
- the group ID of this message boards threadpublic long getOriginalGroupId()
@JSON public long getCompanyId()
MBThreadModel
getCompanyId
in interface MBThreadModel
public void setCompanyId(long companyId)
MBThreadModel
setCompanyId
in interface MBThreadModel
companyId
- the company ID of this message boards thread@JSON public long getCategoryId()
MBThreadModel
getCategoryId
in interface MBThreadModel
public void setCategoryId(long categoryId)
MBThreadModel
setCategoryId
in interface MBThreadModel
categoryId
- the category ID of this message boards threadpublic long getOriginalCategoryId()
@JSON public long getRootMessageId()
MBThreadModel
getRootMessageId
in interface MBThreadModel
public void setRootMessageId(long rootMessageId)
MBThreadModel
setRootMessageId
in interface MBThreadModel
rootMessageId
- the root message ID of this message boards threadpublic long getOriginalRootMessageId()
@JSON public long getRootMessageUserId()
MBThreadModel
getRootMessageUserId
in interface MBThreadModel
public void setRootMessageUserId(long rootMessageUserId)
MBThreadModel
setRootMessageUserId
in interface MBThreadModel
rootMessageUserId
- the root message user ID of this message boards threadpublic String getRootMessageUserUuid() throws SystemException
MBThreadModel
getRootMessageUserUuid
in interface MBThreadModel
SystemException
- if a system exception occurredpublic void setRootMessageUserUuid(String rootMessageUserUuid)
MBThreadModel
setRootMessageUserUuid
in interface MBThreadModel
rootMessageUserUuid
- the root message user uuid of this message boards thread@JSON public int getMessageCount()
MBThreadModel
getMessageCount
in interface MBThreadModel
public void setMessageCount(int messageCount)
MBThreadModel
setMessageCount
in interface MBThreadModel
messageCount
- the message count of this message boards thread@JSON public int getViewCount()
MBThreadModel
getViewCount
in interface MBThreadModel
public void setViewCount(int viewCount)
MBThreadModel
setViewCount
in interface MBThreadModel
viewCount
- the view count of this message boards thread@JSON public long getLastPostByUserId()
MBThreadModel
getLastPostByUserId
in interface MBThreadModel
public void setLastPostByUserId(long lastPostByUserId)
MBThreadModel
setLastPostByUserId
in interface MBThreadModel
lastPostByUserId
- the last post by user ID of this message boards threadpublic String getLastPostByUserUuid() throws SystemException
MBThreadModel
getLastPostByUserUuid
in interface MBThreadModel
SystemException
- if a system exception occurredpublic void setLastPostByUserUuid(String lastPostByUserUuid)
MBThreadModel
setLastPostByUserUuid
in interface MBThreadModel
lastPostByUserUuid
- the last post by user uuid of this message boards thread@JSON public Date getLastPostDate()
MBThreadModel
getLastPostDate
in interface MBThreadModel
public void setLastPostDate(Date lastPostDate)
MBThreadModel
setLastPostDate
in interface MBThreadModel
lastPostDate
- the last post date of this message boards threadpublic Date getOriginalLastPostDate()
@JSON public double getPriority()
MBThreadModel
getPriority
in interface MBThreadModel
public void setPriority(double priority)
MBThreadModel
setPriority
in interface MBThreadModel
priority
- the priority of this message boards threadpublic double getOriginalPriority()
@JSON public boolean getQuestion()
MBThreadModel
getQuestion
in interface MBThreadModel
public boolean isQuestion()
MBThreadModel
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)
MBThreadModel
setQuestion
in interface MBThreadModel
question
- the question of this message boards thread@JSON public int getStatus()
MBThreadModel
getStatus
in interface WorkflowedModel
getStatus
in interface MBThreadModel
public void setStatus(int status)
MBThreadModel
setStatus
in interface WorkflowedModel
setStatus
in interface MBThreadModel
status
- the status of this message boards threadpublic int getOriginalStatus()
@JSON public long getStatusByUserId()
MBThreadModel
getStatusByUserId
in interface WorkflowedModel
getStatusByUserId
in interface MBThreadModel
public void setStatusByUserId(long statusByUserId)
MBThreadModel
setStatusByUserId
in interface WorkflowedModel
setStatusByUserId
in interface MBThreadModel
statusByUserId
- the status by user ID of this message boards threadpublic String getStatusByUserUuid() throws SystemException
MBThreadModel
getStatusByUserUuid
in interface MBThreadModel
SystemException
- if a system exception occurredpublic void setStatusByUserUuid(String statusByUserUuid)
MBThreadModel
setStatusByUserUuid
in interface MBThreadModel
statusByUserUuid
- the status by user uuid of this message boards thread@JSON public String getStatusByUserName()
MBThreadModel
getStatusByUserName
in interface WorkflowedModel
getStatusByUserName
in interface MBThreadModel
public void setStatusByUserName(String statusByUserName)
MBThreadModel
setStatusByUserName
in interface WorkflowedModel
setStatusByUserName
in interface MBThreadModel
statusByUserName
- the status by user name of this message boards thread@JSON public Date getStatusDate()
MBThreadModel
getStatusDate
in interface WorkflowedModel
getStatusDate
in interface MBThreadModel
public void setStatusDate(Date statusDate)
MBThreadModel
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()
MBThreadModel
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()
MBThreadModel
true
if this message boards thread is denied.
isDenied
in interface MBThreadModel
true
if this message boards thread is denied; false
otherwisepublic boolean isDraft()
MBThreadModel
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()
MBThreadModel
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()
MBThreadModel
true
if this message boards thread is inactive.
isInactive
in interface MBThreadModel
true
if this message boards thread is inactive; false
otherwisepublic boolean isIncomplete()
MBThreadModel
true
if this message boards thread is incomplete.
isIncomplete
in interface MBThreadModel
true
if this message boards thread is incomplete; false
otherwisepublic boolean isPending()
MBThreadModel
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()
MBThreadModel
true
if this message boards thread is scheduled.
isScheduled
in interface MBThreadModel
true
if this message boards thread is scheduled; false
otherwisepublic long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<MBThread>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface MBThreadModel
getExpandoBridge
in class BaseModelImpl<MBThread>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<MBThread>
setExpandoBridgeAttributes
in interface MBThreadModel
setExpandoBridgeAttributes
in class BaseModelImpl<MBThread>
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public MBThread toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<MBThread>
toEscapedModel
in interface MBThreadModel
toEscapedModel
in class BaseModelImpl<MBThread>
AutoEscapeBeanHandler
public MBThread toUnescapedModel()
toUnescapedModel
in interface BaseModel<MBThread>
toUnescapedModel
in interface MBThreadModel
toUnescapedModel
in class BaseModelImpl<MBThread>
public Object clone()
BaseModel
clone
in interface BaseModel<MBThread>
clone
in interface MBThreadModel
clone
in class BaseModelImpl<MBThread>
public int compareTo(MBThread mbThread)
compareTo
in interface MBThreadModel
compareTo
in interface Comparable<MBThread>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in interface MBThreadModel
hashCode
in class Object
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<MBThread>
resetOriginalValues
in class BaseModelImpl<MBThread>
public CacheModel<MBThread> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<MBThread>
toCacheModel
in interface MBThreadModel
toCacheModel
in class BaseModelImpl<MBThread>
public String toString()
toString
in interface MBThreadModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<MBThread>
toXmlString
in interface MBThreadModel
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |