Liferay 6.1.2-ce-ga3

com.liferay.portlet.shopping.model
Class ShoppingCategoryWrapper

java.lang.Object
  extended by com.liferay.portlet.shopping.model.ShoppingCategoryWrapper
All Implemented Interfaces:
AuditedModel, BaseModel<ShoppingCategory>, ClassedModel, GroupedModel, ModelWrapper<ShoppingCategory>, PersistedModel, ShoppingCategory, ShoppingCategoryModel, Serializable, Cloneable, Comparable<ShoppingCategory>

public class ShoppingCategoryWrapper
extends Object
implements ShoppingCategory, ModelWrapper<ShoppingCategory>

This class is a wrapper for ShoppingCategory.

See Also:
ShoppingCategory, Serialized Form

Constructor Summary
ShoppingCategoryWrapper(ShoppingCategory shoppingCategory)
           
 
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 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 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.
 ShoppingCategory getWrappedModel()
           
 ShoppingCategory getWrappedShoppingCategory()
          Deprecated. Renamed to getWrappedModel()
 int hashCode()
           
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isNew()
          Returns true if this model instance does not yet exist in the database.
 boolean isRoot()
           
 void persist()
          Updates this model instance in the database or adds it if it does not yet exist.
 void resetOriginalValues()
          Reset all original fields to current values.
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 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 setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 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.
 String toString()
           
 ShoppingCategory toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShoppingCategoryWrapper

public ShoppingCategoryWrapper(ShoppingCategory shoppingCategory)
Method Detail

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>

setModelAttributes

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

getPrimaryKey

public long getPrimaryKey()
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)
Sets the primary key of this shopping category.

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

getCategoryId

public long getCategoryId()
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)
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()
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)
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

getCompanyId

public long getCompanyId()
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)
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

public long getUserId()
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)
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
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)
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

public String getUserName()
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)
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

public Date getCreateDate()
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)
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

public Date getModifiedDate()
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)
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

public long getParentCategoryId()
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)
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()
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)
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()
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)
Sets the description of this shopping category.

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

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<ShoppingCategory>
Specified by:
isNew in interface ShoppingCategoryModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<ShoppingCategory>
Specified by:
setNew in interface ShoppingCategoryModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Returns true if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<ShoppingCategory>
Specified by:
isCachedModel in interface ShoppingCategoryModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<ShoppingCategory>
Specified by:
setCachedModel in interface ShoppingCategoryModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<ShoppingCategory>
Specified by:
isEscapedModel in interface ShoppingCategoryModel
Returns:
true if this model instance is escaped; false otherwise

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

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
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
Parameters:
serviceContext - the service context
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
Overrides:
clone in class Object
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>

hashCode

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

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
Returns:
the cache model object

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
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

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

persist

public void persist()
             throws SystemException
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel
Throws:
SystemException - if a system exception occurred

isRoot

public boolean isRoot()
Specified by:
isRoot in interface ShoppingCategory

equals

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

getWrappedShoppingCategory

public ShoppingCategory getWrappedShoppingCategory()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

public ShoppingCategory getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<ShoppingCategory>

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<ShoppingCategory>

Liferay 6.1.2-ce-ga3