com.liferay.portal.model.impl
Class RoleModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Role>
      extended by com.liferay.portal.model.impl.RoleModelImpl
All Implemented Interfaces:
com.liferay.portal.model.AttachedModel, com.liferay.portal.model.BaseModel<com.liferay.portal.model.Role>, com.liferay.portal.model.ClassedModel, com.liferay.portal.model.RoleModel, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<com.liferay.portal.model.Role>
Direct Known Subclasses:
RoleBaseImpl

@JSON(strict=true)
public class RoleModelImpl
extends com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Role>
implements com.liferay.portal.model.RoleModel

The base model implementation for the Role service. Represents a row in the "Role_" database table, with each column mapped to a property of this class.

This implementation and its corresponding interface RoleModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in RoleImpl.

Author:
Brian Wing Shun Chan
See Also:
RoleImpl, Role, RoleModel, Serialized Form
Generated:

Field Summary
static long CLASSNAMEID_COLUMN_BITMASK
           
static long CLASSPK_COLUMN_BITMASK
           
static boolean COLUMN_BITMASK_ENABLED
           
static long COMPANYID_COLUMN_BITMASK
           
static java.lang.String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED_GROUPS_ROLES
           
static boolean FINDER_CACHE_ENABLED_ROLES_PERMISSIONS
           
static boolean FINDER_CACHE_ENABLED_USERS_ROLES
           
static long LOCK_EXPIRATION_TIME
           
static java.lang.Object[][] MAPPING_TABLE_GROUPS_ROLES_COLUMNS
           
static java.lang.String MAPPING_TABLE_GROUPS_ROLES_NAME
           
static java.lang.String MAPPING_TABLE_GROUPS_ROLES_SQL_CREATE
           
static java.lang.Object[][] MAPPING_TABLE_ROLES_PERMISSIONS_COLUMNS
           
static java.lang.String MAPPING_TABLE_ROLES_PERMISSIONS_NAME
           
static java.lang.String MAPPING_TABLE_ROLES_PERMISSIONS_SQL_CREATE
           
static java.lang.Object[][] MAPPING_TABLE_USERS_ROLES_COLUMNS
           
static java.lang.String MAPPING_TABLE_USERS_ROLES_NAME
           
static java.lang.String MAPPING_TABLE_USERS_ROLES_SQL_CREATE
           
static long NAME_COLUMN_BITMASK
           
static java.lang.String ORDER_BY_JPQL
           
static java.lang.String ORDER_BY_SQL
           
static java.lang.String SESSION_FACTORY
           
static long SUBTYPE_COLUMN_BITMASK
           
static java.lang.Object[][] TABLE_COLUMNS
           
static java.lang.String TABLE_NAME
           
static java.lang.String TABLE_SQL_CREATE
           
static java.lang.String TABLE_SQL_DROP
           
static java.lang.String TX_MANAGER
           
