|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.impl.BaseModelImpl<Portlet>
com.liferay.portal.model.impl.PortletModelImpl
public class PortletModelImpl
The base model implementation for the Portlet service. Represents a row in the "Portlet" database table, with each column mapped to a property of this class.
This implementation and its corresponding interface PortletModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in PortletImpl.
Never modify or reference this class directly. All methods that expect a portlet model instance should use the Portlet interface instead.
PortletImpl,
Portlet,
PortletModel,
Serialized Form| 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 | |
|---|---|
PortletModelImpl()
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Portlet portlet)
|
boolean |
equals(Object obj)
|
boolean |
getActive()
Gets the active of this portlet. |
long |
getCompanyId()
Gets the company id of this portlet. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
long |
getId()
Gets the id of this portlet. |
long |
getOriginalCompanyId()
|
String |
getOriginalPortletId()
|
String |
getPortletId()
Gets the portlet id of this portlet. |
long |
getPrimaryKey()
Gets the primary key of this portlet. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
String |
getRoles()
Gets the roles of this portlet. |
int |
hashCode()
|
boolean |
isActive()
Determines whether this portlet is active. |
void |
setActive(boolean active)
Sets whether this {$entity.humanName} is active. |
void |
setCompanyId(long companyId)
Sets the company id of this portlet. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setId(long id)
Sets the id of this portlet. |
void |
setPortletId(String portletId)
Sets the portlet id of this portlet. |
void |
setPrimaryKey(long pk)
Sets the primary key of this portlet |
void |
setRoles(String roles)
Sets the roles of this portlet. |
Portlet |
toEscapedModel()
Gets a copy of this portlet as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
static Portlet |
toModel(PortletSoap soapModel)
Converts the soap model instance into a normal model instance. |
static List<Portlet> |
toModels(PortletSoap[] 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.portal.model.PortletModel |
|---|
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew |
| Field Detail |
|---|
public static final String TABLE_NAME
public static final Object[][] TABLE_COLUMNS
public static final String TABLE_SQL_CREATE
public static final String TABLE_SQL_DROP
public static final String DATA_SOURCE
public static final String SESSION_FACTORY
public static final String TX_MANAGER
public static final boolean ENTITY_CACHE_ENABLED
public static final boolean FINDER_CACHE_ENABLED
public static final long LOCK_EXPIRATION_TIME
| Constructor Detail |
|---|
public PortletModelImpl()
| Method Detail |
|---|
public static Portlet toModel(PortletSoap soapModel)
soapModel - the soap model instance to convert
public static List<Portlet> toModels(PortletSoap[] soapModels)
soapModels - the soap model instances to convert
public long getPrimaryKey()
PortletModel
getPrimaryKey in interface PortletModelpublic void setPrimaryKey(long pk)
PortletModel
setPrimaryKey in interface PortletModelpk - the primary key of this portletpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Portlet>getPrimaryKeyObj in interface PortletModelpublic long getId()
PortletModel
getId in interface PortletModelpublic void setId(long id)
PortletModel
setId in interface PortletModelid - the id of this portletpublic long getCompanyId()
PortletModel
getCompanyId in interface PortletModelpublic void setCompanyId(long companyId)
PortletModel
setCompanyId in interface PortletModelcompanyId - the company id of this portletpublic long getOriginalCompanyId()
public String getPortletId()
PortletModel
getPortletId in interface PortletModelpublic void setPortletId(String portletId)
PortletModel
setPortletId in interface PortletModelportletId - the portlet id of this portletpublic String getOriginalPortletId()
public String getRoles()
PortletModel
getRoles in interface PortletModelpublic void setRoles(String roles)
PortletModel
setRoles in interface PortletModelroles - the roles of this portletpublic boolean getActive()
PortletModel
getActive in interface PortletModelpublic boolean isActive()
PortletModel
isActive in interface PortletModelpublic void setActive(boolean active)
PortletModel
setActive in interface PortletModelactive - the active of this portletpublic Portlet toEscapedModel()
PortletModelAutoEscapeBeanHandler.
toEscapedModel in interface PortletModelAutoEscapeBeanHandlerpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Portlet>getExpandoBridge in interface PortletModelgetExpandoBridge in class BaseModelImpl<Portlet>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<Portlet>setExpandoBridgeAttributes in interface PortletModelsetExpandoBridgeAttributes in class BaseModelImpl<Portlet>serviceContext - the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<Portlet>clone in interface PortletModelclone in class BaseModelImpl<Portlet>public int compareTo(Portlet portlet)
compareTo in interface PortletModelcompareTo in interface Comparable<Portlet>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in interface PortletModelhashCode in class Objectpublic String toString()
toString in interface PortletModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<Portlet>toXmlString in interface PortletModel
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||