Liferay 7.0-ce-b7 portal-impl

com.liferay.portal.model.impl
Class PortletModelImpl

java.lang.Object
  extended by com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Portlet>
      extended by com.liferay.portal.model.impl.PortletModelImpl
All Implemented Interfaces:
com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Portlet>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.PortletModel, com.liferay.portal.kernel.model.ShardedModel, Serializable, Cloneable, Comparable<com.liferay.portal.kernel.model.Portlet>
Direct Known Subclasses:
PortletBaseImpl

@JSON(strict=true)
@ProviderType
public class PortletModelImpl
extends com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Portlet>
implements com.liferay.portal.kernel.model.PortletModel

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.

See Also:
PortletImpl, Portlet, PortletModel, Serialized Form
{$generated.description}

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 Map<String,Integer> TABLE_COLUMNS_MAP
           
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()
           
 int compareTo(com.liferay.portal.kernel.model.Portlet portlet)
           
 boolean equals(Object obj)
           
 boolean getActive()
           
 long getColumnBitmask()
           
 long getCompanyId()
           
 com.liferay.expando.kernel.model.ExpandoBridge getExpandoBridge()
           
 long getId()
           
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 long getMvccVersion()
           
 long getOriginalCompanyId()
           
 String getOriginalPortletId()
           
 String getPortletId()
           
 long getPrimaryKey()
           
 Serializable getPrimaryKeyObj()
           
 String getRoles()
           
 int hashCode()
           
 boolean isActive()
           
 boolean isEntityCacheEnabled()
           
 boolean isFinderCacheEnabled()
           
 void resetOriginalValues()
           
 void setActive(boolean active)
           
 void setCompanyId(long companyId)
           
 void setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 void setId(long id)
           
 void setModelAttributes(Map<String,Object> attributes)
           
 void setMvccVersion(long mvccVersion)
           
 void setPortletId(String portletId)
           
 void setPrimaryKey(long primaryKey)
           
 void setPrimaryKeyObj(Serializable primaryKeyObj)
           
 void setRoles(String roles)
           
 com.liferay.portal.kernel.model.CacheModel<com.liferay.portal.kernel.model.Portlet> toCacheModel()
           
 com.liferay.portal.kernel.model.Portlet toEscapedModel()
           
