Liferay 6.0.5

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:
BaseModel<PortletItem>, PortletItemModel, Serializable, Cloneable, Comparable<PortletItem>
Direct Known Subclasses:
PortletItemImpl

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.

Never modify or reference this class directly. All methods that expect a portlet item model instance should use the PortletItem interface instead.

See Also:
PortletItemImpl, PortletItem, PortletItemModel, 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 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()
          Gets the class name of the model instance this portlet item is polymorphically associated with.
 long getClassNameId()
          Gets the class name id of this portlet item.
 long getCompanyId()
          Gets the company id of this portlet item.
 Date getCreateDate()
          Gets the create date of this portlet item.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 long getGroupId()
          Gets the group id of this portlet item.
 Date getModifiedDate()
          Gets the modified date of this portlet item.
 String getName()
          Gets the name of this portlet item.
 long getOriginalClassNameId()
           
 long getOriginalGroupId()
           
 String getOriginalName()
           
 String getOriginalPortletId()
           
 String getPortletId()
          Gets the portlet id of this portlet item.
 long getPortletItemId()
          Gets the portlet item id of this portlet item.
 long getPrimaryKey()
          Gets the primary key of this portlet item.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 long getUserId()
          Gets the user id of this portlet item.
 String getUserName()
          Gets the user name of this portlet item.
 String getUserUuid()
          Gets the user uuid of this portlet item.
 int hashCode()
           
 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 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 pk)
          Sets the primary key of this portlet item
 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.
 PortletItem toEscapedModel()
          Gets a copy of this portlet item as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 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.portal.model.PortletItemModel
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

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

PortletItemModelImpl

public PortletItemModelImpl()
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: PortletItemModel
Gets 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 pk)
Description copied from interface: PortletItemModel
Sets the primary key of this portlet item

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

getPrimaryKeyObj

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

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

getPortletItemId

public long getPortletItemId()
Description copied from interface: PortletItemModel
Gets 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
Gets the group id of this portlet item.

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 PortletItemModel
Parameters:
groupId - the group id of this portlet item

getOriginalGroupId

public long getOriginalGroupId()

getCompanyId

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

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 PortletItemModel
Parameters:
companyId - the company id of this portlet item

getUserId

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

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 PortletItemModel
Parameters:
userId - the user id of this portlet item

getUserUuid

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

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 PortletItemModel
Parameters:
userUuid - the user uuid of this portlet item

getUserName

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

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 PortletItemModel
Parameters:
userName - the user name of this portlet item

getCreateDate

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

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 PortletItemModel
Parameters:
createDate - the create date of this portlet item

getModifiedDate

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

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 PortletItemModel
Parameters:
modifiedDate - the modified date of this portlet item

getName

public String getName()
Description copied from interface: PortletItemModel
Gets 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
Gets 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
Gets the class name of the model instance this portlet item is polymorphically associated with.

Specified by:
getClassName in interface PortletItemModel
Returns:
the class name of the model instance this portlet item is polymorphically associated with

getClassNameId

public long getClassNameId()
Description copied from interface: PortletItemModel
Gets 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()

toEscapedModel

public PortletItem toEscapedModel()
Description copied from interface: PortletItemModel
Gets a copy of this portlet item as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface PortletItemModel
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<PortletItem>
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 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<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

toString

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

Liferay 6.0.5