Liferay 6.0.5

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

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<MBCategory>
      extended by com.liferay.portlet.messageboards.model.impl.MBCategoryModelImpl
All Implemented Interfaces:
BaseModel<MBCategory>, MBCategoryModel, Serializable, Cloneable, Comparable<MBCategory>
Direct Known Subclasses:
MBCategoryImpl

public class MBCategoryModelImpl
extends BaseModelImpl<MBCategory>
implements MBCategoryModel

The base model implementation for the MBCategory service. Represents a row in the "MBCategory" database table, with each column mapped to a property of this class.

This implementation and its corresponding interface MBCategoryModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in MBCategoryImpl.

Never modify or reference this class directly. All methods that expect a message boards category model instance should use the MBCategory interface instead.

See Also:
MBCategoryImpl, MBCategory, MBCategoryModel, 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
MBCategoryModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(MBCategory mbCategory)
           
 boolean equals(Object obj)
           
 long getCategoryId()
          Gets the category id of this message boards category.
 long getCompanyId()
          Gets the company id of this message boards category.
 Date getCreateDate()
          Gets the create date of this message boards category.
 String getDescription()
          Gets the description of this message boards category.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 long getGroupId()
          Gets the group id of this message boards category.
 Date getLastPostDate()
          Gets the last post date of this message boards category.
 int getMessageCount()
          Gets the message count of this message boards category.
 Date getModifiedDate()
          Gets the modified date of this message boards category.
 String getName()
          Gets the name of this message boards category.
 long getOriginalGroupId()
           
 String getOriginalUuid()
           
 long getParentCategoryId()
          Gets the parent category id of this message boards category.
 long getPrimaryKey()
          Gets the primary key of this message boards category.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 int getThreadCount()
          Gets the thread count of this message boards category.
 long getUserId()
          Gets the user id of this message boards category.
 String getUserName()
          Gets the user name of this message boards category.
 String getUserUuid()
          Gets the user uuid of this message boards category.
 String getUuid()
          Gets the uuid of this message boards category.
 int hashCode()
           
 void setCategoryId(long categoryId)
          Sets the category id of this message boards category.
 void setCompanyId(long companyId)
          Sets the company id of this message boards category.
 void setCreateDate(Date createDate)
          Sets the create date of this message boards category.
 void setDescription(String description)
          Sets the description of this message boards category.
 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 category.
 void setLastPostDate(Date lastPostDate)
          Sets the last post date of this message boards category.
 void setMessageCount(int messageCount)
          Sets the message count of this message boards category.
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this message boards category.
 void setName(String name)
          Sets the name of this message boards category.
 void setParentCategoryId(long parentCategoryId)
          Sets the parent category id of this message boards category.
 void setPrimaryKey(long pk)
          Sets the primary key of this message boards category
 void setThreadCount(int threadCount)
          Sets the thread count of this message boards category.
 void setUserId(long userId)
          Sets the user id of this message boards category.
 void setUserName(String userName)
          Sets the user name of this message boards category.
 void setUserUuid(String userUuid)
          Sets the user uuid of this message boards category.
 void setUuid(String uuid)
          Sets the uuid of this message boards category.
 MBCategory toEscapedModel()
          Gets a copy of this message boards category as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
