Liferay 6.1.2-ce-ga3

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:
AuditedModel, BaseModel<ShoppingCategory>, ClassedModel, GroupedModel, ShoppingCategoryModel, Serializable, Cloneable, Comparable<ShoppingCategory>
Direct Known Subclasses:
ShoppingCategoryBaseImpl

@JSON(strict=true)
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.

See Also:
ShoppingCategoryImpl, ShoppingCategory, ShoppingCategoryModel, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static boolean COLUMN_BITMASK_ENABLED
           
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 PARENTCATEGORYID_COLUMN_BITMASK
           
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()
          Returns the category ID of this shopping category.
 long getColumnBitmask()
           
 long getCompanyId()
          Returns the company ID of this shopping category.
 Date getCreateDate()
          Returns the create date of this shopping category.
 String getDescription()
          Returns the description of this shopping category.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 long getGroupId()
          Returns the group ID of this shopping category.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this shopping category.
 String getName()
          Returns the name of this shopping category.
 long getOriginalGroupId()
           
 long getOriginalParentCategoryId()
           
 long getParentCategoryId()
          Returns the parent category ID of this shopping category.
 long getPrimaryKey()
          Returns the primary key of this shopping category.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 long getUserId()
          Returns the user ID of this shopping category.
 String getUserName()
          Returns the user name of this shopping category.
 String getUserUuid()
          Returns the user uuid of this shopping category.
 int hashCode()
           
 void resetOriginalValues()
          Reset all original fields to current values.
 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 setModelAttributes(Map<String,Object> attributes)
           
 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 primaryKey)
          Sets the primary key of this shopping category.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 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.
 CacheModel<ShoppingCategory> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 ShoppingCategory toEscapedModel()
          Returns a copy of this entity 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()
           
 ShoppingCategory 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.shopping.model.ShoppingCategoryModel
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

GROUPID_COLUMN_BITMASK

public static long GROUPID_COLUMN_BITMASK

PARENTCATEGORYID_COLUMN_BITMASK

public static long PARENTCATEGORYID_COLUMN_BITMASK

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
Returns 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 primaryKey)
Description copied from interface: ShoppingCategoryModel
Sets the primary key of this shopping category.

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

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<ShoppingCategory>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface ShoppingCategoryModel
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<ShoppingCategory>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface ShoppingCategoryModel
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<ShoppingCategory>
Overrides:
getModelAttributes in class BaseModelImpl<ShoppingCategory>

setModelAttributes

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

getCategoryId

@JSON
public long getCategoryId()
Description copied from interface: ShoppingCategoryModel
Returns 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

@JSON
public long getGroupId()
Description copied from interface: ShoppingCategoryModel
Returns the group ID of this shopping category.

Specified by:
getGroupId in interface GroupedModel
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 GroupedModel
Specified by:
setGroupId in interface ShoppingCategoryModel
Parameters:
groupId - the group ID of this shopping category

getOriginalGroupId

public long getOriginalGroupId()

getCompanyId

@JSON
public long getCompanyId()
Description copied from interface: ShoppingCategoryModel
Returns the company ID of this shopping category.

Specified by:
getCompanyId in interface AuditedModel
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 AuditedModel
Specified by:
setCompanyId in interface ShoppingCategoryModel
Parameters:
companyId - the company ID of this shopping category

getUserId

@JSON
public long getUserId()
Description copied from interface: ShoppingCategoryModel
Returns the user ID of this shopping category.

Specified by:
getUserId in interface AuditedModel
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 AuditedModel
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
Returns the user uuid of this shopping category.

Specified by:
getUserUuid in interface AuditedModel
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 AuditedModel
Specified by:
setUserUuid in interface ShoppingCategoryModel
Parameters:
userUuid - the user uuid of this shopping category

getUserName

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

Specified by:
getUserName in interface AuditedModel
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 AuditedModel
Specified by:
setUserName in interface ShoppingCategoryModel
Parameters:
userName - the user name of this shopping category

getCreateDate

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

Specified by:
getCreateDate in interface AuditedModel
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 AuditedModel
Specified by:
setCreateDate in interface ShoppingCategoryModel
Parameters:
createDate - the create date of this shopping category

getModifiedDate

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

Specified by:
getModifiedDate in interface AuditedModel
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 AuditedModel
Specified by:
setModifiedDate in interface ShoppingCategoryModel
Parameters:
modifiedDate - the modified date of this shopping category

getParentCategoryId

@JSON
public long getParentCategoryId()
Description copied from interface: ShoppingCategoryModel
Returns 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

getOriginalParentCategoryId

public long getOriginalParentCategoryId()

getName

@JSON
public String getName()
Description copied from interface: ShoppingCategoryModel
Returns 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

@JSON
public String getDescription()
Description copied from interface: ShoppingCategoryModel
Returns 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

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<ShoppingCategory>
Specified by:
getExpandoBridge in interface ClassedModel
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
See Also:
ServiceContext.getExpandoBridgeAttributes( )

toEscapedModel

public ShoppingCategory 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<ShoppingCategory>
Specified by:
toEscapedModel in interface ShoppingCategoryModel
Overrides:
toEscapedModel in class BaseModelImpl<ShoppingCategory>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public ShoppingCategory toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<ShoppingCategory>
Specified by:
toUnescapedModel in interface ShoppingCategoryModel
Overrides:
toUnescapedModel in class BaseModelImpl<ShoppingCategory>

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

resetOriginalValues

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

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

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<ShoppingCategory>
Specified by:
toCacheModel in interface ShoppingCategoryModel
Overrides:
toCacheModel in class BaseModelImpl<ShoppingCategory>
Returns:
the cache model 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
Returns 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.1.2-ce-ga3