|
Liferay 6.1.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.impl.BaseModelImpl<MBMessage>
com.liferay.portlet.messageboards.model.impl.MBMessageModelImpl
@JSON(strict=true) public class MBMessageModelImpl
The base model implementation for the MBMessage service. Represents a row in the "MBMessage" database table, with each column mapped to a property of this class.
This implementation and its corresponding interface MBMessageModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in MBMessageImpl.
MBMessageImpl,
MBMessage,
MBMessageModel,
Serialized Form| Field Summary | |
|---|---|
static long |
ANSWER_COLUMN_BITMASK
|
static long |
CATEGORYID_COLUMN_BITMASK
|
static long |
CLASSNAMEID_COLUMN_BITMASK
|
static long |
CLASSPK_COLUMN_BITMASK
|
static boolean |
COLUMN_BITMASK_ENABLED
|
static long |
COMPANYID_COLUMN_BITMASK
|
static String |
DATA_SOURCE
|
static boolean |
ENTITY_CACHE_ENABLED
|
static boolean |
FINDER_CACHE_ENABLED
|
static long |
GROUPID_COLUMN_BITMASK
|
static long |
LOCK_EXPIRATION_TIME
|
static String |
ORDER_BY_JPQL
|
static String |
ORDER_BY_SQL
|
static long |
PARENTMESSAGEID_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 long |
THREADID_COLUMN_BITMASK
|
static String |
TX_MANAGER
|
static long |
USERID_COLUMN_BITMASK
|
static long |
UUID_COLUMN_BITMASK
|
| Constructor Summary | |
|---|---|
MBMessageModelImpl()
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(MBMessage mbMessage)
|
boolean |
equals(Object obj)
|
boolean |
getAllowPingbacks()
Returns the allow pingbacks of this message-boards message. |
boolean |
getAnonymous()
Returns the anonymous of this message-boards message. |
boolean |
getAnswer()
Returns the answer of this message-boards message. |
boolean |
getApproved()
Deprecated. isApproved() |
boolean |
getAttachments()
Returns the attachments of this message-boards message. |
String |
getBody()
Returns the body of this message-boards message. |
long |
getCategoryId()
Returns the category ID of this message-boards message. |
String |
getClassName()
Returns the fully qualified class name of this message-boards message. |
long |
getClassNameId()
Returns the class name ID of this message-boards message. |
long |
getClassPK()
Returns the class p k of this message-boards message. |
long |
getColumnBitmask()
|
long |
getCompanyId()
Returns the company ID of this message-boards message. |
Date |
getCreateDate()
Returns the create date of this message-boards message. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
String |
getFormat()
Returns the format of this message-boards message. |
long |
getGroupId()
Returns the group ID of this message-boards message. |
long |
getMessageId()
Returns the message ID of this message-boards message. |
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
Returns the modified date of this message-boards message. |
boolean |
getOriginalAnswer()
|
long |
getOriginalCategoryId()
|
long |
getOriginalClassNameId()
|
long |
getOriginalClassPK()
|
long |
getOriginalCompanyId()
|
long |
getOriginalGroupId()
|
long |
getOriginalParentMessageId()
|
int |
getOriginalStatus()
|
long |
getOriginalThreadId()
|
long |
getOriginalUserId()
|
String |
getOriginalUuid()
|
long |
getParentMessageId()
Returns the parent message ID of this message-boards message. |
long |
getPrimaryKey()
Returns the primary key of this message-boards message. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
double |
getPriority()
Returns the priority of this message-boards message. |
long |
getRootMessageId()
Returns the root message ID of this message-boards message. |
int |
getStatus()
Returns the status of this message-boards message. |
long |
getStatusByUserId()
Returns the status by user ID of this message-boards message. |
String |
getStatusByUserName()
Returns the status by user name of this message-boards message. |
String |
getStatusByUserUuid()
Returns the status by user uuid of this message-boards message. |
Date |
getStatusDate()
Returns the status date of this message-boards message. |
String |
getSubject()
Returns the subject of this message-boards message. |
long |
getThreadId()
Returns the thread ID of this message-boards message. |
long |
getUserId()
Returns the user ID of this message-boards message. |
String |
getUserName()
Returns the user name of this message-boards message. |
String |
getUserUuid()
Returns the user uuid of this message-boards message. |
String |
getUuid()
Returns the uuid of this message-boards message. |
int |
hashCode()
|
boolean |
isAllowPingbacks()
Returns true if this message-boards message is allow pingbacks. |
boolean |
isAnonymous()
Returns true if this message-boards message is anonymous. |
boolean |
isAnswer()
Returns true if this message-boards message is answer. |
boolean |
isApproved()
Returns true if this message-boards message is approved. |
boolean |
isAttachments()
Returns true if this message-boards message is attachments. |
boolean |
isDraft()
Returns true if this message-boards message is a draft. |
boolean |
isExpired()
Returns true if this message-boards message is expired. |
boolean |
isPending()
Returns true if this message-boards message is pending. |
void |
resetOriginalValues()
Reset all original fields to current values. |
void |
setAllowPingbacks(boolean allowPingbacks)
Sets whether this message-boards message is allow pingbacks. |
void |
setAnonymous(boolean anonymous)
Sets whether this message-boards message is anonymous. |
void |
setAnswer(boolean answer)
Sets whether this message-boards message is answer. |
void |
setAttachments(boolean attachments)
Sets whether this message-boards message is attachments. |
void |
setBody(String body)
Sets the body of this message-boards message. |
void |
setCategoryId(long categoryId)
Sets the category ID of this message-boards message. |
void |
setClassNameId(long classNameId)
Sets the class name ID of this message-boards message. |
void |
setClassPK(long classPK)
Sets the class p k of this message-boards message. |
void |
setCompanyId(long companyId)
Sets the company ID of this message-boards message. |
void |
setCreateDate(Date createDate)
Sets the create date of this message-boards message. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setFormat(String format)
Sets the format of this message-boards message. |
void |
setGroupId(long groupId)
Sets the group ID of this message-boards message. |
void |
setMessageId(long messageId)
Sets the message ID of this message-boards message. |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this message-boards message. |
void |
setParentMessageId(long parentMessageId)
Sets the parent message ID of this message-boards message. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this message-boards message. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setPriority(double priority)
Sets the priority of this message-boards message. |
void |
setRootMessageId(long rootMessageId)
Sets the root message ID of this message-boards message. |
void |
setStatus(int status)
Sets the status of this message-boards message. |
void |
setStatusByUserId(long statusByUserId)
Sets the status by user ID of this message-boards message. |
void |
setStatusByUserName(String statusByUserName)
Sets the status by user name of this message-boards message. |
void |
setStatusByUserUuid(String statusByUserUuid)
Sets the status by user uuid of this message-boards message. |
void |
setStatusDate(Date statusDate)
Sets the status date of this message-boards message. |
void |
setSubject(String subject)
Sets the subject of this message-boards message. |
void |
setThreadId(long threadId)
Sets the thread ID of this message-boards message. |
void |
setUserId(long userId)
Sets the user ID of this message-boards message. |
void |
setUserName(String userName)
Sets the user name of this message-boards message. |
void |
setUserUuid(String userUuid)
Sets the user uuid of this message-boards message. |
void |
setUuid(String uuid)
Sets the uuid of this message-boards message. |
CacheModel<MBMessage> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
MBMessage |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
static MBMessage |
toModel(MBMessageSoap soapModel)
Converts the soap model instance into a normal model instance. |
static List<MBMessage> |
toModels(MBMessageSoap[] soapModels)
Converts the soap model instances into normal model instances. |
String |
toString()
|
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.MBMessageModel |
|---|
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 ANSWER_COLUMN_BITMASK
public static long CATEGORYID_COLUMN_BITMASK
public static long CLASSNAMEID_COLUMN_BITMASK
public static long CLASSPK_COLUMN_BITMASK
public static long COMPANYID_COLUMN_BITMASK
public static long GROUPID_COLUMN_BITMASK
public static long PARENTMESSAGEID_COLUMN_BITMASK
public static long STATUS_COLUMN_BITMASK
public static long THREADID_COLUMN_BITMASK
public static long USERID_COLUMN_BITMASK
public static long UUID_COLUMN_BITMASK
public static final long LOCK_EXPIRATION_TIME
| Constructor Detail |
|---|
public MBMessageModelImpl()
| Method Detail |
|---|
public static MBMessage toModel(MBMessageSoap soapModel)
soapModel - the soap model instance to convert
public static List<MBMessage> toModels(MBMessageSoap[] soapModels)
soapModels - the soap model instances to convert
public long getPrimaryKey()
MBMessageModel
getPrimaryKey in interface MBMessageModelpublic void setPrimaryKey(long primaryKey)
MBMessageModel
setPrimaryKey in interface MBMessageModelprimaryKey - the primary key of this message-boards messagepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<MBMessage>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface MBMessageModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<MBMessage>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface MBMessageModelprimaryKeyObj - the primary key of this model instancepublic Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModel@JSON public String getUuid()
MBMessageModel
getUuid in interface MBMessageModelpublic void setUuid(String uuid)
MBMessageModel
setUuid in interface MBMessageModeluuid - the uuid of this message-boards messagepublic String getOriginalUuid()
@JSON public long getMessageId()
MBMessageModel
getMessageId in interface MBMessageModelpublic void setMessageId(long messageId)
MBMessageModel
setMessageId in interface MBMessageModelmessageId - the message ID of this message-boards message@JSON public long getGroupId()
MBMessageModel
getGroupId in interface GroupedModelgetGroupId in interface MBMessageModelpublic void setGroupId(long groupId)
MBMessageModel
setGroupId in interface GroupedModelsetGroupId in interface MBMessageModelgroupId - the group ID of this message-boards messagepublic long getOriginalGroupId()
@JSON public long getCompanyId()
MBMessageModel
getCompanyId in interface AuditedModelgetCompanyId in interface MBMessageModelpublic void setCompanyId(long companyId)
MBMessageModel
setCompanyId in interface AuditedModelsetCompanyId in interface MBMessageModelcompanyId - the company ID of this message-boards messagepublic long getOriginalCompanyId()
@JSON public long getUserId()
MBMessageModel
getUserId in interface AuditedModelgetUserId in interface MBMessageModelpublic void setUserId(long userId)
MBMessageModel
setUserId in interface AuditedModelsetUserId in interface MBMessageModeluserId - the user ID of this message-boards message
public String getUserUuid()
throws SystemException
MBMessageModel
getUserUuid in interface AuditedModelgetUserUuid in interface MBMessageModelSystemException - if a system exception occurredpublic void setUserUuid(String userUuid)
MBMessageModel
setUserUuid in interface AuditedModelsetUserUuid in interface MBMessageModeluserUuid - the user uuid of this message-boards messagepublic long getOriginalUserId()
@JSON public String getUserName()
MBMessageModel
getUserName in interface AuditedModelgetUserName in interface MBMessageModelpublic void setUserName(String userName)
MBMessageModel
setUserName in interface AuditedModelsetUserName in interface MBMessageModeluserName - the user name of this message-boards message@JSON public Date getCreateDate()
MBMessageModel
getCreateDate in interface AuditedModelgetCreateDate in interface MBMessageModelpublic void setCreateDate(Date createDate)
MBMessageModel
setCreateDate in interface AuditedModelsetCreateDate in interface MBMessageModelcreateDate - the create date of this message-boards message@JSON public Date getModifiedDate()
MBMessageModel
getModifiedDate in interface AuditedModelgetModifiedDate in interface MBMessageModelpublic void setModifiedDate(Date modifiedDate)
MBMessageModel
setModifiedDate in interface AuditedModelsetModifiedDate in interface MBMessageModelmodifiedDate - the modified date of this message-boards messagepublic String getClassName()
MBMessageModel
getClassName in interface AttachedModelgetClassName in interface MBMessageModel@JSON public long getClassNameId()
MBMessageModel
getClassNameId in interface AttachedModelgetClassNameId in interface MBMessageModelpublic void setClassNameId(long classNameId)
MBMessageModel
setClassNameId in interface AttachedModelsetClassNameId in interface MBMessageModelclassNameId - the class name ID of this message-boards messagepublic long getOriginalClassNameId()
@JSON public long getClassPK()
MBMessageModel
getClassPK in interface AttachedModelgetClassPK in interface MBMessageModelpublic void setClassPK(long classPK)
MBMessageModel
setClassPK in interface AttachedModelsetClassPK in interface MBMessageModelclassPK - the class p k of this message-boards messagepublic long getOriginalClassPK()
@JSON public long getCategoryId()
MBMessageModel
getCategoryId in interface MBMessageModelpublic void setCategoryId(long categoryId)
MBMessageModel
setCategoryId in interface MBMessageModelcategoryId - the category ID of this message-boards messagepublic long getOriginalCategoryId()
@JSON public long getThreadId()
MBMessageModel
getThreadId in interface MBMessageModelpublic void setThreadId(long threadId)
MBMessageModel
setThreadId in interface MBMessageModelthreadId - the thread ID of this message-boards messagepublic long getOriginalThreadId()
@JSON public long getRootMessageId()
MBMessageModel
getRootMessageId in interface MBMessageModelpublic void setRootMessageId(long rootMessageId)
MBMessageModel
setRootMessageId in interface MBMessageModelrootMessageId - the root message ID of this message-boards message@JSON public long getParentMessageId()
MBMessageModel
getParentMessageId in interface MBMessageModelpublic void setParentMessageId(long parentMessageId)
MBMessageModel
setParentMessageId in interface MBMessageModelparentMessageId - the parent message ID of this message-boards messagepublic long getOriginalParentMessageId()
@JSON public String getSubject()
MBMessageModel
getSubject in interface MBMessageModelpublic void setSubject(String subject)
MBMessageModel
setSubject in interface MBMessageModelsubject - the subject of this message-boards message@JSON public String getBody()
MBMessageModel
getBody in interface MBMessageModelpublic void setBody(String body)
MBMessageModel
setBody in interface MBMessageModelbody - the body of this message-boards message@JSON public String getFormat()
MBMessageModel
getFormat in interface MBMessageModelpublic void setFormat(String format)
MBMessageModel
setFormat in interface MBMessageModelformat - the format of this message-boards message@JSON public boolean getAttachments()
MBMessageModel
getAttachments in interface MBMessageModelpublic boolean isAttachments()
MBMessageModeltrue if this message-boards message is attachments.
isAttachments in interface MBMessageModeltrue if this message-boards message is attachments; false otherwisepublic void setAttachments(boolean attachments)
MBMessageModel
setAttachments in interface MBMessageModelattachments - the attachments of this message-boards message@JSON public boolean getAnonymous()
MBMessageModel
getAnonymous in interface MBMessageModelpublic boolean isAnonymous()
MBMessageModeltrue if this message-boards message is anonymous.
isAnonymous in interface MBMessageModeltrue if this message-boards message is anonymous; false otherwisepublic void setAnonymous(boolean anonymous)
MBMessageModel
setAnonymous in interface MBMessageModelanonymous - the anonymous of this message-boards message@JSON public double getPriority()
MBMessageModel
getPriority in interface MBMessageModelpublic void setPriority(double priority)
MBMessageModel
setPriority in interface MBMessageModelpriority - the priority of this message-boards message@JSON public boolean getAllowPingbacks()
MBMessageModel
getAllowPingbacks in interface MBMessageModelpublic boolean isAllowPingbacks()
MBMessageModeltrue if this message-boards message is allow pingbacks.
isAllowPingbacks in interface MBMessageModeltrue if this message-boards message is allow pingbacks; false otherwisepublic void setAllowPingbacks(boolean allowPingbacks)
MBMessageModel
setAllowPingbacks in interface MBMessageModelallowPingbacks - the allow pingbacks of this message-boards message@JSON public boolean getAnswer()
MBMessageModel
getAnswer in interface MBMessageModelpublic boolean isAnswer()
MBMessageModeltrue if this message-boards message is answer.
isAnswer in interface MBMessageModeltrue if this message-boards message is answer; false otherwisepublic void setAnswer(boolean answer)
MBMessageModel
setAnswer in interface MBMessageModelanswer - the answer of this message-boards messagepublic boolean getOriginalAnswer()
@JSON public int getStatus()
MBMessageModel
getStatus in interface WorkflowedModelgetStatus in interface MBMessageModelpublic void setStatus(int status)
MBMessageModel
setStatus in interface WorkflowedModelsetStatus in interface MBMessageModelstatus - the status of this message-boards messagepublic int getOriginalStatus()
@JSON public long getStatusByUserId()
MBMessageModel
getStatusByUserId in interface WorkflowedModelgetStatusByUserId in interface MBMessageModelpublic void setStatusByUserId(long statusByUserId)
MBMessageModel
setStatusByUserId in interface WorkflowedModelsetStatusByUserId in interface MBMessageModelstatusByUserId - the status by user ID of this message-boards message
public String getStatusByUserUuid()
throws SystemException
MBMessageModel
getStatusByUserUuid in interface MBMessageModelSystemException - if a system exception occurredpublic void setStatusByUserUuid(String statusByUserUuid)
MBMessageModel
setStatusByUserUuid in interface MBMessageModelstatusByUserUuid - the status by user uuid of this message-boards message@JSON public String getStatusByUserName()
MBMessageModel
getStatusByUserName in interface WorkflowedModelgetStatusByUserName in interface MBMessageModelpublic void setStatusByUserName(String statusByUserName)
MBMessageModel
setStatusByUserName in interface WorkflowedModelsetStatusByUserName in interface MBMessageModelstatusByUserName - the status by user name of this message-boards message@JSON public Date getStatusDate()
MBMessageModel
getStatusDate in interface WorkflowedModelgetStatusDate in interface MBMessageModelpublic void setStatusDate(Date statusDate)
MBMessageModel
setStatusDate in interface WorkflowedModelsetStatusDate in interface MBMessageModelstatusDate - the status date of this message-boards messagepublic boolean getApproved()
isApproved()
getApproved in interface MBMessageModelpublic boolean isApproved()
MBMessageModeltrue if this message-boards message is approved.
isApproved in interface WorkflowedModelisApproved in interface MBMessageModeltrue if this message-boards message is approved; false otherwisepublic boolean isDraft()
MBMessageModeltrue if this message-boards message is a draft.
isDraft in interface WorkflowedModelisDraft in interface MBMessageModeltrue if this message-boards message is a draft; false otherwisepublic boolean isExpired()
MBMessageModeltrue if this message-boards message is expired.
isExpired in interface WorkflowedModelisExpired in interface MBMessageModeltrue if this message-boards message is expired; false otherwisepublic boolean isPending()
MBMessageModeltrue if this message-boards message is pending.
isPending in interface WorkflowedModelisPending in interface MBMessageModeltrue if this message-boards message is pending; false otherwisepublic long getColumnBitmask()
public MBMessage toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<MBMessage>toEscapedModel in interface MBMessageModeltoEscapedModel in class BaseModelImpl<MBMessage>AutoEscapeBeanHandlerpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<MBMessage>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface MBMessageModelgetExpandoBridge in class BaseModelImpl<MBMessage>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<MBMessage>setExpandoBridgeAttributes in interface MBMessageModelsetExpandoBridgeAttributes in class BaseModelImpl<MBMessage>serviceContext - the service contextServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<MBMessage>clone in interface MBMessageModelclone in class BaseModelImpl<MBMessage>public int compareTo(MBMessage mbMessage)
compareTo in interface MBMessageModelcompareTo in interface Comparable<MBMessage>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in interface MBMessageModelhashCode in class Objectpublic void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<MBMessage>resetOriginalValues in class BaseModelImpl<MBMessage>public CacheModel<MBMessage> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<MBMessage>toCacheModel in interface MBMessageModeltoCacheModel in class BaseModelImpl<MBMessage>public String toString()
toString in interface MBMessageModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<MBMessage>toXmlString in interface MBMessageModel
|
Liferay 6.1.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||