static MBCategory toModel(MBCategorySoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<MBCategory> toModels(MBCategorySoap[] soapModels)
          Converts the soap model instances into normal model instances.
 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.MBCategoryModel
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

MBCategoryModelImpl

public MBCategoryModelImpl()
Method Detail

toModel

public static MBCategory toModel(MBCategorySoap 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<MBCategory> toModels(MBCategorySoap[] 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: MBCategoryModel
Gets the primary key of this message boards category.

Specified by:
getPrimaryKey in interface MBCategoryModel
Returns:
the primary key of this message boards category

setPrimaryKey

public void setPrimaryKey(long pk)
Description copied from interface: MBCategoryModel
Sets the primary key of this message boards category

Specified by:
setPrimaryKey in interface MBCategoryModel
Parameters:
pk - the primary key of this message boards category

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<MBCategory>
Specified by:
getPrimaryKeyObj in interface MBCategoryModel
Returns:
the primary key of this model instance

getUuid

public String getUuid()
Description copied from interface: MBCategoryModel
Gets the uuid of this message boards category.

Specified by:
getUuid in interface MBCategoryModel
Returns:
the uuid of this message boards category

setUuid

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

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

getOriginalUuid

public String getOriginalUuid()

getCategoryId

public long getCategoryId()
Description copied from interface: MBCategoryModel
Gets the category id of this message boards category.

Specified by:
getCategoryId in interface MBCategoryModel
Returns:
the category id of this message boards category

setCategoryId

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

Specified by:
setCategoryId in interface MBCategoryModel
Parameters:
categoryId - the category id of this message boards category

getGroupId

public long getGroupId()
Description copied from interface: MBCategoryModel
Gets the group id of this message boards category.

Specified by:
getGroupId in interface MBCategoryModel
Returns:
the group id of this message boards category

setGroupId

public void setGroupId(long groupId)
Description copied from interface: MBCategoryModel
Sets the group id of this message boards category.

Specified by:
setGroupId in interface MBCategoryModel
Parameters:
groupId - the group id of this message boards category

getOriginalGroupId

public long getOriginalGroupId()

getCompanyId

public long getCompanyId()
Description copied from interface: MBCategoryModel
Gets the company id of this message boards category.

Specified by:
getCompanyId in interface MBCategoryModel
Returns:
the company id of this message boards category

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: MBCategoryModel
Sets the company id of this message boards category.

Specified by:
setCompanyId in interface MBCategoryModel
Parameters:
companyId - the company id of this message boards category

getUserId

public long getUserId()
Description copied from interface: MBCategoryModel
Gets the user id of this message boards category.

Specified by:
getUserId in interface MBCategoryModel
Returns:
the user id of this message boards category

setUserId

public void setUserId(long userId)
Description copied from interface: MBCategoryModel
Sets the user id of this message boards category.

Specified by:
setUserId in interface MBCategoryModel
Parameters:
userId - the user id of this message boards category

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: MBCategoryModel
Gets the user uuid of this message boards category.

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

setUserUuid

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

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

getUserName

public String getUserName()
Description copied from interface: MBCategoryModel
Gets the user name of this message boards category.

Specified by:
getUserName in interface MBCategoryModel
Returns:
the user name of this message boards category

setUserName

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

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

getCreateDate

public Date getCreateDate()
Description copied from interface: MBCategoryModel
Gets the create date of this message boards category.

Specified by:
getCreateDate in interface MBCategoryModel
Returns:
the create date of this message boards category

setCreateDate

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

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

getModifiedDate

public Date getModifiedDate()
Description copied from interface: MBCategoryModel
Gets the modified date of this message boards category.

Specified by:
getModifiedDate in interface MBCategoryModel
Returns:
the modified date of this message boards category

setModifiedDate

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

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

getParentCategoryId

public long getParentCategoryId()
Description copied from interface: MBCategoryModel
Gets the parent category id of this message boards category.

Specified by:
getParentCategoryId in interface MBCategoryModel
Returns:
the parent category id of this message boards category

setParentCategoryId

public void setParentCategoryId(long parentCategoryId)
Description copied from interface: MBCategoryModel
Sets the parent category id of this message boards category.

Specified by:
setParentCategoryId in interface MBCategoryModel
Parameters:
parentCategoryId - the parent category id of this message boards category

getName

public String getName()
Description copied from interface: MBCategoryModel
Gets the name of this message boards category.

Specified by:
getName in interface MBCategoryModel
Returns:
the name of this message boards category

setName

public void setName(String name)
Description copied from interface: MBCategoryModel
Sets the name of this message boards category.

Specified by:
setName in interface MBCategoryModel
Parameters:
name - the name of this message boards category

getDescription

public String getDescription()
Description copied from interface: MBCategoryModel
Gets the description of this message boards category.

Specified by:
getDescription in interface MBCategoryModel
Returns:
the description of this message boards category

setDescription

public void setDescription(String description)
Description copied from interface: MBCategoryModel
Sets the description of this message boards category.

Specified by:
setDescription in interface MBCategoryModel
Parameters:
description - the description of this message boards category

getThreadCount

public int getThreadCount()
Description copied from interface: MBCategoryModel
Gets the thread count of this message boards category.

Specified by:
getThreadCount in interface MBCategoryModel
Returns:
the thread count of this message boards category

setThreadCount

public void setThreadCount(int threadCount)
Description copied from interface: MBCategoryModel
Sets the thread count of this message boards category.

Specified by:
setThreadCount in interface MBCategoryModel
Parameters:
threadCount - the thread count of this message boards category

getMessageCount

public int getMessageCount()
Description copied from interface: MBCategoryModel
Gets the message count of this message boards category.

Specified by:
getMessageCount in interface MBCategoryModel
Returns:
the message count of this message boards category

setMessageCount

public void setMessageCount(int messageCount)
Description copied from interface: MBCategoryModel
Sets the message count of this message boards category.

Specified by:
setMessageCount in interface MBCategoryModel
Parameters:
messageCount - the message count of this message boards category

getLastPostDate

public Date getLastPostDate()
Description copied from interface: MBCategoryModel
Gets the last post date of this message boards category.

Specified by:
getLastPostDate in interface MBCategoryModel
Returns:
the last post date of this message boards category

setLastPostDate

public void setLastPostDate(Date lastPostDate)
Description copied from interface: MBCategoryModel
Sets the last post date of this message boards category.

Specified by:
setLastPostDate in interface MBCategoryModel
Parameters:
lastPostDate - the last post date of this message boards category

toEscapedModel

public MBCategory toEscapedModel()
Description copied from interface: MBCategoryModel
Gets a copy of this message boards category as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface MBCategoryModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<MBCategory>
Specified by:
getExpandoBridge in interface MBCategoryModel
Overrides:
getExpandoBridge in class BaseModelImpl<MBCategory>
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<MBCategory>
Specified by:
setExpandoBridgeAttributes in interface MBCategoryModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<MBCategory>
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<MBCategory>
Specified by:
clone in interface MBCategoryModel
Specified by:
clone in class BaseModelImpl<MBCategory>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(MBCategory mbCategory)
Specified by:
compareTo in interface MBCategoryModel
Specified by:
compareTo in interface Comparable<MBCategory>

equals

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

hashCode

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

toString

public String toString()
Specified by:
toString in interface MBCategoryModel
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<MBCategory>
Specified by:
toXmlString in interface MBCategoryModel
Returns:
the XML representation of this model instance

Liferay 6.0.5