Liferay 6.1.2-ce-ga3

com.liferay.portal.model.impl
Class PortletItemModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<PortletItem>
      extended by com.liferay.portal.model.impl.PortletItemModelImpl
All Implemented Interfaces:
AuditedModel, BaseModel<PortletItem>, ClassedModel, GroupedModel, PortletItemModel, Serializable, Cloneable, Comparable<PortletItem>
Direct Known Subclasses:
PortletItemBaseImpl

public class PortletItemModelImpl
extends BaseModelImpl<PortletItem>
implements PortletItemModel

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

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

See Also:
PortletItemImpl, PortletItem, PortletItemModel, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static long CLASSNAMEID_COLUMN_BITMASK
           
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 long NAME_COLUMN_BITMASK
           
static long PORTLETID_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
PortletItemModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(PortletItem portletItem)
           
 boolean equals(Object obj)
           
 String getClassName()
          Returns the fully qualified class name of this portlet item.
 long getClassNameId()
          Returns the class name ID of this portlet item.
 long getColumnBitmask()
           
 long getCompanyId()
          Returns the company ID of this portlet item.
 Date getCreateDate()
          Returns the create date of this portlet item.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 long getGroupId()
          Returns the group ID of this portlet item.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this portlet item.
 String getName()
          Returns the name of this portlet item.
 long getOriginalClassNameId()
           
 long getOriginalGroupId()
           
 String getOriginalName()
           
 String getOriginalPortletId()
           
 String getPortletId()
          Returns the portlet ID of this portlet item.
 long getPortletItemId()
          Returns the portlet item ID of this portlet item.
 long getPrimaryKey()
          Returns the primary key of this portlet item.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 long getUserId()
          Returns the user ID of this portlet item.
 String getUserName()
          Returns the user name of this portlet item.
 String getUserUuid()
          Returns the user uuid of this portlet item.
 int hashCode()
           
 void resetOriginalValues()
          Reset all original fields to current values.
 void setClassName(String className)
           
 void setClassNameId(long classNameId)
          Sets the class name ID of this portlet item.
 void setCompanyId(long companyId)
          Sets the company ID of this portlet item.
 void setCreateDate(Date createDate)
          Sets the create date of this portlet item.
 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 portlet item.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this portlet item.
 void setName(String name)
          Sets the name of this portlet item.
 void setPortletId(String portletId)
          Sets the portlet ID of this portlet item.
 void setPortletItemId(long portletItemId)
          Sets the portlet item ID of this portlet item.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this portlet item.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setUserId(long userId)
          Sets the user ID of this portlet item.
 void setUserName(String userName)
          Sets the user name of this portlet item.
 void setUserUuid(String userUuid)
          Sets the user uuid of this portlet item.
 CacheModel<PortletItem> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 PortletItem toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 PortletItem 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.portal.model.PortletItemModel
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

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

CLASSNAMEID_COLUMN_BITMASK

public static long CLASSNAMEID_COLUMN_BITMASK

GROUPID_COLUMN_BITMASK

public static long GROUPID_COLUMN_BITMASK

NAME_COLUMN_BITMASK

public static long NAME_COLUMN_BITMASK

PORTLETID_COLUMN_BITMASK

public static long PORTLETID_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

PortletItemModelImpl

public PortletItemModelImpl()
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: PortletItemModel
Returns the primary key of this portlet item.

Specified by:
getPrimaryKey in interface PortletItemModel
Returns:
the primary key of this portlet item

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Description copied from interface: PortletItemModel
Sets the primary key of this portlet item.

Specified by:
setPrimaryKey in interface PortletItemModel
Parameters:
primaryKey - the primary key of this portlet item

getPrimaryKeyObj

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

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

setModelAttributes

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

getPortletItemId

public long getPortletItemId()
Description copied from interface: PortletItemModel
Returns the portlet item ID of this portlet item.

Specified by:
getPortletItemId in interface PortletItemModel
Returns:
the portlet item ID of this portlet item

setPortletItemId

public void setPortletItemId(long portletItemId)
Description copied from interface: PortletItemModel
Sets the portlet item ID of this portlet item.

Specified by:
setPortletItemId in interface PortletItemModel
Parameters:
portletItemId - the portlet item ID of this portlet item

getGroupId

public long getGroupId()
Description copied from interface: PortletItemModel
Returns the group ID of this portlet item.

Specified by:
getGroupId in interface GroupedModel
Specified by:
getGroupId in interface PortletItemModel
Returns:
the group ID of this portlet item

setGroupId

public void setGroupId(long groupId)
Description copied from interface: PortletItemModel
Sets the group ID of this portlet item.

Specified by:
setGroupId in interface GroupedModel
Specified by:
setGroupId in interface PortletItemModel
Parameters:
groupId - the group ID of this portlet item

getOriginalGroupId

public long getOriginalGroupId()

getCompanyId

public long getCompanyId()
Description copied from interface: PortletItemModel
Returns the company ID of this portlet item.

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface PortletItemModel
Returns:
the company ID of this portlet item

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: PortletItemModel
Sets the company ID of this portlet item.

Specified by:
setCompanyId in interface AuditedModel
Specified by:
setCompanyId in interface PortletItemModel
Parameters:
companyId - the company ID of this portlet item

