Liferay 6.1.2-ce-ga3

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

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<MBMessage>
      extended by com.liferay.portlet.messageboards.model.impl.MBMessageModelImpl
All Implemented Interfaces:
AttachedModel, AuditedModel, BaseModel<MBMessage>, ClassedModel, GroupedModel, WorkflowedModel, MBMessageModel, Serializable, Cloneable, Comparable<MBMessage>
Direct Known Subclasses:
MBMessageBaseImpl

@JSON(strict=true)
public class MBMessageModelImpl
extends BaseModelImpl<MBMessage>
implements MBMessageModel

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.

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

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.
 Map<String,Object> getModelAttributes()
           
 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 isDenied()
          Returns true if this message-boards message is denied.
 boolean isDraft()
          Returns true if this message-boards message is a draft.
 boolean isExpired()
          Returns true if this message-boards message is expired.
 boolean isInactive()
          Returns true if this message-boards message is inactive.
 boolean isIncomplete()
          Returns true if this message-boards message is incomplete.
 boolean isPending()
          Returns true if this message-boards message is pending.
 boolean isScheduled()
          Returns true if this message-boards message is scheduled.
 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 setClassName(String className)
           
 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 setModelAttributes(Map<String,Object> attributes)
           
 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()
           
 MBMessage 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.MBMessageModel
isCachedModel, isEscapedModel, isNew, setCachedModel, 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

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

ANSWER_COLUMN_BITMASK

public static long ANSWER_COLUMN_BITMASK

CATEGORYID_COLUMN_BITMASK

public static long CATEGORYID_COLUMN_BITMASK

CLASSNAMEID_COLUMN_BITMASK

public static long CLASSNAMEID_COLUMN_BITMASK

CLASSPK_COLUMN_BITMASK

public static long CLASSPK_COLUMN_BITMASK

COMPANYID_COLUMN_BITMASK

public static long COMPANYID_COLUMN_BITMASK

GROUPID_COLUMN_BITMASK

public static long GROUPID_COLUMN_BITMASK

PARENTMESSAGEID_COLUMN_BITMASK

public static long PARENTMESSAGEID_COLUMN_BITMASK

STATUS_COLUMN_BITMASK

public static long STATUS_COLUMN_BITMASK

THREADID_COLUMN_BITMASK

public static long THREADID_COLUMN_BITMASK

USERID_COLUMN_BITMASK

public static long USERID_COLUMN_BITMASK

UUID_COLUMN_BITMASK

public static long UUID_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

MBMessageModelImpl

public MBMessageModelImpl()
Method Detail

toModel