static long TYPE_COLUMN_BITMASK
           
 
Constructor Summary
RoleModelImpl()
           
 
Method Summary
 java.lang.Object clone()
           
 int compareTo(com.liferay.portal.model.Role role)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getClassName()
           
 long getClassNameId()
           
 long getClassPK()
           
 long getColumnBitmask()
           
 long getCompanyId()
           
 java.lang.String getDescription()
           
 java.lang.String getDescription(java.util.Locale locale)
           
 java.lang.String getDescription(java.util.Locale locale, boolean useDefault)
           
 java.lang.String getDescription(java.lang.String languageId)
           
 java.lang.String getDescription(java.lang.String languageId, boolean useDefault)
           
 java.lang.String getDescriptionCurrentLanguageId()
           
 java.lang.String getDescriptionCurrentValue()
           
 java.util.Map<java.util.Locale,java.lang.String> getDescriptionMap()
           
 com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge()
           
 java.lang.Class<?> getModelClass()
           
 java.lang.String getModelClassName()
           
 java.lang.String getName()
           
 long getOriginalClassNameId()
           
 long getOriginalClassPK()
           
 long getOriginalCompanyId()
           
 java.lang.String getOriginalName()
           
 java.lang.String getOriginalSubtype()
           
 int getOriginalType()
           
 long getPrimaryKey()
           
 java.io.Serializable getPrimaryKeyObj()
           
 long getRoleId()
           
 java.lang.String getSubtype()
           
 java.lang.String getTitle()
           
 java.lang.String getTitle(java.util.Locale locale)
           
 java.lang.String getTitle(java.util.Locale locale, boolean useDefault)
           
 java.lang.String getTitle(java.lang.String languageId)
           
 java.lang.String getTitle(java.lang.String languageId, boolean useDefault)
           
 java.lang.String getTitleCurrentLanguageId()
           
 java.lang.String getTitleCurrentValue()
           
 java.util.Map<java.util.Locale,java.lang.String> getTitleMap()
           
 int getType()
           
 int hashCode()
           
 void resetOriginalValues()
           
 void setClassNameId(long classNameId)
           
 void setClassPK(long classPK)
           
 void setCompanyId(long companyId)
           
 void setDescription(java.lang.String description)
           
 void setDescription(java.lang.String description, java.util.Locale locale)
           
 void setDescription(java.lang.String description, java.util.Locale locale, java.util.Locale defaultLocale)
           
 void setDescriptionCurrentLanguageId(java.lang.String languageId)
           
 void setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap)
           
 void setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.util.Locale defaultLocale)
           
 void setExpandoBridgeAttributes(com.liferay.portal.service.ServiceContext serviceContext)
           
 void setName(java.lang.String name)
           
 void setPrimaryKey(long primaryKey)
           
 void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
           
 void setRoleId(long roleId)
           
 void setSubtype(java.lang.String subtype)
           
 void setTitle(java.lang.String title)
           
 void setTitle(java.lang.String title, java.util.Locale locale)
           
 void setTitle(java.lang.String title, java.util.Locale locale, java.util.Locale defaultLocale)
           
 void setTitleCurrentLanguageId(java.lang.String languageId)
           
 void setTitleMap(java.util.Map<java.util.Locale,java.lang.String> titleMap)
           
 void setTitleMap(java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Locale defaultLocale)
           
 void setType(int type)
           
 com.liferay.portal.model.CacheModel<com.liferay.portal.model.Role> toCacheModel()
           
 com.liferay.portal.model.Role toEscapedModel()
           
static com.liferay.portal.model.Role toModel(com.liferay.portal.model.RoleSoap soapModel)
          Converts the soap model instance into a normal model instance.