static com.liferay.portal.kernel.model.Portlet toModel(com.liferay.portal.kernel.model.PortletSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<com.liferay.portal.kernel.model.Portlet> toModels(com.liferay.portal.kernel.model.PortletSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 String toXmlString()
           
 
Methods inherited from class com.liferay.portal.kernel.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.kernel.model.PortletModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
 

Field Detail

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_COLUMNS_MAP

public static final Map<String,Integer> TABLE_COLUMNS_MAP

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

ORDER_BY_JPQL

public static final String ORDER_BY_JPQL
See Also:
Constant Field Values

ORDER_BY_SQL

public static final String ORDER_BY_SQL
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

COMPANYID_COLUMN_BITMASK

public static final long COMPANYID_COLUMN_BITMASK
See Also:
Constant Field Values

PORTLETID_COLUMN_BITMASK

public static final long PORTLETID_COLUMN_BITMASK
See Also:
Constant Field Values

ID_COLUMN_BITMASK

public static final long ID_COLUMN_BITMASK
See Also:
Constant Field Values

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

PortletModelImpl

public PortletModelImpl()
Method Detail

toModel

public static com.liferay.portal.kernel.model.Portlet toModel(com.liferay.portal.kernel.model.PortletSoap soapModel)
Converts the soap model instance into a normal model instance.

Parameters:
soapModel - the soap model instance to convert
Returns:
the normal model instance

toModels

public static List<com.liferay.portal.kernel.model.Portlet> toModels(com.liferay.portal.kernel.model.PortletSoap[] soapModels)
Converts the soap model instances into normal model instances.

Parameters:
soapModels - the soap model instances to convert
Returns:
the normal model instances

getPrimaryKey

public long getPrimaryKey()
Specified by:
getPrimaryKey in interface com.liferay.portal.kernel.model.PortletModel

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Specified by:
setPrimaryKey in interface com.liferay.portal.kernel.model.PortletModel

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Specified by:
getPrimaryKeyObj in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Portlet>
Specified by:
getPrimaryKeyObj in interface com.liferay.portal.kernel.model.ClassedModel
Specified by:
getPrimaryKeyObj in interface com.liferay.portal.kernel.model.PortletModel

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Specified by:
setPrimaryKeyObj in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Portlet>
Specified by:
setPrimaryKeyObj in interface com.liferay.portal.kernel.model.ClassedModel
Specified by:
setPrimaryKeyObj in interface com.liferay.portal.kernel.model.PortletModel

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface com.liferay.portal.kernel.model.ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface com.liferay.portal.kernel.model.ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Portlet>
Overrides:
getModelAttributes in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Portlet>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Portlet>
Overrides:
setModelAttributes in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Portlet>

getMvccVersion

@JSON
public long getMvccVersion()
Specified by:
getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
Specified by:
getMvccVersion in interface com.liferay.portal.kernel.model.PortletModel

setMvccVersion

public void setMvccVersion(long mvccVersion)
Specified by:
setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
Specified by:
setMvccVersion in interface com.liferay.portal.kernel.model.PortletModel

getId

@JSON
public long getId()
Specified by:
getId in interface com.liferay.portal.kernel.model.PortletModel

setId

public void setId(long id)
Specified by:
setId in interface com.liferay.portal.kernel.model.PortletModel

getCompanyId

@JSON
public long getCompanyId()
Specified by:
getCompanyId in interface com.liferay.portal.kernel.model.PortletModel
Specified by:
getCompanyId in interface com.liferay.portal.kernel.model.ShardedModel

setCompanyId

public void setCompanyId(long companyId)
Specified by:
setCompanyId in interface com.liferay.portal.kernel.model.PortletModel
Specified by:
setCompanyId in interface com.liferay.portal.kernel.model.ShardedModel

getOriginalCompanyId

public long getOriginalCompanyId()

getPortletId

@JSON
public String getPortletId()
Specified by:
getPortletId in interface com.liferay.portal.kernel.model.PortletModel

setPortletId

public void setPortletId(String portletId)
Specified by:
setPortletId in interface com.liferay.portal.kernel.model.PortletModel

getOriginalPortletId

public String getOriginalPortletId()

getRoles

@JSON
public String getRoles()
Specified by:
getRoles in interface com.liferay.portal.kernel.model.PortletModel

setRoles

public void setRoles(String roles)
Specified by:
setRoles in interface com.liferay.portal.kernel.model.PortletModel

getActive

@JSON
public boolean getActive()
Specified by:
getActive in interface com.liferay.portal.kernel.model.PortletModel

isActive

public boolean isActive()
Specified by:
isActive in interface com.liferay.portal.kernel.model.PortletModel

setActive

public void setActive(boolean active)
Specified by:
setActive in interface com.liferay.portal.kernel.model.PortletModel

getColumnBitmask

public long getColumnBitmask()

getExpandoBridge

public com.liferay.expando.kernel.model.ExpandoBridge getExpandoBridge()
Specified by:
getExpandoBridge in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Portlet>
Specified by:
getExpandoBridge in interface com.liferay.portal.kernel.model.ClassedModel
Specified by:
getExpandoBridge in interface com.liferay.portal.kernel.model.PortletModel
Overrides:
getExpandoBridge in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Portlet>

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext)
Specified by:
setExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Portlet>
Specified by:
setExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.PortletModel
Overrides:
setExpandoBridgeAttributes in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Portlet>

toEscapedModel

public com.liferay.portal.kernel.model.Portlet toEscapedModel()
Specified by:
toEscapedModel in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Portlet>
Specified by:
toEscapedModel in interface com.liferay.portal.kernel.model.PortletModel
Overrides:
toEscapedModel in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Portlet>

clone

public Object clone()
Specified by:
clone in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Portlet>
Specified by:
clone in interface com.liferay.portal.kernel.model.PortletModel
Specified by:
clone in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Portlet>

compareTo

public int compareTo(com.liferay.portal.kernel.model.Portlet portlet)
Specified by:
compareTo in interface com.liferay.portal.kernel.model.PortletModel
Specified by:
compareTo in interface Comparable<com.liferay.portal.kernel.model.Portlet>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface com.liferay.portal.kernel.model.PortletModel
Overrides:
hashCode in class Object

isEntityCacheEnabled

public boolean isEntityCacheEnabled()
Specified by:
isEntityCacheEnabled in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Portlet>

isFinderCacheEnabled

public boolean isFinderCacheEnabled()
Specified by:
isFinderCacheEnabled in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Portlet>

resetOriginalValues

public void resetOriginalValues()
Specified by:
resetOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Portlet>
Overrides:
resetOriginalValues in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Portlet>

toCacheModel

public com.liferay.portal.kernel.model.CacheModel<com.liferay.portal.kernel.model.Portlet> toCacheModel()
Specified by:
toCacheModel in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Portlet>
Specified by:
toCacheModel in interface com.liferay.portal.kernel.model.PortletModel
Overrides:
toCacheModel in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Portlet>

toString

public String toString()
Specified by:
toString in interface com.liferay.portal.kernel.model.PortletModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Specified by:
toXmlString in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Portlet>
Specified by:
toXmlString in interface com.liferay.portal.kernel.model.PortletModel

Liferay 7.0-ce-b7 portal-impl