public static MBMessage toModel(MBMessageSoap 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 List<MBMessage> toModels(MBMessageSoap[] 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()
Description copied from interface: MBMessageModel
Returns the primary key of this message-boards message.

Specified by:
getPrimaryKey in interface MBMessageModel
Returns:
the primary key of this message-boards message

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Description copied from interface: MBMessageModel
Sets the primary key of this message-boards message.

Specified by:
setPrimaryKey in interface MBMessageModel
Parameters:
primaryKey - the primary key of this message-boards message

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<MBMessage>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface MBMessageModel
Returns:
the primary key of this model instance

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<MBMessage>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface MBMessageModel
Parameters:
primaryKeyObj - the primary key of this model instance

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<MBMessage>
Overrides:
getModelAttributes in class BaseModelImpl<MBMessage>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<MBMessage>
Overrides:
setModelAttributes in class BaseModelImpl<MBMessage>

getUuid

@JSON
public String getUuid()
Description copied from interface: MBMessageModel
Returns the uuid of this message-boards message.

Specified by:
getUuid in interface MBMessageModel
Returns:
the uuid of this message-boards message

setUuid

public void setUuid(String uuid)
Description copied from interface: MBMessageModel
Sets the uuid of this message-boards message.

Specified by:
setUuid in interface MBMessageModel
Parameters:
uuid - the uuid of this message-boards message

getOriginalUuid

public String getOriginalUuid()

getMessageId

@JSON
public long getMessageId()
Description copied from interface: MBMessageModel
Returns the message ID of this message-boards message.

Specified by:
getMessageId in interface MBMessageModel
Returns:
the message ID of this message-boards message

setMessageId

public void setMessageId(long messageId)
Description copied from interface: MBMessageModel
Sets the message ID of this message-boards message.

Specified by:
setMessageId in interface MBMessageModel
Parameters:
messageId - the message ID of this message-boards message

getGroupId

@JSON
public long getGroupId()
Description copied from interface: MBMessageModel
Returns the group ID of this message-boards message.

Specified by:
getGroupId in interface GroupedModel
Specified by:
getGroupId in interface MBMessageModel
Returns:
the group ID of this message-boards message

setGroupId

public void setGroupId(long groupId)
Description copied from interface: MBMessageModel
Sets the group ID of this message-boards message.

Specified by:
setGroupId in interface GroupedModel
Specified by:
setGroupId in interface MBMessageModel
Parameters:
groupId - the group ID of this message-boards message

getOriginalGroupId

public long getOriginalGroupId()

getCompanyId

@JSON
public long getCompanyId()
Description copied from interface: MBMessageModel
Returns the company ID of this message-boards message.

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface MBMessageModel
Returns:
the company ID of this message-boards message

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: MBMessageModel
Sets the company ID of this message-boards message.

Specified by:
setCompanyId in interface AuditedModel
Specified by:
setCompanyId in interface MBMessageModel
Parameters:
companyId - the company ID of this message-boards message

getOriginalCompanyId

public long getOriginalCompanyId()

getUserId

@JSON
public long getUserId()
Description copied from interface: MBMessageModel
Returns the user ID of this message-boards message.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface MBMessageModel
Returns:
the user ID of this message-boards message

setUserId

public void setUserId(long userId)
Description copied from interface: MBMessageModel
Sets the user ID of this message-boards message.

Specified by:
setUserId in interface AuditedModel
Specified by:
setUserId in interface MBMessageModel
Parameters:
userId - the user ID of this message-boards message

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: MBMessageModel
Returns the user uuid of this message-boards message.

Specified by:
getUserUuid in interface AuditedModel
Specified by:
getUserUuid in interface MBMessageModel
Returns:
the user uuid of this message-boards message
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: MBMessageModel
Sets the user uuid of this message-boards message.

Specified by:
setUserUuid in interface AuditedModel
Specified by:
setUserUuid in interface MBMessageModel
Parameters:
userUuid - the user uuid of this message-boards message

getOriginalUserId

public long getOriginalUserId()

getUserName

@JSON
public String getUserName()
Description copied from interface: MBMessageModel
Returns the user name of this message-boards message.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface MBMessageModel
Returns:
the user name of this message-boards message

setUserName

public void setUserName(String userName)
Description copied from interface: MBMessageModel
Sets the user name of this message-boards message.

Specified by:
setUserName in interface AuditedModel
Specified by:
setUserName in interface MBMessageModel
Parameters:
userName - the user name of this message-boards message

getCreateDate

@JSON
public Date getCreateDate()
Description copied from interface: MBMessageModel
Returns the create date of this message-boards message.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface MBMessageModel
Returns:
the create date of this message-boards message

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: MBMessageModel
Sets the create date of this message-boards message.

Specified by:
setCreateDate in interface AuditedModel
Specified by:
setCreateDate in interface MBMessageModel
Parameters:
createDate - the create date of this message-boards message

getModifiedDate

@JSON
public Date getModifiedDate()
Description copied from interface: MBMessageModel
Returns the modified date of this message-boards message.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface MBMessageModel
Returns:
the modified date of this message-boards message

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Description copied from interface: MBMessageModel
Sets the modified date of this message-boards message.

Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface MBMessageModel
Parameters:
modifiedDate - the modified date of this message-boards message

getClassName

public String getClassName()
Description copied from interface: MBMessageModel
Returns the fully qualified class name of this message-boards message.

Specified by:
getClassName in interface AttachedModel
Specified by:
getClassName in interface MBMessageModel
Returns:
the fully qualified class name of this message-boards message

setClassName

public void setClassName(String className)
Specified by:
setClassName in interface MBMessageModel

getClassNameId

@JSON
public long getClassNameId()
Description copied from interface: MBMessageModel
Returns the class name ID of this message-boards message.

Specified by:
getClassNameId in interface AttachedModel
Specified by:
getClassNameId in interface MBMessageModel
Returns:
the class name ID of this message-boards message

setClassNameId

public void setClassNameId(long classNameId)
Description copied from interface: MBMessageModel
Sets the class name ID of this message-boards message.

Specified by:
setClassNameId in interface AttachedModel
Specified by:
setClassNameId in interface MBMessageModel
Parameters:
classNameId - the class name ID of this message-boards message

getOriginalClassNameId

public long getOriginalClassNameId()

getClassPK

@JSON
public long getClassPK()
Description copied from interface: MBMessageModel
Returns the class p k of this message-boards message.

Specified by:
getClassPK in interface AttachedModel
Specified by:
getClassPK in interface MBMessageModel
Returns:
the class p k of this message-boards message

setClassPK

public void setClassPK(long classPK)
Description copied from interface: MBMessageModel
Sets the class p k of this message-boards message.

Specified by:
setClassPK in interface AttachedModel
Specified by:
setClassPK in interface MBMessageModel
Parameters:
classPK - the class p k of this message-boards message

getOriginalClassPK

public long getOriginalClassPK()

getCategoryId

@JSON
public long getCategoryId()
Description copied from interface: MBMessageModel
Returns the category ID of this message-boards message.

Specified by:
getCategoryId in interface MBMessageModel
Returns:
the category ID of this message-boards message

setCategoryId

public void setCategoryId(long categoryId)
Description copied from interface: MBMessageModel
Sets the category ID of this message-boards message.

Specified by:
setCategoryId in interface MBMessageModel
Parameters:
categoryId - the category ID of this message-boards message

getOriginalCategoryId

public long getOriginalCategoryId()

getThreadId

@JSON
public long getThreadId()
Description copied from interface: MBMessageModel
Returns the thread ID of this message-boards message.

Specified by:
getThreadId in interface MBMessageModel
Returns:
the thread ID of this message-boards message

setThreadId

public void setThreadId(long threadId)
Description copied from interface: MBMessageModel
Sets the thread ID of this message-boards message.

Specified by:
setThreadId in interface MBMessageModel
Parameters:
threadId - the thread ID of this message-boards message

getOriginalThreadId

public long getOriginalThreadId()

getRootMessageId

@JSON
public long getRootMessageId()
Description copied from interface: MBMessageModel
Returns the root message ID of this message-boards message.

Specified by:
getRootMessageId in interface MBMessageModel
Returns:
the root message ID of this message-boards message

setRootMessageId

public void setRootMessageId(long rootMessageId)
Description copied from interface: MBMessageModel
Sets the root message ID of this message-boards message.

Specified by:
setRootMessageId in interface MBMessageModel
Parameters:
rootMessageId - the root message ID of this message-boards message

getParentMessageId

@JSON
public long getParentMessageId()
Description copied from interface: MBMessageModel
Returns the parent message ID of this message-boards message.

Specified by:
getParentMessageId in interface MBMessageModel
Returns:
the parent message ID of this message-boards message

setParentMessageId

public void setParentMessageId(long parentMessageId)
Description copied from interface: MBMessageModel
Sets the parent message ID of this message-boards message.

Specified by:
setParentMessageId in interface MBMessageModel
Parameters:
parentMessageId - the parent message ID of this message-boards message

getOriginalParentMessageId

public long getOriginalParentMessageId()

getSubject

@JSON
public String getSubject()
Description copied from interface: MBMessageModel
Returns the subject of this message-boards message.

Specified by:
getSubject in interface MBMessageModel
Returns:
the subject of this message-boards message

setSubject

public void setSubject(String subject)
Description copied from interface: MBMessageModel
Sets the subject of this message-boards message.

Specified by:
setSubject in interface MBMessageModel
Parameters:
subject - the subject of this message-boards message

getBody

@JSON
public String getBody()
Description copied from interface: MBMessageModel
Returns the body of this message-boards message.

Specified by:
getBody in interface MBMessageModel
Returns:
the body of this message-boards message

setBody

public void setBody(String body)
Description copied from interface: MBMessageModel
Sets the body of this message-boards message.

Specified by:
setBody in interface MBMessageModel
Parameters:
body - the body of this message-boards message

getFormat

@JSON
public String getFormat()
Description copied from interface: MBMessageModel
Returns the format of this message-boards message.

Specified by:
getFormat in interface MBMessageModel
Returns:
the format of this message-boards message

setFormat

public void setFormat(String format)
Description copied from interface: MBMessageModel
Sets the format of this message-boards message.

Specified by:
setFormat in interface MBMessageModel
Parameters:
format - the format of this message-boards message

getAttachments

@JSON
public boolean getAttachments()
Description copied from interface: MBMessageModel
Returns the attachments of this message-boards message.

Specified by:
getAttachments in interface MBMessageModel
Returns:
the attachments of this message-boards message

isAttachments

public boolean isAttachments()
Description copied from interface: MBMessageModel
Returns true if this message-boards message is attachments.

Specified by:
isAttachments in interface MBMessageModel
Returns:
true if this message-boards message is attachments; false otherwise

setAttachments

public void setAttachments(boolean attachments)
Description copied from interface: MBMessageModel
Sets whether this message-boards message is attachments.

Specified by:
setAttachments in interface MBMessageModel
Parameters:
attachments - the attachments of this message-boards message

getAnonymous

@JSON
public boolean getAnonymous()
Description copied from interface: MBMessageModel
Returns the anonymous of this message-boards message.

Specified by:
getAnonymous in interface MBMessageModel
Returns:
the anonymous of this message-boards message

isAnonymous

public boolean isAnonymous()
Description copied from interface: MBMessageModel
Returns true if this message-boards message is anonymous.

Specified by:
isAnonymous in interface MBMessageModel
Returns:
true if this message-boards message is anonymous; false otherwise

setAnonymous

public void setAnonymous(boolean anonymous)
Description copied from interface: MBMessageModel
Sets whether this message-boards message is anonymous.

Specified by:
setAnonymous in interface MBMessageModel
Parameters:
anonymous - the anonymous of this message-boards message

getPriority

@JSON
public double getPriority()
Description copied from interface: MBMessageModel
Returns the priority of this message-boards message.

Specified by:
getPriority in interface MBMessageModel
Returns:
the priority of this message-boards message

setPriority

public void setPriority(double priority)
Description copied from interface: MBMessageModel
Sets the priority of this message-boards message.

Specified by:
setPriority in interface MBMessageModel
Parameters:
priority - the priority of this message-boards message

getAllowPingbacks

@JSON
public boolean getAllowPingbacks()
Description copied from interface: MBMessageModel
Returns the allow pingbacks of this message-boards message.

Specified by:
getAllowPingbacks in interface MBMessageModel
Returns:
the allow pingbacks of this message-boards message

isAllowPingbacks

public boolean isAllowPingbacks()
Description copied from interface: MBMessageModel
Returns true if this message-boards message is allow pingbacks.

Specified by:
isAllowPingbacks in interface MBMessageModel
Returns:
true if this message-boards message is allow pingbacks; false otherwise

setAllowPingbacks

public void setAllowPingbacks(boolean allowPingbacks)
Description copied from interface: MBMessageModel
Sets whether this message-boards message is allow pingbacks.

Specified by:
setAllowPingbacks in interface MBMessageModel
Parameters:
allowPingbacks - the allow pingbacks of this message-boards message

getAnswer

@JSON
public boolean getAnswer()
Description copied from interface: MBMessageModel
Returns the answer of this message-boards message.

Specified by:
getAnswer in interface MBMessageModel
Returns:
the answer of this message-boards message

isAnswer

public boolean isAnswer()
Description copied from interface: MBMessageModel
Returns true if this message-boards message is answer.

Specified by:
isAnswer in interface MBMessageModel
Returns:
true if this message-boards message is answer; false otherwise

setAnswer

public void setAnswer(boolean answer)
Description copied from interface: MBMessageModel
Sets whether this message-boards message is answer.

Specified by:
setAnswer in interface MBMessageModel
Parameters:
answer - the answer of this message-boards message

getOriginalAnswer

public boolean getOriginalAnswer()

getStatus

@JSON
public int getStatus()
Description copied from interface: MBMessageModel
Returns the status of this message-boards message.

Specified by:
getStatus in interface WorkflowedModel
Specified by:
getStatus in interface MBMessageModel
Returns:
the status of this message-boards message

setStatus

public void setStatus(int status)
Description copied from interface: MBMessageModel
Sets the status of this message-boards message.

Specified by:
setStatus in interface WorkflowedModel
Specified by:
setStatus in interface MBMessageModel
Parameters:
status - the status of this message-boards message

getOriginalStatus

public int getOriginalStatus()

getStatusByUserId

@JSON
public long getStatusByUserId()
Description copied from interface: MBMessageModel
Returns the status by user ID of this message-boards message.

Specified by:
getStatusByUserId in interface WorkflowedModel
Specified by:
getStatusByUserId in interface MBMessageModel
Returns:
the status by user ID of this message-boards message

setStatusByUserId

public void setStatusByUserId(long statusByUserId)
Description copied from interface: MBMessageModel
Sets the status by user ID of this message-boards message.

Specified by:
setStatusByUserId in interface WorkflowedModel
Specified by:
setStatusByUserId in interface MBMessageModel
Parameters:
statusByUserId - the status by user ID of this message-boards message

getStatusByUserUuid

public String getStatusByUserUuid()
                           throws SystemException
Description copied from interface: MBMessageModel
Returns the status by user uuid of this message-boards message.

Specified by:
getStatusByUserUuid in interface MBMessageModel
Returns:
the status by user uuid of this message-boards message
Throws:
SystemException - if a system exception occurred

setStatusByUserUuid

public void setStatusByUserUuid(String statusByUserUuid)
Description copied from interface: MBMessageModel
Sets the status by user uuid of this message-boards message.

Specified by:
setStatusByUserUuid in interface MBMessageModel
Parameters:
statusByUserUuid - the status by user uuid of this message-boards message

getStatusByUserName

@JSON
public String getStatusByUserName()
Description copied from interface: MBMessageModel
Returns the status by user name of this message-boards message.

Specified by:
getStatusByUserName in interface WorkflowedModel
Specified by:
getStatusByUserName in interface MBMessageModel
Returns:
the status by user name of this message-boards message

setStatusByUserName

public void setStatusByUserName(String statusByUserName)
Description copied from interface: MBMessageModel
Sets the status by user name of this message-boards message.

Specified by:
setStatusByUserName in interface WorkflowedModel
Specified by:
setStatusByUserName in interface MBMessageModel
Parameters:
statusByUserName - the status by user name of this message-boards message

getStatusDate

@JSON
public Date getStatusDate()
Description copied from interface: MBMessageModel
Returns the status date of this message-boards message.

Specified by:
getStatusDate in interface WorkflowedModel
Specified by:
getStatusDate in interface MBMessageModel
Returns:
the status date of this message-boards message

setStatusDate

public void setStatusDate(Date statusDate)
Description copied from interface: MBMessageModel
Sets the status date of this message-boards message.

Specified by:
setStatusDate in interface WorkflowedModel
Specified by:
setStatusDate in interface MBMessageModel
Parameters:
statusDate - the status date of this message-boards message

getApproved

public boolean getApproved()
Deprecated. isApproved()

Specified by:
getApproved in interface MBMessageModel

isApproved

public boolean isApproved()
Description copied from interface: MBMessageModel
Returns true if this message-boards message is approved.

Specified by:
isApproved in interface WorkflowedModel
Specified by:
isApproved in interface MBMessageModel
Returns:
true if this message-boards message is approved; false otherwise

isDenied

public boolean isDenied()
Description copied from interface: MBMessageModel
Returns true if this message-boards message is denied.

Specified by:
isDenied in interface MBMessageModel
Returns:
true if this message-boards message is denied; false otherwise

isDraft

public boolean isDraft()
Description copied from interface: MBMessageModel
Returns true if this message-boards message is a draft.

Specified by:
isDraft in interface WorkflowedModel
Specified by:
isDraft in interface MBMessageModel
Returns:
true if this message-boards message is a draft; false otherwise

isExpired

public boolean isExpired()
Description copied from interface: MBMessageModel
Returns true if this message-boards message is expired.

Specified by:
isExpired in interface WorkflowedModel
Specified by:
isExpired in interface MBMessageModel
Returns:
true if this message-boards message is expired; false otherwise

isInactive

public boolean isInactive()
Description copied from interface: MBMessageModel
Returns true if this message-boards message is inactive.

Specified by:
isInactive in interface MBMessageModel
Returns:
true if this message-boards message is inactive; false otherwise

isIncomplete

public boolean isIncomplete()
Description copied from interface: MBMessageModel
Returns true if this message-boards message is incomplete.

Specified by:
isIncomplete in interface MBMessageModel
Returns:
true if this message-boards message is incomplete; false otherwise

isPending

public boolean isPending()
Description copied from interface: MBMessageModel
Returns true if this message-boards message is pending.

Specified by:
isPending in interface WorkflowedModel
Specified by:
isPending in interface MBMessageModel
Returns:
true if this message-boards message is pending; false otherwise

isScheduled

public boolean isScheduled()
Description copied from interface: MBMessageModel
Returns true if this message-boards message is scheduled.

Specified by:
isScheduled in interface MBMessageModel
Returns:
true if this message-boards message is scheduled; false otherwise

getColumnBitmask

public long getColumnBitmask()

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<MBMessage>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface MBMessageModel
Overrides:
getExpandoBridge in class BaseModelImpl<MBMessage>
Returns:
the expando bridge for this model instance

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<MBMessage>
Specified by:
setExpandoBridgeAttributes in interface MBMessageModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<MBMessage>
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

toEscapedModel

public MBMessage toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<MBMessage>
Specified by:
toEscapedModel in interface MBMessageModel
Overrides:
toEscapedModel in class BaseModelImpl<MBMessage>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public MBMessage toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<MBMessage>
Specified by:
toUnescapedModel in interface MBMessageModel
Overrides:
toUnescapedModel in class BaseModelImpl<MBMessage>

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<MBMessage>
Specified by:
clone in interface MBMessageModel
Specified by:
clone in class BaseModelImpl<MBMessage>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(MBMessage mbMessage)
Specified by:
compareTo in interface MBMessageModel
Specified by:
compareTo in interface Comparable<MBMessage>

equals

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

hashCode

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

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<MBMessage>
Overrides:
resetOriginalValues in class BaseModelImpl<MBMessage>

toCacheModel

public CacheModel<MBMessage> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<MBMessage>
Specified by:
toCacheModel in interface MBMessageModel
Overrides:
toCacheModel in class BaseModelImpl<MBMessage>
Returns:
the cache model object

toString

public String toString()
Specified by:
toString in interface MBMessageModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<MBMessage>
Specified by:
toXmlString in interface MBMessageModel
Returns:
the XML representation of this model instance

Liferay 6.1.2-ce-ga3