|
Liferay 6.2.0-ce-m4 | |||||||||
| 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
@JSON(strict=true) 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.
PortletImpl,
Portlet,
PortletModel,
Serialized Form| Field Summary | |
|---|---|
static boolean |
COLUMN_BITMASK_ENABLED
|
static long |
COMPANYID_COLUMN_BITMASK
|
static String |
DATA_SOURCE
|
static boolean |
ENTITY_CACHE_ENABLED
|
static boolean |
FINDER_CACHE_ENABLED
|
static long |
ID_COLUMN_BITMASK
|
static long |
LOCK_EXPIRATION_TIME
|
static String |
ORDER_BY_JPQL
|
static String |
ORDER_BY_SQL
|
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 | |
|---|---|
PortletModelImpl()
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Portlet portlet)
|
boolean |
equals(Object obj)
|
boolean |
getActive()
Returns the active of this portlet. |
long |
getColumnBitmask()
|
long |
getCompanyId()
Returns the company ID of this portlet. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
long |
getId()
Returns the ID of this portlet. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
long |
getOriginalCompanyId()
|
String |
getOriginalPortletId()
|
String |
getPortletId()
Returns the portlet ID of this portlet. |
long |
getPrimaryKey()
Returns the primary key of this portlet. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
String |
getRoles()
Returns the roles of this portlet. |
int |
hashCode()
|
boolean |
isActive()
Returns true if this portlet is active. |
void |
resetOriginalValues()
Reset all original fields to current values. |
void |
setActive(boolean active)
Sets whether this portlet 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 |
setModelAttributes(Map<String,Object> attributes)
|
void |
setPortletId(String portletId)
Sets the portlet ID of this portlet. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this portlet. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setRoles(String roles)
Sets the roles of this portlet. |
CacheModel<Portlet> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
Portlet |
toEscapedModel()
Returns 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()
Returns the XML representation of this model instance. |
| Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl |
|---|
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setNew, toUnescapedModel |
| 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, setNew, toUnescapedModel |
| 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 ORDER_BY_JPQL
public static final String ORDER_BY_SQL
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 boolean COLUMN_BITMASK_ENABLED
public static long COMPANYID_COLUMN_BITMASK
public static long PORTLETID_COLUMN_BITMASK
public static long ID_COLUMN_BITMASK
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 primaryKey)
PortletModel
setPrimaryKey in interface PortletModelprimaryKey - the primary key of this portletpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Portlet>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface PortletModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<Portlet>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface PortletModelprimaryKeyObj - the primary key of this model instancepublic Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<Portlet>getModelAttributes in class BaseModelImpl<Portlet>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<Portlet>setModelAttributes in class BaseModelImpl<Portlet>@JSON public long getId()
PortletModel
getId in interface PortletModelpublic void setId(long id)
PortletModel
setId in interface PortletModelid - the ID of this portlet@JSON public long getCompanyId()
PortletModel
getCompanyId in interface PortletModelpublic void setCompanyId(long companyId)
PortletModel
setCompanyId in interface PortletModelcompanyId - the company ID of this portletpublic long getOriginalCompanyId()
@JSON 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()
@JSON public String getRoles()
PortletModel
getRoles in interface PortletModelpublic void setRoles(String roles)
PortletModel
setRoles in interface PortletModelroles - the roles of this portlet@JSON public boolean getActive()
PortletModel
getActive in interface PortletModelpublic boolean isActive()
PortletModeltrue if this portlet is active.
isActive in interface PortletModeltrue if this portlet is active; false otherwisepublic void setActive(boolean active)
PortletModel
setActive in interface PortletModelactive - the active of this portletpublic long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Portlet>getExpandoBridge in interface ClassedModelgetExpandoBridge 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 contextServiceContext.getExpandoBridgeAttributes(
)public Portlet toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<Portlet>toEscapedModel in interface PortletModeltoEscapedModel in class BaseModelImpl<Portlet>AutoEscapeBeanHandlerpublic 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 void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<Portlet>resetOriginalValues in class BaseModelImpl<Portlet>public CacheModel<Portlet> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<Portlet>toCacheModel in interface PortletModeltoCacheModel in class BaseModelImpl<Portlet>public String toString()
toString in interface PortletModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<Portlet>toXmlString in interface PortletModel
|
Liferay 6.2.0-ce-m4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||