getUserId

public long getUserId()
Description copied from interface: PortletItemModel
Returns the user ID of this portlet item.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface PortletItemModel
Returns:
the user ID of this portlet item

setUserId

public void setUserId(long userId)
Description copied from interface: PortletItemModel
Sets the user ID of this portlet item.

Specified by:
setUserId in interface AuditedModel
Specified by:
setUserId in interface PortletItemModel
Parameters:
userId - the user ID of this portlet item

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: PortletItemModel
Returns the user uuid of this portlet item.

Specified by:
getUserUuid in interface AuditedModel
Specified by:
getUserUuid in interface PortletItemModel
Returns:
the user uuid of this portlet item
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: PortletItemModel
Sets the user uuid of this portlet item.

Specified by:
setUserUuid in interface AuditedModel
Specified by:
setUserUuid in interface PortletItemModel
Parameters:
userUuid - the user uuid of this portlet item

getUserName

public String getUserName()
Description copied from interface: PortletItemModel
Returns the user name of this portlet item.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface PortletItemModel
Returns:
the user name of this portlet item

setUserName

public void setUserName(String userName)
Description copied from interface: PortletItemModel
Sets the user name of this portlet item.

Specified by:
setUserName in interface AuditedModel
Specified by:
setUserName in interface PortletItemModel
Parameters:
userName - the user name of this portlet item

getCreateDate

public Date getCreateDate()
Description copied from interface: PortletItemModel
Returns the create date of this portlet item.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface PortletItemModel
Returns:
the create date of this portlet item

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: PortletItemModel
Sets the create date of this portlet item.

Specified by:
setCreateDate in interface AuditedModel
Specified by:
setCreateDate in interface PortletItemModel
Parameters:
createDate - the create date of this portlet item

getModifiedDate

public Date getModifiedDate()
Description copied from interface: PortletItemModel
Returns the modified date of this portlet item.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface PortletItemModel
Returns:
the modified date of this portlet item

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Description copied from interface: PortletItemModel
Sets the modified date of this portlet item.

Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface PortletItemModel
Parameters:
modifiedDate - the modified date of this portlet item

getName

public String getName()
Description copied from interface: PortletItemModel
Returns the name of this portlet item.

Specified by:
getName in interface PortletItemModel
Returns:
the name of this portlet item

setName

public void setName(String name)
Description copied from interface: PortletItemModel
Sets the name of this portlet item.

Specified by:
setName in interface PortletItemModel
Parameters:
name - the name of this portlet item

getOriginalName

public String getOriginalName()

getPortletId

public String getPortletId()
Description copied from interface: PortletItemModel
Returns the portlet ID of this portlet item.

Specified by:
getPortletId in interface PortletItemModel
Returns:
the portlet ID of this portlet item

setPortletId

public void setPortletId(String portletId)
Description copied from interface: PortletItemModel
Sets the portlet ID of this portlet item.

Specified by:
setPortletId in interface PortletItemModel
Parameters:
portletId - the portlet ID of this portlet item

getOriginalPortletId

public String getOriginalPortletId()

getClassName

public String getClassName()
Description copied from interface: PortletItemModel
Returns the fully qualified class name of this portlet item.

Specified by:
getClassName in interface PortletItemModel
Returns:
the fully qualified class name of this portlet item

setClassName

public void setClassName(String className)
Specified by:
setClassName in interface PortletItemModel

getClassNameId

public long getClassNameId()
Description copied from interface: PortletItemModel
Returns the class name ID of this portlet item.

Specified by:
getClassNameId in interface PortletItemModel
Returns:
the class name ID of this portlet item

setClassNameId

public void setClassNameId(long classNameId)
Description copied from interface: PortletItemModel
Sets the class name ID of this portlet item.

Specified by:
setClassNameId in interface PortletItemModel
Parameters:
classNameId - the class name ID of this portlet item

getOriginalClassNameId

public long getOriginalClassNameId()

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<PortletItem>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface PortletItemModel
Overrides:
getExpandoBridge in class BaseModelImpl<PortletItem>
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<PortletItem>
Specified by:
setExpandoBridgeAttributes in interface PortletItemModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<PortletItem>
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

toEscapedModel

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

toUnescapedModel

public PortletItem toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<PortletItem>
Specified by:
toUnescapedModel in interface PortletItemModel
Overrides:
toUnescapedModel in class BaseModelImpl<PortletItem>

clone

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

Specified by:
clone in interface BaseModel<PortletItem>
Specified by:
clone in interface PortletItemModel
Specified by:
clone in class BaseModelImpl<PortletItem>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(PortletItem portletItem)
Specified by:
compareTo in interface PortletItemModel
Specified by:
compareTo in interface Comparable<PortletItem>

equals

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

hashCode

public int hashCode()
Specified by:
hashCode in interface PortletItemModel
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<PortletItem>
Overrides:
resetOriginalValues in class BaseModelImpl<PortletItem>

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<PortletItem>
Specified by:
toCacheModel in interface PortletItemModel
Overrides:
toCacheModel in class BaseModelImpl<PortletItem>
Returns:
the cache model object

toString

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

Liferay 6.1.2-ce-ga3