Liferay 6.0.5

com.liferay.portlet.shopping.model.impl
Class ShoppingCategoryModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<ShoppingCategory>
      extended by com.liferay.portlet.shopping.model.impl.ShoppingCategoryModelImpl
All Implemented Interfaces:
BaseModel<ShoppingCategory>, ShoppingCategoryModel, Serializable, Cloneable, Comparable<ShoppingCategory>
Direct Known Subclasses:
ShoppingCategoryImpl

public class ShoppingCategoryModelImpl
extends BaseModelImpl<ShoppingCategory>
implements ShoppingCategoryModel

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

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

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

See Also:
ShoppingCategoryImpl, ShoppingCategory, ShoppingCategoryModel, 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
ShoppingCategoryModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(ShoppingCategory shoppingCategory)
           
 boolean equals(Object obj)
           
 long getCategoryId()
          Gets the category id of this shopping category.
 long getCompanyId()
          Gets the company id of this shopping category.
 Date getCreateDate()
          Gets the create date of this shopping category.
 String getDescription()
          Gets the description of this shopping category.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 long getGroupId()
          Gets the group id of this shopping category.
 Date getModifiedDate()
          Gets the modified date of this shopping category.
 String getName()
          Gets the name of this shopping category.
 long getParentCategoryId()
          Gets the parent category id of this shopping category.
 long getPrimaryKey()
          Gets the primary key of this shopping category.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 long getUserId()
          Gets the user id of this shopping category.
 String getUserName()
          Gets the user name of this shopping category.
 String getUserUuid()
          Gets the user uuid of this shopping category.
 int hashCode()
           
 void setCategoryId(long categoryId)
          Sets the category id of this shopping category.
 void setCompanyId(long companyId)
          Sets the company id of this shopping category.
 void setCreateDate(Date createDate)
          Sets the create date of this shopping category.
 void setDescription(String description)
          Sets the description of this shopping 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 shopping category.
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this shopping category.
 void setName(String name)
          Sets the name of this shopping category.
 void setParentCategoryId(long parentCategoryId)
          Sets the parent category id of this shopping category.
 void setPrimaryKey(long pk)
          Sets the primary key of this shopping category
 void setUserId(long userId)
          Sets the user id of this shopping category.
 void setUserName(String userName)
          Sets the user name of this shopping category.
 void setUserUuid(String userUuid)
          Sets the user uuid of this shopping category.
 ShoppingCategory toEscapedModel()
          Gets a copy of this shopping category as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