static java.util.List<com.liferay.portal.model.Role> toModels(com.liferay.portal.model.RoleSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 java.lang.String toString()
           
 java.lang.String toXmlString()
           
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.model.RoleModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 

Field Detail

TABLE_NAME

public static final java.lang.String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final java.lang.Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final java.lang.String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final java.lang.String TABLE_SQL_DROP
See Also:
Constant Field Values

ORDER_BY_JPQL

public static final java.lang.String ORDER_BY_JPQL
See Also:
Constant Field Values

ORDER_BY_SQL

public static final java.lang.String ORDER_BY_SQL
See Also:
Constant Field Values

DATA_SOURCE

public static final java.lang.String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final java.lang.String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final java.lang.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

CLASSNAMEID_COLUMN_BITMASK

public static long CLASSNAMEID_COLUMN_BITMASK

CLASSPK_COLUMN_BITMASK

public static long CLASSPK_COLUMN_BITMASK

COMPANYID_COLUMN_BITMASK

public static long COMPANYID_COLUMN_BITMASK

NAME_COLUMN_BITMASK

public static long NAME_COLUMN_BITMASK

SUBTYPE_COLUMN_BITMASK

public static long SUBTYPE_COLUMN_BITMASK

TYPE_COLUMN_BITMASK

public static long TYPE_COLUMN_BITMASK

MAPPING_TABLE_GROUPS_ROLES_NAME

public static final java.lang.String MAPPING_TABLE_GROUPS_ROLES_NAME
See Also:
Constant Field Values

MAPPING_TABLE_GROUPS_ROLES_COLUMNS

public static final java.lang.Object[][] MAPPING_TABLE_GROUPS_ROLES_COLUMNS

MAPPING_TABLE_GROUPS_ROLES_SQL_CREATE

public static final java.lang.String MAPPING_TABLE_GROUPS_ROLES_SQL_CREATE
See Also:
Constant Field Values

FINDER_CACHE_ENABLED_GROUPS_ROLES

public static final boolean FINDER_CACHE_ENABLED_GROUPS_ROLES

MAPPING_TABLE_ROLES_PERMISSIONS_NAME

public static final java.lang.String MAPPING_TABLE_ROLES_PERMISSIONS_NAME
See Also:
Constant Field Values

MAPPING_TABLE_ROLES_PERMISSIONS_COLUMNS

public static final java.lang.Object[][] MAPPING_TABLE_ROLES_PERMISSIONS_COLUMNS

MAPPING_TABLE_ROLES_PERMISSIONS_SQL_CREATE

public static final java.lang.String MAPPING_TABLE_ROLES_PERMISSIONS_SQL_CREATE
See Also:
Constant Field Values

FINDER_CACHE_ENABLED_ROLES_PERMISSIONS

public static final boolean FINDER_CACHE_ENABLED_ROLES_PERMISSIONS

MAPPING_TABLE_USERS_ROLES_NAME

public static final java.lang.String MAPPING_TABLE_USERS_ROLES_NAME
See Also:
Constant Field Values

MAPPING_TABLE_USERS_ROLES_COLUMNS

public static final java.lang.Object[][] MAPPING_TABLE_USERS_ROLES_COLUMNS

MAPPING_TABLE_USERS_ROLES_SQL_CREATE

public static final java.lang.String MAPPING_TABLE_USERS_ROLES_SQL_CREATE
See Also:
Constant Field Values

FINDER_CACHE_ENABLED_USERS_ROLES

public static final boolean FINDER_CACHE_ENABLED_USERS_ROLES

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

RoleModelImpl

public RoleModelImpl()
Method Detail

toModel

public static com.liferay.portal.model.Role toModel(com.liferay.portal.model.RoleSoap 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 java.util.List<com.liferay.portal.model.Role> toModels(com.liferay.portal.model.RoleSoap[] 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.model.RoleModel

setPrimaryKey

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

getPrimaryKeyObj

public java.io.Serializable getPrimaryKeyObj()
Specified by:
getPrimaryKeyObj in interface com.liferay.portal.model.BaseModel<com.liferay.portal.model.Role>
Specified by:
getPrimaryKeyObj in interface com.liferay.portal.model.ClassedModel
Specified by:
getPrimaryKeyObj in interface com.liferay.portal.model.RoleModel

setPrimaryKeyObj

public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Specified by:
setPrimaryKeyObj in interface com.liferay.portal.model.BaseModel<com.liferay.portal.model.Role>
Specified by:
setPrimaryKeyObj in interface com.liferay.portal.model.ClassedModel
Specified by:
setPrimaryKeyObj in interface com.liferay.portal.model.RoleModel

getModelClass

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

getModelClassName

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

getRoleId

@JSON
public long getRoleId()
Specified by:
getRoleId in interface com.liferay.portal.model.RoleModel

setRoleId

public void setRoleId(long roleId)
Specified by:
setRoleId in interface com.liferay.portal.model.RoleModel

getCompanyId

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

setCompanyId

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

getOriginalCompanyId

public long getOriginalCompanyId()

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in interface com.liferay.portal.model.AttachedModel
Specified by:
getClassName in interface com.liferay.portal.model.RoleModel

getClassNameId

@JSON
public long getClassNameId()
Specified by:
getClassNameId in interface com.liferay.portal.model.AttachedModel
Specified by:
getClassNameId in interface com.liferay.portal.model.RoleModel

setClassNameId

public void setClassNameId(long classNameId)
Specified by:
setClassNameId in interface com.liferay.portal.model.AttachedModel
Specified by:
setClassNameId in interface com.liferay.portal.model.RoleModel

getOriginalClassNameId

public long getOriginalClassNameId()

getClassPK

@JSON
public long getClassPK()
Specified by:
getClassPK in interface com.liferay.portal.model.AttachedModel
Specified by:
getClassPK in interface com.liferay.portal.model.RoleModel

setClassPK

public void setClassPK(long classPK)
Specified by:
setClassPK in interface com.liferay.portal.model.AttachedModel
Specified by:
setClassPK in interface com.liferay.portal.model.RoleModel

getOriginalClassPK

public long getOriginalClassPK()

getName

@JSON
public java.lang.String getName()
Specified by:
getName in interface com.liferay.portal.model.RoleModel

setName

public void setName(java.lang.String name)
Specified by:
setName in interface com.liferay.portal.model.RoleModel

getOriginalName

public java.lang.String getOriginalName()

getTitle

@JSON
public java.lang.String getTitle()
Specified by:
getTitle in interface com.liferay.portal.model.RoleModel

getTitle

public java.lang.String getTitle(java.util.Locale locale)
Specified by:
getTitle in interface com.liferay.portal.model.RoleModel

getTitle

public java.lang.String getTitle(java.util.Locale locale,
                                 boolean useDefault)
Specified by:
getTitle in interface com.liferay.portal.model.RoleModel

getTitle

public java.lang.String getTitle(java.lang.String languageId)
Specified by:
getTitle in interface com.liferay.portal.model.RoleModel

getTitle

public java.lang.String getTitle(java.lang.String languageId,
                                 boolean useDefault)
Specified by:
getTitle in interface com.liferay.portal.model.RoleModel

getTitleCurrentLanguageId

public java.lang.String getTitleCurrentLanguageId()
Specified by:
getTitleCurrentLanguageId in interface com.liferay.portal.model.RoleModel

getTitleCurrentValue

@JSON
public java.lang.String getTitleCurrentValue()
Specified by:
getTitleCurrentValue in interface com.liferay.portal.model.RoleModel

getTitleMap

public java.util.Map<java.util.Locale,java.lang.String> getTitleMap()
Specified by:
getTitleMap in interface com.liferay.portal.model.RoleModel

setTitle

public void setTitle(java.lang.String title)
Specified by:
setTitle in interface com.liferay.portal.model.RoleModel

setTitle

public void setTitle(java.lang.String title,
                     java.util.Locale locale)
Specified by:
setTitle in interface com.liferay.portal.model.RoleModel

setTitle

public void setTitle(java.lang.String title,
                     java.util.Locale locale,
                     java.util.Locale defaultLocale)
Specified by:
setTitle in interface com.liferay.portal.model.RoleModel

setTitleCurrentLanguageId

public void setTitleCurrentLanguageId(java.lang.String languageId)
Specified by:
setTitleCurrentLanguageId in interface com.liferay.portal.model.RoleModel

setTitleMap

public void setTitleMap(java.util.Map<java.util.Locale,java.lang.String> titleMap)
Specified by:
setTitleMap in interface com.liferay.portal.model.RoleModel

setTitleMap

public void setTitleMap(java.util.Map<java.util.Locale,java.lang.String> titleMap,
                        java.util.Locale defaultLocale)
Specified by:
setTitleMap in interface com.liferay.portal.model.RoleModel

getDescription

@JSON
public java.lang.String getDescription()
Specified by:
getDescription in interface com.liferay.portal.model.RoleModel

getDescription

public java.lang.String getDescription(java.util.Locale locale)
Specified by:
getDescription in interface com.liferay.portal.model.RoleModel

getDescription

public java.lang.String getDescription(java.util.Locale locale,
                                       boolean useDefault)
Specified by:
getDescription in interface com.liferay.portal.model.RoleModel

getDescription

public java.lang.String getDescription(java.lang.String languageId)
Specified by:
getDescription in interface com.liferay.portal.model.RoleModel

getDescription

public java.lang.String getDescription(java.lang.String languageId,
                                       boolean useDefault)
Specified by:
getDescription in interface com.liferay.portal.model.RoleModel

getDescriptionCurrentLanguageId

public java.lang.String getDescriptionCurrentLanguageId()
Specified by:
getDescriptionCurrentLanguageId in interface com.liferay.portal.model.RoleModel

getDescriptionCurrentValue

@JSON
public java.lang.String getDescriptionCurrentValue()
Specified by:
getDescriptionCurrentValue in interface com.liferay.portal.model.RoleModel

getDescriptionMap

public java.util.Map<java.util.Locale,java.lang.String> getDescriptionMap()
Specified by:
getDescriptionMap in interface com.liferay.portal.model.RoleModel

setDescription

public void setDescription(java.lang.String description)
Specified by:
setDescription in interface com.liferay.portal.model.RoleModel

setDescription

public void setDescription(java.lang.String description,
                           java.util.Locale locale)
Specified by:
setDescription in interface com.liferay.portal.model.RoleModel

setDescription

public void setDescription(java.lang.String description,
                           java.util.Locale locale,
                           java.util.Locale defaultLocale)
Specified by:
setDescription in interface com.liferay.portal.model.RoleModel

setDescriptionCurrentLanguageId

public void setDescriptionCurrentLanguageId(java.lang.String languageId)
Specified by:
setDescriptionCurrentLanguageId in interface com.liferay.portal.model.RoleModel

setDescriptionMap

public void setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap)
Specified by:
setDescriptionMap in interface com.liferay.portal.model.RoleModel

setDescriptionMap

public void setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
                              java.util.Locale defaultLocale)
Specified by:
setDescriptionMap in interface com.liferay.portal.model.RoleModel

getType

@JSON
public int getType()
Specified by:
getType in interface com.liferay.portal.model.RoleModel

setType

public void setType(int type)
Specified by:
setType in interface com.liferay.portal.model.RoleModel

getOriginalType

public int getOriginalType()

getSubtype

@JSON
public java.lang.String getSubtype()
Specified by:
getSubtype in interface com.liferay.portal.model.RoleModel

setSubtype

public void setSubtype(java.lang.String subtype)
Specified by:
setSubtype in interface com.liferay.portal.model.RoleModel

getOriginalSubtype

public java.lang.String getOriginalSubtype()

getColumnBitmask

public long getColumnBitmask()

toEscapedModel

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

getExpandoBridge

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

setExpandoBridgeAttributes

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

clone

public java.lang.Object clone()
Specified by:
clone in interface com.liferay.portal.model.BaseModel<com.liferay.portal.model.Role>
Specified by:
clone in interface com.liferay.portal.model.RoleModel
Specified by:
clone in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Role>

compareTo

public int compareTo(com.liferay.portal.model.Role role)
Specified by:
compareTo in interface com.liferay.portal.model.RoleModel
Specified by:
compareTo in interface java.lang.Comparable<com.liferay.portal.model.Role>

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface com.liferay.portal.model.RoleModel
Overrides:
hashCode in class java.lang.Object

resetOriginalValues

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

toCacheModel

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

toString

public java.lang.String toString()
Specified by:
toString in interface com.liferay.portal.model.RoleModel
Overrides:
toString in class java.lang.Object

toXmlString

public java.lang.String toXmlString()
Specified by:
toXmlString in interface com.liferay.portal.model.BaseModel<com.liferay.portal.model.Role>
Specified by:
toXmlString in interface com.liferay.portal.model.RoleModel