|
Liferay 6.2-ce-ga5 | |||||||||
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 FormField 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, setExpandoBridgeAttributes, setExpandoBridgeAttributes, 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, setExpandoBridgeAttributes, setExpandoBridgeAttributes, 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 PortletModel
public void setPrimaryKey(long primaryKey)
PortletModel
setPrimaryKey
in interface PortletModel
primaryKey
- the primary key of this portletpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Portlet>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface PortletModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<Portlet>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface PortletModel
primaryKeyObj
- the primary key of this model instancepublic Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public 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 PortletModel
public void setId(long id)
PortletModel
setId
in interface PortletModel
id
- the ID of this portlet@JSON public 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()
@JSON 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()
@JSON public String getRoles()
PortletModel
getRoles
in interface PortletModel
public void setRoles(String roles)
PortletModel
setRoles
in interface PortletModel
roles
- the roles of this portlet@JSON public boolean getActive()
PortletModel
getActive
in interface PortletModel
public boolean isActive()
PortletModel
true
if this portlet is active.
isActive
in interface PortletModel
true
if this portlet is active; false
otherwisepublic void setActive(boolean active)
PortletModel
setActive
in interface PortletModel
active
- the active of this portletpublic long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Portlet>
getExpandoBridge
in interface ClassedModel
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 be appliedServiceContext.getExpandoBridgeAttributes(
)
public Portlet toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<Portlet>
toEscapedModel
in interface PortletModel
toEscapedModel
in class BaseModelImpl<Portlet>
AutoEscapeBeanHandler
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 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 PortletModel
toCacheModel
in class BaseModelImpl<Portlet>
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.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |