Liferay 6.1.2-ce-ga3

com.liferay.portal.model.impl
Class RoleModelImpl

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

@JSON(strict=true)
public class RoleModelImpl
extends BaseModelImpl<Role>
implements 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.

See Also:
RoleImpl, Role, RoleModel, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static long CLASSNAMEID_COLUMN_BITMASK
           
static long CLASSPK_COLUMN_BITMASK
           
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 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 Object[][] MAPPING_TABLE_GROUPS_ROLES_COLUMNS
           
static String MAPPING_TABLE_GROUPS_ROLES_NAME
           
static String MAPPING_TABLE_GROUPS_ROLES_SQL_CREATE
           
static Object[][] MAPPING_TABLE_ROLES_PERMISSIONS_COLUMNS
           
static String MAPPING_TABLE_ROLES_PERMISSIONS_NAME
           
static String MAPPING_TABLE_ROLES_PERMISSIONS_SQL_CREATE
           
static Object[][] MAPPING_TABLE_USERS_ROLES_COLUMNS
           
static String MAPPING_TABLE_USERS_ROLES_NAME
           
static String MAPPING_TABLE_USERS_ROLES_SQL_CREATE
           
static long NAME_COLUMN_BITMASK
           
static String ORDER_BY_JPQL
           
static String ORDER_BY_SQL
           
static String SESSION_FACTORY
           
static long SUBTYPE_COLUMN_BITMASK
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
static long TYPE_COLUMN_BITMASK
           
 
Constructor Summary
RoleModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Role role)
           
 boolean equals(Object obj)
           
 String getClassName()
          Returns the fully qualified class name of this role.
 long getClassNameId()
          Returns the class name ID of this role.
 long getClassPK()
          Returns the class p k of this role.
 long getColumnBitmask()
           
 long getCompanyId()
          Returns the company ID of this role.
 String getDescription()
          Returns the description of this role.
 String getDescription(Locale locale)
          Returns the localized description of this role in the language.
 String getDescription(Locale locale, boolean useDefault)
          Returns the localized description of this role in the language, optionally using the default language if no localization exists for the requested language.
 String getDescription(String languageId)
          Returns the localized description of this role in the language.
 String getDescription(String languageId, boolean useDefault)
          Returns the localized description of this role in the language, optionally using the default language if no localization exists for the requested language.
 String getDescriptionCurrentLanguageId()
           
 String getDescriptionCurrentValue()
           
 Map<Locale,String> getDescriptionMap()
          Returns a map of the locales and localized descriptions of this role.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 String getName()
          Returns the name of this role.
 long getOriginalClassNameId()
           
 long getOriginalClassPK()
           
 long getOriginalCompanyId()
           
 String getOriginalName()
           
 String getOriginalSubtype()
           
 int getOriginalType()
           
 long getPrimaryKey()
          Returns the primary key of this role.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 long getRoleId()
          Returns the role ID of this role.
 String getSubtype()
          Returns the subtype of this role.
 String getTitle()
          Returns the title of this role.
 String getTitle(Locale locale)
          Returns the localized title of this role in the language.
 String getTitle(Locale locale, boolean useDefault)
          Returns the localized title of this role in the language, optionally using the default language if no localization exists for the requested language.
 String getTitle(String languageId)
          Returns the localized title of this role in the language.
 String getTitle(String languageId, boolean useDefault)
          Returns the localized title of this role in the language, optionally using the default language if no localization exists for the requested language.
 String getTitleCurrentLanguageId()
           
 String getTitleCurrentValue()
           
 Map<Locale,String> getTitleMap()
          Returns a map of the locales and localized titles of this role.
 int getType()
          Returns the type of this role.
 int hashCode()
           
 void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
           
 void resetOriginalValues()
          Reset all original fields to current values.
 void setClassName(String className)
           
 void setClassNameId(long classNameId)
          Sets the class name ID of this role.
 void setClassPK(long classPK)
          Sets the class p k of this role.
 void setCompanyId(long companyId)
          Sets the company ID of this role.
 void setDescription(String description)
          Sets the description of this role.
 void setDescription(String description, Locale locale)
          Sets the localized description of this role in the language.
 void setDescription(String description, Locale locale, Locale defaultLocale)
          Sets the localized description of this role in the language, and sets the default locale.
 void setDescriptionCurrentLanguageId(String languageId)
           
 void setDescriptionMap(Map<Locale,String> descriptionMap)
          Sets the localized descriptions of this role from the map of locales and localized descriptions.
 void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
          Sets the localized descriptions of this role from the map of locales and localized descriptions, and sets the default locale.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setName(String name)
          Sets the name of this role.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this role.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setRoleId(long roleId)
          Sets the role ID of this role.
 void setSubtype(String subtype)
          Sets the subtype of this role.
 void setTitle(String title)
          Sets the title of this role.
 void setTitle(String title, Locale locale)
          Sets the localized title of this role in the language.
 void setTitle(String title, Locale locale, Locale defaultLocale)
          Sets the localized title of this role in the language, and sets the default locale.
 void setTitleCurrentLanguageId(String languageId)
           
 void setTitleMap(Map<Locale,String> titleMap)
          Sets the localized titles of this role from the map of locales and localized titles.
 void setTitleMap(Map<Locale,String> titleMap, Locale defaultLocale)
          Sets the localized titles of this role from the map of locales and localized titles, and sets the default locale.
 void setType(int type)
          Sets the type of this role.
 CacheModel<Role> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 Role toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
static Role toModel(RoleSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<Role> toModels(RoleSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 Role toUnescapedModel()
           
 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
 
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 String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

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

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 String MAPPING_TABLE_GROUPS_ROLES_NAME
See Also:
Constant Field Values

MAPPING_TABLE_GROUPS_ROLES_COLUMNS

public static final Object[][] MAPPING_TABLE_GROUPS_ROLES_COLUMNS

MAPPING_TABLE_GROUPS_ROLES_SQL_CREATE

public static final 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 String MAPPING_TABLE_ROLES_PERMISSIONS_NAME
See Also:
Constant Field Values

MAPPING_TABLE_ROLES_PERMISSIONS_COLUMNS

public static final Object[][] MAPPING_TABLE_ROLES_PERMISSIONS_COLUMNS

MAPPING_TABLE_ROLES_PERMISSIONS_SQL_CREATE

public static final 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 String MAPPING_TABLE_USERS_ROLES_NAME
See Also:
Constant Field Values

MAPPING_TABLE_USERS_ROLES_COLUMNS

public static final Object[][] MAPPING_TABLE_USERS_ROLES_COLUMNS

MAPPING_TABLE_USERS_ROLES_SQL_CREATE

public static final 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 Role toModel(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 List<Role> toModels(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()
Description copied from interface: RoleModel
Returns the primary key of this role.

Specified by:
getPrimaryKey in interface RoleModel
Returns:
the primary key of this role

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Description copied from interface: RoleModel
Sets the primary key of this role.

Specified by:
setPrimaryKey in interface RoleModel
Parameters:
primaryKey - the primary key of this role

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<Role>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface RoleModel
Returns:
the primary key of this model instance

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<Role>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface RoleModel
Parameters:
primaryKeyObj - the primary key of this model instance

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<Role>
Overrides:
getModelAttributes in class BaseModelImpl<Role>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<Role>
Overrides:
setModelAttributes in class BaseModelImpl<Role>

getRoleId

@JSON
public long getRoleId()
Description copied from interface: RoleModel
Returns the role ID of this role.

Specified by:
getRoleId in interface RoleModel
Returns:
the role ID of this role

setRoleId

public void setRoleId(long roleId)
Description copied from interface: RoleModel
Sets the role ID of this role.

Specified by:
setRoleId in interface RoleModel
Parameters:
roleId - the role ID of this role

getCompanyId

@JSON
public long getCompanyId()
Description copied from interface: RoleModel
Returns the company ID of this role.

Specified by:
getCompanyId in interface RoleModel
Returns:
the company ID of this role

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: RoleModel
Sets the company ID of this role.

Specified by:
setCompanyId in interface RoleModel
Parameters:
companyId - the company ID of this role

getOriginalCompanyId

public long getOriginalCompanyId()

getClassName

public String getClassName()
Description copied from interface: RoleModel
Returns the fully qualified class name of this role.

Specified by:
getClassName in interface AttachedModel
Specified by:
getClassName in interface RoleModel
Returns:
the fully qualified class name of this role

setClassName

public void setClassName(String className)
Specified by:
setClassName in interface RoleModel

getClassNameId

@JSON
public long getClassNameId()
Description copied from interface: RoleModel
Returns the class name ID of this role.

Specified by:
getClassNameId in interface AttachedModel
Specified by:
getClassNameId in interface RoleModel
Returns:
the class name ID of this role

setClassNameId

public void setClassNameId(long classNameId)
Description copied from interface: RoleModel
Sets the class name ID of this role.

Specified by:
setClassNameId in interface AttachedModel
Specified by:
setClassNameId in interface RoleModel
Parameters:
classNameId - the class name ID of this role

getOriginalClassNameId

public long getOriginalClassNameId()

getClassPK

@JSON
public long getClassPK()
Description copied from interface: RoleModel
Returns the class p k of this role.

Specified by:
getClassPK in interface AttachedModel
Specified by:
getClassPK in interface RoleModel
Returns:
the class p k of this role

setClassPK

public void setClassPK(long classPK)
Description copied from interface: RoleModel
Sets the class p k of this role.

Specified by:
setClassPK in interface AttachedModel
Specified by:
setClassPK in interface RoleModel
Parameters:
classPK - the class p k of this role

getOriginalClassPK

public long getOriginalClassPK()

getName

@JSON
public String getName()
Description copied from interface: RoleModel
Returns the name of this role.

Specified by:
getName in interface RoleModel
Returns:
the name of this role

setName

public void setName(String name)
Description copied from interface: RoleModel
Sets the name of this role.

Specified by:
setName in interface RoleModel
Parameters:
name - the name of this role

getOriginalName

public String getOriginalName()

getTitle

@JSON
public String getTitle()
Description copied from interface: RoleModel
Returns the title of this role.

Specified by:
getTitle in interface RoleModel
Returns:
the title of this role

getTitle

public String getTitle(Locale locale)
Description copied from interface: RoleModel
Returns the localized title of this role in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getTitle in interface RoleModel
Parameters:
locale - the locale of the language
Returns:
the localized title of this role

getTitle

public String getTitle(Locale locale,
                       boolean useDefault)
Description copied from interface: RoleModel
Returns the localized title of this role in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getTitle in interface RoleModel
Parameters:
locale - the local of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized title of this role. If useDefault is false and no localization exists for the requested language, an empty string will be returned.

getTitle

public String getTitle(String languageId)
Description copied from interface: RoleModel
Returns the localized title of this role in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getTitle in interface RoleModel
Parameters:
languageId - the ID of the language
Returns:
the localized title of this role

getTitle

public String getTitle(String languageId,
                       boolean useDefault)
Description copied from interface: RoleModel
Returns the localized title of this role in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getTitle in interface RoleModel
Parameters:
languageId - the ID of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized title of this role

getTitleCurrentLanguageId

public String getTitleCurrentLanguageId()
Specified by:
getTitleCurrentLanguageId in interface RoleModel

getTitleCurrentValue

@JSON
public String getTitleCurrentValue()
Specified by:
getTitleCurrentValue in interface RoleModel

getTitleMap

public Map<Locale,String> getTitleMap()
Description copied from interface: RoleModel
Returns a map of the locales and localized titles of this role.

Specified by:
getTitleMap in interface RoleModel
Returns:
the locales and localized titles of this role

setTitle

public void setTitle(String title)
Description copied from interface: RoleModel
Sets the title of this role.

Specified by:
setTitle in interface RoleModel
Parameters:
title - the title of this role

setTitle

public void setTitle(String title,
                     Locale locale)
Description copied from interface: RoleModel
Sets the localized title of this role in the language.

Specified by:
setTitle in interface RoleModel
Parameters:
title - the localized title of this role
locale - the locale of the language

setTitle

public void setTitle(String title,
                     Locale locale,
                     Locale defaultLocale)
Description copied from interface: RoleModel
Sets the localized title of this role in the language, and sets the default locale.

Specified by:
setTitle in interface RoleModel
Parameters:
title - the localized title of this role
locale - the locale of the language
defaultLocale - the default locale

setTitleCurrentLanguageId

public void setTitleCurrentLanguageId(String languageId)
Specified by:
setTitleCurrentLanguageId in interface RoleModel

setTitleMap

public void setTitleMap(Map<Locale,String> titleMap)
Description copied from interface: RoleModel
Sets the localized titles of this role from the map of locales and localized titles.

Specified by:
setTitleMap in interface RoleModel
Parameters:
titleMap - the locales and localized titles of this role

setTitleMap

public void setTitleMap(Map<Locale,String> titleMap,
                        Locale defaultLocale)
Description copied from interface: RoleModel
Sets the localized titles of this role from the map of locales and localized titles, and sets the default locale.

Specified by:
setTitleMap in interface RoleModel
Parameters:
titleMap - the locales and localized titles of this role
defaultLocale - the default locale

getDescription

@JSON
public String getDescription()
Description copied from interface: RoleModel
Returns the description of this role.

Specified by:
getDescription in interface RoleModel
Returns:
the description of this role

getDescription

public String getDescription(Locale locale)
Description copied from interface: RoleModel
Returns the localized description of this role in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getDescription in interface RoleModel
Parameters:
locale - the locale of the language
Returns:
the localized description of this role

getDescription

public String getDescription(Locale locale,
                             boolean useDefault)
Description copied from interface: RoleModel
Returns the localized description of this role in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getDescription in interface RoleModel
Parameters:
locale - the local of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized description of this role. If useDefault is false and no localization exists for the requested language, an empty string will be returned.

getDescription

public String getDescription(String languageId)
Description copied from interface: RoleModel
Returns the localized description of this role in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getDescription in interface RoleModel
Parameters:
languageId - the ID of the language
Returns:
the localized description of this role

getDescription

public String getDescription(String languageId,
                             boolean useDefault)
Description copied from interface: RoleModel
Returns the localized description of this role in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getDescription in interface RoleModel
Parameters:
languageId - the ID of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized description of this role

getDescriptionCurrentLanguageId

public String getDescriptionCurrentLanguageId()
Specified by:
getDescriptionCurrentLanguageId in interface RoleModel

getDescriptionCurrentValue

@JSON
public String getDescriptionCurrentValue()
Specified by:
getDescriptionCurrentValue in interface RoleModel

getDescriptionMap

public Map<Locale,String> getDescriptionMap()
Description copied from interface: RoleModel
Returns a map of the locales and localized descriptions of this role.

Specified by:
getDescriptionMap in interface RoleModel
Returns:
the locales and localized descriptions of this role

setDescription

public void setDescription(String description)
Description copied from interface: RoleModel
Sets the description of this role.

Specified by:
setDescription in interface RoleModel
Parameters:
description - the description of this role

setDescription

public void setDescription(String description,
                           Locale locale)
Description copied from interface: RoleModel
Sets the localized description of this role in the language.

Specified by:
setDescription in interface RoleModel
Parameters:
description - the localized description of this role
locale - the locale of the language

setDescription

public void setDescription(String description,
                           Locale locale,
                           Locale defaultLocale)
Description copied from interface: RoleModel
Sets the localized description of this role in the language, and sets the default locale.

Specified by:
setDescription in interface RoleModel
Parameters:
description - the localized description of this role
locale - the locale of the language
defaultLocale - the default locale

setDescriptionCurrentLanguageId

public void setDescriptionCurrentLanguageId(String languageId)
Specified by:
setDescriptionCurrentLanguageId in interface RoleModel

setDescriptionMap

public void setDescriptionMap(Map<Locale,String> descriptionMap)
Description copied from interface: RoleModel
Sets the localized descriptions of this role from the map of locales and localized descriptions.

Specified by:
setDescriptionMap in interface RoleModel
Parameters:
descriptionMap - the locales and localized descriptions of this role

setDescriptionMap

public void setDescriptionMap(Map<Locale,String> descriptionMap,
                              Locale defaultLocale)
Description copied from interface: RoleModel
Sets the localized descriptions of this role from the map of locales and localized descriptions, and sets the default locale.

Specified by:
setDescriptionMap in interface RoleModel
Parameters:
descriptionMap - the locales and localized descriptions of this role
defaultLocale - the default locale

getType

@JSON
public int getType()
Description copied from interface: RoleModel
Returns the type of this role.

Specified by:
getType in interface RoleModel
Returns:
the type of this role

setType

public void setType(int type)
Description copied from interface: RoleModel
Sets the type of this role.

Specified by:
setType in interface RoleModel
Parameters:
type - the type of this role

getOriginalType

public int getOriginalType()

getSubtype

@JSON
public String getSubtype()
Description copied from interface: RoleModel
Returns the subtype of this role.

Specified by:
getSubtype in interface RoleModel
Returns:
the subtype of this role

setSubtype

public void setSubtype(String subtype)
Description copied from interface: RoleModel
Sets the subtype of this role.

Specified by:
setSubtype in interface RoleModel
Parameters:
subtype - the subtype of this role

getOriginalSubtype

public String getOriginalSubtype()

getColumnBitmask

public long getColumnBitmask()

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<Role>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface RoleModel
Overrides:
getExpandoBridge in class BaseModelImpl<Role>
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<Role>
Specified by:
setExpandoBridgeAttributes in interface RoleModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<Role>
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

prepareLocalizedFieldsForImport

public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
                                     throws LocaleException
Specified by:
prepareLocalizedFieldsForImport in interface RoleModel
Throws:
LocaleException

toEscapedModel

public Role toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<Role>
Specified by:
toEscapedModel in interface RoleModel
Overrides:
toEscapedModel in class BaseModelImpl<Role>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public Role toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<Role>
Specified by:
toUnescapedModel in interface RoleModel
Overrides:
toUnescapedModel in class BaseModelImpl<Role>

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<Role>
Specified by:
clone in interface RoleModel
Specified by:
clone in class BaseModelImpl<Role>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(Role role)
Specified by:
compareTo in interface RoleModel
Specified by:
compareTo in interface Comparable<Role>

equals

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

hashCode

public int hashCode()
Specified by:
hashCode in interface RoleModel
Overrides:
hashCode in class Object

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<Role>
Overrides:
resetOriginalValues in class BaseModelImpl<Role>

toCacheModel

public CacheModel<Role> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<Role>
Specified by:
toCacheModel in interface RoleModel
Overrides:
toCacheModel in class BaseModelImpl<Role>
Returns:
the cache model object

toString

public String toString()
Specified by:
toString in interface RoleModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<Role>
Specified by:
toXmlString in interface RoleModel
Returns:
the XML representation of this model instance

Liferay 6.1.2-ce-ga3