|
Liferay 6.0-ee | |||||||||
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 FormField 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 entity 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 PortletModel
public void setPrimaryKey(long pk)
PortletModel
setPrimaryKey
in interface PortletModel
pk
- the primary key of this portletpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Portlet>
getPrimaryKeyObj
in interface PortletModel
public long getId()
PortletModel
getId
in interface PortletModel
public void setId(long id)
PortletModel
setId
in interface PortletModel
id
- the id of this portletpublic long getCompanyId()
PortletModel
getCompanyId
in interface PortletModel
public void setCompanyId(long companyId)
PortletModel
setCompanyId
in interface PortletModel
companyId
- the company id of this portletpublic long getOriginalCompanyId()
public String getPortletId()
PortletModel
getPortletId
in interface PortletModel
public void setPortletId(String portletId)
PortletModel
setPortletId
in interface PortletModel
portletId
- the portlet id of this portletpublic String getOriginalPortletId()
public String getRoles()
PortletModel
getRoles
in interface PortletModel
public void setRoles(String roles)
PortletModel
setRoles
in interface PortletModel
roles
- the roles of this portletpublic boolean getActive()
PortletModel
getActive
in interface PortletModel
public boolean isActive()
PortletModel
isActive
in interface PortletModel
public void setActive(boolean active)
PortletModel
setActive
in interface PortletModel
active
- the active of this portletpublic Portlet toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<Portlet>
toEscapedModel
in interface PortletModel
toEscapedModel
in class BaseModelImpl<Portlet>
AutoEscapeBeanHandler
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Portlet>
getExpandoBridge
in interface PortletModel
getExpandoBridge
in class BaseModelImpl<Portlet>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Portlet>
setExpandoBridgeAttributes
in interface PortletModel
setExpandoBridgeAttributes
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 PortletModel
clone
in class BaseModelImpl<Portlet>
public int compareTo(Portlet portlet)
compareTo
in interface PortletModel
compareTo
in interface Comparable<Portlet>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in interface PortletModel
hashCode
in class Object
public String toString()
toString
in interface PortletModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Portlet>
toXmlString
in interface PortletModel
|
Liferay 6.0-ee | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |