Liferay 6.0.3

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:
BaseModel<MBMessage>, MBMessageModel, Serializable, Cloneable, Comparable<MBMessage>
Direct Known Subclasses:
MBMessageImpl

public class MBMessageModelImpl
extends BaseModelImpl<MBMessage>
implements MBMessageModel

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

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

Field Summary
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long LOCK_EXPIRATION_TIME
           
static String ORDER_BY_JPQL
           
static String ORDER_BY_SQL
           
static String SESSION_FACTORY
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
 
Constructor Summary
MBMessageModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(MBMessage mbMessage)
           
 boolean equals(Object obj)
           
 boolean getAllowPingbacks()
           
 boolean getAnonymous()
           
 boolean getAttachments()
           
 String getBody()
           
 long getCategoryId()
           
 String getClassName()
           
 long getClassNameId()
           
 long getClassPK()
           
 long getCompanyId()
           
 Date getCreateDate()
           
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 long getGroupId()
           
 long getMessageId()
           
 Date getModifiedDate()
           
 long getOriginalGroupId()
           
 String getOriginalUuid()
           
 long getParentMessageId()
           
 long getPrimaryKey()
           
 Serializable getPrimaryKeyObj()
          Gets the primary key for this model instance.
 double getPriority()
           
 long getRootMessageId()
           
 int getStatus()
           
 long getStatusByUserId()
           
 String getStatusByUserName()
           
 String getStatusByUserUuid()
           
 Date getStatusDate()
           
 String getSubject()
           
 long getThreadId()
           
 long getUserId()
           
 String getUserName()
           
 String getUserUuid()
           
 String getUuid()
           
 int hashCode()
           
 boolean isAllowPingbacks()
           
 boolean isAnonymous()
           
 boolean isApproved()
           
 boolean isAttachments()
           
 boolean isDraft()
           
 boolean isExpired()
           
 boolean isPending()
           
 void setAllowPingbacks(boolean allowPingbacks)
           
 void setAnonymous(boolean anonymous)
           
 void setAttachments(boolean attachments)
           
 void setBody(String body)
           
 void setCategoryId(long categoryId)
           
 void setClassNameId(long classNameId)
           
 void setClassPK(long classPK)
           
 void setCompanyId(long companyId)
           
 void setCreateDate(Date createDate)
           
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setGroupId(long groupId)
           
 void setMessageId(long messageId)
           
 void setModifiedDate(Date modifiedDate)
           
 void setParentMessageId(long parentMessageId)
           
 void setPrimaryKey(long pk)
           
 void setPriority(double priority)
           
 void setRootMessageId(long rootMessageId)
           
 void setStatus(int status)
           
 void setStatusByUserId(long statusByUserId)
           
 void setStatusByUserName(String statusByUserName)
           
 void setStatusByUserUuid(String statusByUserUuid)
           
 void setStatusDate(Date statusDate)
           
 void setSubject(String subject)
           
 void setThreadId(long threadId)
           
 void setUserId(long userId)
           
 void setUserName(String userName)
           
 void setUserUuid(String userUuid)
           
 void setUuid(String uuid)
           
 MBMessage toEscapedModel()
           
static MBMessage toModel(MBMessageSoap soapModel)
           
static List<MBMessage> toModels(MBMessageSoap[] soapModels)
           
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.messageboards.model.MBMessageModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew
 

Field Detail

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

ORDER_BY_JPQL

public static final String ORDER_BY_JPQL
See Also:
Constant Field Values

ORDER_BY_SQL

public static final String ORDER_BY_SQL
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

MBMessageModelImpl

public MBMessageModelImpl()
Method Detail

toModel

public static MBMessage toModel(MBMessageSoap soapModel)

toModels

public static List<MBMessage> toModels(MBMessageSoap[] soapModels)

getPrimaryKey

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

setPrimaryKey

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

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<MBMessage>
Specified by:
getPrimaryKeyObj in interface MBMessageModel
Returns:
the primary key

getUuid

public String getUuid()
Specified by:
getUuid in interface MBMessageModel

setUuid

public void setUuid(String uuid)
Specified by:
setUuid in interface MBMessageModel

getOriginalUuid

public String getOriginalUuid()

getMessageId

public long getMessageId()
Specified by:
getMessageId in interface MBMessageModel

setMessageId

public void setMessageId(long messageId)
Specified by:
setMessageId in interface MBMessageModel

getGroupId

public long getGroupId()
Specified by:
getGroupId in interface MBMessageModel

setGroupId

public void setGroupId(long groupId)
Specified by:
setGroupId in interface MBMessageModel

getOriginalGroupId

public long getOriginalGroupId()

getCompanyId

public long getCompanyId()
Specified by:
getCompanyId in interface MBMessageModel

setCompanyId

public void setCompanyId(long companyId)
Specified by:
setCompanyId in interface MBMessageModel

getUserId

public long getUserId()
Specified by:
getUserId in interface MBMessageModel

setUserId

public void setUserId(long userId)
Specified by:
setUserId in interface MBMessageModel

getUserUuid

public String getUserUuid()
                   throws SystemException
Specified by:
getUserUuid in interface MBMessageModel
Throws:
SystemException

setUserUuid

public void setUserUuid(String userUuid)
Specified by:
setUserUuid in interface MBMessageModel

getUserName

public String getUserName()
Specified by:
getUserName in interface MBMessageModel

setUserName

public void setUserName(String userName)
Specified by:
setUserName in interface MBMessageModel

getCreateDate

public Date getCreateDate()
Specified by:
getCreateDate in interface MBMessageModel

setCreateDate

