|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RoleModel
The base model interface for the Role service. Represents a row in the "Role_" database table, with each column mapped to a property of this class.
This interface and its corresponding implementation RoleModelImpl
exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in RoleImpl
.
Never modify or reference this interface directly. All methods that expect a role model instance should use the Role
interface instead.
Role
,
RoleImpl
,
RoleModelImpl
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Role role)
|
String |
getClassName()
Gets the class name of the model instance this role is polymorphically associated with. |
long |
getClassNameId()
Gets the class name id of this role. |
long |
getClassPK()
Gets the class p k of this role. |
long |
getCompanyId()
Gets the company id of this role. |
String |
getDescription()
Gets the description of this role. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
String |
getName()
Gets the name of this role. |
long |
getPrimaryKey()
Gets the primary key of this role. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
long |
getRoleId()
Gets the role id of this role. |
String |
getSubtype()
Gets the subtype of this role. |
String |
getTitle()
Gets the title of this role. |
String |
getTitle(Locale locale)
Gets the localized title of this role. |
String |
getTitle(Locale locale,
boolean useDefault)
Gets the localized title of this role, optionally using the default language if no localization exists for the requested language. |
String |
getTitle(String languageId)
Gets the localized title of this role. |
String |
getTitle(String languageId,
boolean useDefault)
Gets the localized title of this role, optionally using the default language if no localization exists for the requested language. |
Map<Locale,String> |
getTitleMap()
Gets a map of the locales and localized title of this role. |
int |
getType()
Gets the type of this role. |
int |
hashCode()
|
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance is escaped. |
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
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 |
setEscapedModel(boolean escapedModel)
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setName(String name)
Sets the name of this role. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long pk)
Sets the primary key of this role |
void |
setRoleId(long roleId)
Sets the role id of this role. |
void |
setSubtype(String subtype)
Sets the subtype of this role. |
void |
setTitle(Locale locale,
String title)
Sets the localized title of this role. |
void |
setTitle(String title)
Sets the title of this role. |
void |
setTitleMap(Map<Locale,String> titleMap)
Sets the localized titles of this role from the map of locales and localized titles. |
void |
setType(int type)
Sets the type of this role. |
Role |
toEscapedModel()
Gets a copy of this role as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
String |
toString()
|
String |
toXmlString()
Gets the XML representation of this model instance. |
Method Detail |
---|
long getPrimaryKey()
void setPrimaryKey(long pk)
pk
- the primary key of this rolelong getRoleId()
void setRoleId(long roleId)
roleId
- the role id of this rolelong getCompanyId()
void setCompanyId(long companyId)
companyId
- the company id of this roleString getClassName()
long getClassNameId()
void setClassNameId(long classNameId)
classNameId
- the class name id of this rolelong getClassPK()
void setClassPK(long classPK)
classPK
- the class p k of this role@AutoEscape String getName()
void setName(String name)
name
- the name of this roleString getTitle()
String getTitle(Locale locale)
locale
- the locale to get the localized title for
String getTitle(Locale locale, boolean useDefault)
locale
- the local to get the localized title foruseDefault
- whether to use the default language if no localization exists for the requested language
useDefault
is false
and no localization exists for the requested language, an empty string will be returned.String getTitle(String languageId)
languageId
- the id of the language to get the localized title for
String getTitle(String languageId, boolean useDefault)
languageId
- the id of the language to get the localized title foruseDefault
- whether to use the default language if no localization exists for the requested language
Map<Locale,String> getTitleMap()
void setTitle(String title)
title
- the title of this rolevoid setTitle(Locale locale, String title)
locale
- the locale to set the localized title fortitle
- the localized title of this rolevoid setTitleMap(Map<Locale,String> titleMap)
titleMap
- the locales and localized titles of this role@AutoEscape String getDescription()
void setDescription(String description)
description
- the description of this roleint getType()
void setType(int type)
type
- the type of this role@AutoEscape String getSubtype()
void setSubtype(String subtype)
subtype
- the subtype of this roleRole toEscapedModel()
AutoEscapeBeanHandler
.
AutoEscapeBeanHandler
boolean isNew()
BaseModel
isNew
in interface BaseModel<Role>
true
if this model instance does not yet exist in
the database; false
otherwisevoid setNew(boolean n)
BaseModel
setNew
in interface BaseModel<Role>
n
- whether this model instance does not yet exist in the databaseboolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<Role>
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<Role>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<Role>
true
if this model instance is escaped;
false
otherwiseBaseModel.setEscapedModel(boolean)
void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel
method. For example,
UserModel.toEscapedModel()
.
setEscapedModel
in interface BaseModel<Role>
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Role>
ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Role>
void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Role>
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
Object clone()
BaseModel
clone
in interface BaseModel<Role>
int compareTo(Role role)
compareTo
in interface Comparable<Role>
int hashCode()
hashCode
in class Object
String toString()
toString
in class Object
String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Role>
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |