|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.impl.BaseModelImpl<Role>
com.liferay.portal.model.impl.RoleModelImpl
public class RoleModelImpl
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.
Never modify or reference this class directly. All methods that expect a role model instance should use the Role interface instead.
RoleImpl,
Role,
RoleModel,
Serialized Form| Field Summary | |
|---|---|
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 String |
MAPPING_TABLE_GROUPS_ROLES_NAME
|
static Object[][] |
MAPPING_TABLE_ROLES_PERMISSIONS_COLUMNS
|
static String |
MAPPING_TABLE_ROLES_PERMISSIONS_NAME
|
static String |
MAPPING_TABLE_ROLES_PERMISSIONS_SQL_CREATE
|
static String |
MAPPING_TABLE_USERS_ROLES_NAME
|
static String |
ORDER_BY_JPQL
|
static String |
ORDER_BY_SQL
|
static String |
SESSION_FACTORY
|
static Object[][] |
TABLE_COLUMNS
|
static String |
TABLE_NAME
|
static String |
TABLE_SQL_CREATE
|
static String |
TABLE_SQL_DROP
|
static String |
TX_MANAGER
|
| 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()
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 |
getOriginalClassNameId()
|
long |
getOriginalClassPK()
|
long |
getOriginalCompanyId()
|
String |
getOriginalName()
|
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()
|
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 |
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 |
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. |
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()
|
String |
toXmlString()
Gets the XML representation of this model instance. |
| Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl |
|---|
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, 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, setEscapedModel, setNew |
| Field Detail |
|---|
public static final String TABLE_NAME
public static final Object[][] TABLE_COLUMNS
public static final String TABLE_SQL_CREATE
public static final String TABLE_SQL_DROP
public static final String ORDER_BY_JPQL
public static final String ORDER_BY_SQL
public static final String DATA_SOURCE
public static final String SESSION_FACTORY
public static final String TX_MANAGER
public static final boolean ENTITY_CACHE_ENABLED
public static final boolean FINDER_CACHE_ENABLED
public static final String MAPPING_TABLE_GROUPS_ROLES_NAME
public static final boolean FINDER_CACHE_ENABLED_GROUPS_ROLES
public static final String MAPPING_TABLE_ROLES_PERMISSIONS_NAME
public static final Object[][] MAPPING_TABLE_ROLES_PERMISSIONS_COLUMNS
public static final String MAPPING_TABLE_ROLES_PERMISSIONS_SQL_CREATE
public static final boolean FINDER_CACHE_ENABLED_ROLES_PERMISSIONS
public static final String MAPPING_TABLE_USERS_ROLES_NAME
public static final boolean FINDER_CACHE_ENABLED_USERS_ROLES
public static final long LOCK_EXPIRATION_TIME
| Constructor Detail |
|---|
public RoleModelImpl()
| Method Detail |
|---|
public static Role toModel(RoleSoap soapModel)
soapModel - the soap model instance to convert
public static List<Role> toModels(RoleSoap[] soapModels)
soapModels - the soap model instances to convert
public long getPrimaryKey()
RoleModel
getPrimaryKey in interface RoleModelpublic void setPrimaryKey(long pk)
RoleModel
setPrimaryKey in interface RoleModelpk - the primary key of this rolepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Role>getPrimaryKeyObj in interface RoleModelpublic long getRoleId()
RoleModel
getRoleId in interface RoleModelpublic void setRoleId(long roleId)
RoleModel
setRoleId in interface RoleModelroleId - the role id of this rolepublic long getCompanyId()
RoleModel
getCompanyId in interface RoleModelpublic void setCompanyId(long companyId)
RoleModel
setCompanyId in interface RoleModelcompanyId - the company id of this rolepublic long getOriginalCompanyId()
public String getClassName()
RoleModel
getClassName in interface RoleModelpublic long getClassNameId()
RoleModel
getClassNameId in interface RoleModelpublic void setClassNameId(long classNameId)
RoleModel
setClassNameId in interface RoleModelclassNameId - the class name id of this rolepublic long getOriginalClassNameId()
public long getClassPK()
RoleModel
getClassPK in interface RoleModelpublic void setClassPK(long classPK)
RoleModel
setClassPK in interface RoleModelclassPK - the class p k of this rolepublic long getOriginalClassPK()
public String getName()
RoleModel
getName in interface RoleModelpublic void setName(String name)
RoleModel
setName in interface RoleModelname - the name of this rolepublic String getOriginalName()
public String getTitle()
RoleModel
getTitle in interface RoleModelpublic String getTitle(Locale locale)
RoleModel
getTitle in interface RoleModellocale - the locale to get the localized title for
public String getTitle(Locale locale,
boolean useDefault)
RoleModel
getTitle in interface RoleModellocale - 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.public String getTitle(String languageId)
RoleModel
getTitle in interface RoleModellanguageId - the id of the language to get the localized title for
public String getTitle(String languageId,
boolean useDefault)
RoleModel
getTitle in interface RoleModellanguageId - 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
public Map<Locale,String> getTitleMap()
RoleModel
getTitleMap in interface RoleModelpublic void setTitle(String title)
RoleModel
setTitle in interface RoleModeltitle - the title of this role
public void setTitle(Locale locale,
String title)
RoleModel
setTitle in interface RoleModellocale - the locale to set the localized title fortitle - the localized title of this rolepublic void setTitleMap(Map<Locale,String> titleMap)
RoleModel
setTitleMap in interface RoleModeltitleMap - the locales and localized titles of this rolepublic String getDescription()
RoleModel
getDescription in interface RoleModelpublic void setDescription(String description)
RoleModel
setDescription in interface RoleModeldescription - the description of this rolepublic int getType()
RoleModel
getType in interface RoleModelpublic void setType(int type)
RoleModel
setType in interface RoleModeltype - the type of this rolepublic String getSubtype()
RoleModel
getSubtype in interface RoleModelpublic void setSubtype(String subtype)
RoleModel
setSubtype in interface RoleModelsubtype - the subtype of this rolepublic Role toEscapedModel()
RoleModelAutoEscapeBeanHandler.
toEscapedModel in interface RoleModelAutoEscapeBeanHandlerpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Role>getExpandoBridge in interface RoleModelgetExpandoBridge in class BaseModelImpl<Role>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<Role>setExpandoBridgeAttributes in interface RoleModelsetExpandoBridgeAttributes in class BaseModelImpl<Role>serviceContext - the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<Role>clone in interface RoleModelclone in class BaseModelImpl<Role>public int compareTo(Role role)
compareTo in interface RoleModelcompareTo in interface Comparable<Role>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in interface RoleModelhashCode in class Objectpublic String toString()
toString in interface RoleModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<Role>toXmlString in interface RoleModel
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||