public void setCreateDate(Date createDate)
Specified by:
setCreateDate in interface MBMessageModel

getModifiedDate

public Date getModifiedDate()
Specified by:
getModifiedDate in interface MBMessageModel

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Specified by:
setModifiedDate in interface MBMessageModel

getClassName

public String getClassName()
Specified by:
getClassName in interface MBMessageModel

getClassNameId

public long getClassNameId()
Specified by:
getClassNameId in interface MBMessageModel

setClassNameId

public void setClassNameId(long classNameId)
Specified by:
setClassNameId in interface MBMessageModel

getClassPK

public long getClassPK()
Specified by:
getClassPK in interface MBMessageModel

setClassPK

public void setClassPK(long classPK)
Specified by:
setClassPK in interface MBMessageModel

getCategoryId

public long getCategoryId()
Specified by:
getCategoryId in interface MBMessageModel

setCategoryId

public void setCategoryId(long categoryId)
Specified by:
setCategoryId in interface MBMessageModel

getThreadId

public long getThreadId()
Specified by:
getThreadId in interface MBMessageModel

setThreadId

public void setThreadId(long threadId)
Specified by:
setThreadId in interface MBMessageModel

getRootMessageId

public long getRootMessageId()
Specified by:
getRootMessageId in interface MBMessageModel

setRootMessageId

public void setRootMessageId(long rootMessageId)
Specified by:
setRootMessageId in interface MBMessageModel

getParentMessageId

public long getParentMessageId()
Specified by:
getParentMessageId in interface MBMessageModel

setParentMessageId

public void setParentMessageId(long parentMessageId)
Specified by:
setParentMessageId in interface MBMessageModel

getSubject

public String getSubject()
Specified by:
getSubject in interface MBMessageModel

setSubject

public void setSubject(String subject)
Specified by:
setSubject in interface MBMessageModel

getBody

public String getBody()
Specified by:
getBody in interface MBMessageModel

setBody

public void setBody(String body)
Specified by:
setBody in interface MBMessageModel

getAttachments

public boolean getAttachments()
Specified by:
getAttachments in interface MBMessageModel

isAttachments

public boolean isAttachments()
Specified by:
isAttachments in interface MBMessageModel

setAttachments

public void setAttachments(boolean attachments)
Specified by:
setAttachments in interface MBMessageModel

getAnonymous

public boolean getAnonymous()
Specified by:
getAnonymous in interface MBMessageModel

isAnonymous

public boolean isAnonymous()
Specified by:
isAnonymous in interface MBMessageModel

setAnonymous

public void setAnonymous(boolean anonymous)
Specified by:
setAnonymous in interface MBMessageModel

getPriority

public double getPriority()
Specified by:
getPriority in interface MBMessageModel

setPriority

public void setPriority(double priority)
Specified by:
setPriority in interface MBMessageModel

getAllowPingbacks

public boolean getAllowPingbacks()
Specified by:
getAllowPingbacks in interface MBMessageModel

isAllowPingbacks

public boolean isAllowPingbacks()
Specified by:
isAllowPingbacks in interface MBMessageModel

setAllowPingbacks

public void setAllowPingbacks(boolean allowPingbacks)
Specified by:
setAllowPingbacks in interface MBMessageModel

getStatus

public int getStatus()
Specified by:
getStatus in interface MBMessageModel

setStatus

public void setStatus(int status)
Specified by:
setStatus in interface MBMessageModel

getStatusByUserId

public long getStatusByUserId()
Specified by:
getStatusByUserId in interface MBMessageModel

setStatusByUserId

public void setStatusByUserId(long statusByUserId)
Specified by:
setStatusByUserId in interface MBMessageModel

getStatusByUserUuid

public String getStatusByUserUuid()
                           throws SystemException
Specified by:
getStatusByUserUuid in interface MBMessageModel
Throws:
SystemException

setStatusByUserUuid

public void setStatusByUserUuid(String statusByUserUuid)
Specified by:
setStatusByUserUuid in interface MBMessageModel

getStatusByUserName

public String getStatusByUserName()
Specified by:
getStatusByUserName in interface MBMessageModel

setStatusByUserName

public void setStatusByUserName(String statusByUserName)
Specified by:
setStatusByUserName in interface MBMessageModel

getStatusDate

public Date getStatusDate()
Specified by:
getStatusDate in interface MBMessageModel

setStatusDate

public void setStatusDate(Date statusDate)
Specified by:
setStatusDate in interface MBMessageModel

isApproved

public boolean isApproved()
Specified by:
isApproved in interface MBMessageModel

isDraft

public boolean isDraft()
Specified by:
isDraft in interface MBMessageModel

isExpired

public boolean isExpired()
Specified by:
isExpired in interface MBMessageModel

isPending

public boolean isPending()
Specified by:
isPending in interface MBMessageModel

toEscapedModel

public MBMessage toEscapedModel()
Specified by:
toEscapedModel in interface MBMessageModel

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<MBMessage>
Specified by:
getExpandoBridge in interface MBMessageModel
Overrides:
getExpandoBridge in class BaseModelImpl<MBMessage>
Returns:
the expando bridge

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<MBMessage>
Specified by:
setExpandoBridgeAttributes in interface MBMessageModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<MBMessage>
Parameters:
serviceContext - the service context to retrieve the expando bridge attributes from
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

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

Specified by:
clone in interface BaseModel<MBMessage>
Specified by:
clone in interface MBMessageModel
Specified by:
clone in class BaseModelImpl<MBMessage>
Returns:
the clone

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

toString

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

toXmlString

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

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

Liferay 6.0.3