static ShoppingCategory toModel(ShoppingCategorySoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<ShoppingCategory> toModels(ShoppingCategorySoap[] 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.shopping.model.ShoppingCategoryModel
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

ShoppingCategoryModelImpl

public ShoppingCategoryModelImpl()
Method Detail

toModel

public static ShoppingCategory toModel(ShoppingCategorySoap 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<ShoppingCategory> toModels(ShoppingCategorySoap[] 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: ShoppingCategoryModel
Gets the primary key of this shopping category.

Specified by:
getPrimaryKey in interface ShoppingCategoryModel
Returns:
the primary key of this shopping category

setPrimaryKey

public void setPrimaryKey(long pk)
Description copied from interface: ShoppingCategoryModel
Sets the primary key of this shopping category

Specified by:
setPrimaryKey in interface ShoppingCategoryModel
Parameters:
pk - the primary key of this shopping category

getPrimaryKeyObj

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

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

getCategoryId

public long getCategoryId()
Description copied from interface: ShoppingCategoryModel
Gets the category id of this shopping category.

Specified by:
getCategoryId in interface ShoppingCategoryModel
Returns:
the category id of this shopping category

setCategoryId

public void setCategoryId(long categoryId)
Description copied from interface: ShoppingCategoryModel
Sets the category id of this shopping category.

Specified by:
setCategoryId in interface ShoppingCategoryModel
Parameters:
categoryId - the category id of this shopping category

getGroupId

public long getGroupId()
Description copied from interface: ShoppingCategoryModel
Gets the group id of this shopping category.

Specified by:
getGroupId in interface ShoppingCategoryModel
Returns:
the group id of this shopping category

setGroupId

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

Specified by:
setGroupId in interface ShoppingCategoryModel
Parameters:
groupId - the group id of this shopping category

getCompanyId

public long getCompanyId()
Description copied from interface: ShoppingCategoryModel
Gets the company id of this shopping category.

Specified by:
getCompanyId in interface ShoppingCategoryModel
Returns:
the company id of this shopping category

setCompanyId

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

Specified by:
setCompanyId in interface ShoppingCategoryModel
Parameters:
companyId - the company id of this shopping category

getUserId

public long getUserId()
Description copied from interface: ShoppingCategoryModel
Gets the user id of this shopping category.

Specified by:
getUserId in interface ShoppingCategoryModel
Returns:
the user id of this shopping category

setUserId

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

Specified by:
setUserId in interface ShoppingCategoryModel
Parameters:
userId - the user id of this shopping category

getUserUuid

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

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

setUserUuid

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

Specified by:
setUserUuid in interface ShoppingCategoryModel
Parameters:
userUuid - the user uuid of this shopping category

getUserName

public String getUserName()
Description copied from interface: ShoppingCategoryModel
Gets the user name of this shopping category.

Specified by:
getUserName in interface ShoppingCategoryModel
Returns:
the user name of this shopping category

setUserName

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

Specified by:
setUserName in interface ShoppingCategoryModel
Parameters:
userName - the user name of this shopping category

getCreateDate

public Date getCreateDate()
Description copied from interface: ShoppingCategoryModel
Gets the create date of this shopping category.

Specified by:
getCreateDate in interface ShoppingCategoryModel
Returns:
the create date of this shopping category

setCreateDate

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

Specified by:
setCreateDate in interface ShoppingCategoryModel
Parameters:
createDate - the create date of this shopping category

getModifiedDate

public Date getModifiedDate()
Description copied from interface: ShoppingCategoryModel
Gets the modified date of this shopping category.

Specified by:
getModifiedDate in interface ShoppingCategoryModel
Returns:
the modified date of this shopping category

setModifiedDate

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

Specified by:
setModifiedDate in interface ShoppingCategoryModel
Parameters:
modifiedDate - the modified date of this shopping category

getParentCategoryId

public long getParentCategoryId()
Description copied from interface: ShoppingCategoryModel
Gets the parent category id of this shopping category.

Specified by:
getParentCategoryId in interface ShoppingCategoryModel
Returns:
the parent category id of this shopping category

setParentCategoryId

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

Specified by:
setParentCategoryId in interface ShoppingCategoryModel
Parameters:
parentCategoryId - the parent category id of this shopping category

getName

public String getName()
Description copied from interface: ShoppingCategoryModel
Gets the name of this shopping category.

Specified by:
getName in interface ShoppingCategoryModel
Returns:
the name of this shopping category

setName

public void setName(String name)
Description copied from interface: ShoppingCategoryModel
Sets the name of this shopping category.

Specified by:
setName in interface ShoppingCategoryModel
Parameters:
name - the name of this shopping category

getDescription

public String getDescription()
Description copied from interface: ShoppingCategoryModel
Gets the description of this shopping category.

Specified by:
getDescription in interface ShoppingCategoryModel
Returns:
the description of this shopping category

setDescription

public void setDescription(String description)
Description copied from interface: ShoppingCategoryModel
Sets the description of this shopping category.

Specified by:
setDescription in interface ShoppingCategoryModel
Parameters:
description - the description of this shopping category

toEscapedModel

public ShoppingCategory toEscapedModel()
Description copied from interface: ShoppingCategoryModel
Gets a copy of this shopping category as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

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

compareTo

public int compareTo(ShoppingCategory shoppingCategory)
Specified by:
compareTo in interface ShoppingCategoryModel
Specified by:
compareTo in interface Comparable<ShoppingCategory>

equals

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

hashCode

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

toString

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

Liferay 6.0.5