|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletModel
The base model interface for the Portlet service. Represents a row in the "Portlet" database table, with each column mapped to a property of this class.
This interface and its corresponding implementation PortletModelImpl
exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in PortletImpl
.
Portlet
,
PortletImpl
,
PortletModelImpl
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Portlet portlet)
|
boolean |
getActive()
Returns the active of this portlet. |
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. |
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. |
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
boolean |
isNew()
Returns true if this model instance does not yet exist in
the database. |
void |
setActive(boolean active)
Sets whether this portlet is active. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
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 |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
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 . |
String |
toString()
|
Portlet |
toUnescapedModel()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
Methods inherited from interface com.liferay.portal.model.BaseModel |
---|
getModelAttributes, resetOriginalValues, setModelAttributes |
Methods inherited from interface com.liferay.portal.model.ClassedModel |
---|
getModelClass, getModelClassName |
Method Detail |
---|
long getPrimaryKey()
void setPrimaryKey(long primaryKey)
primaryKey
- the primary key of this portletlong getId()
void setId(long id)
id
- the ID of this portletlong getCompanyId()
void setCompanyId(long companyId)
companyId
- the company ID of this portlet@AutoEscape String getPortletId()
void setPortletId(String portletId)
portletId
- the portlet ID of this portlet@AutoEscape String getRoles()
void setRoles(String roles)
roles
- the roles of this portletboolean getActive()
boolean isActive()
true
if this portlet is active.
true
if this portlet is active; false
otherwisevoid setActive(boolean active)
active
- the active of this portletboolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<Portlet>
true
if this model instance does not yet exist in
the database; false
otherwisevoid setNew(boolean n)
BaseModel
setNew
in interface BaseModel<Portlet>
n
- whether this model instance does not yet exist in the databaseboolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<Portlet>
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<Portlet>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<Portlet>
true
if this model instance is escaped;
false
otherwiseSerializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Portlet>
getPrimaryKeyObj
in interface ClassedModel
void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<Portlet>
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instanceExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Portlet>
getExpandoBridge
in interface ClassedModel
void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Portlet>
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
Object clone()
BaseModel
clone
in interface BaseModel<Portlet>
int compareTo(Portlet portlet)
compareTo
in interface Comparable<Portlet>
int hashCode()
hashCode
in class Object
CacheModel<Portlet> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<Portlet>
Portlet toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<Portlet>
AutoEscapeBeanHandler
Portlet toUnescapedModel()
toUnescapedModel
in interface BaseModel<Portlet>
String toString()
toString
in class Object
String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Portlet>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |