Liferay 6.0.3

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:
BaseModel<Role>, RoleModel, Serializable, Cloneable, Comparable<Role>
Direct Known Subclasses:
RoleImpl

public class RoleModelImpl
extends BaseModelImpl<Role>
implements RoleModel

This interface is a model that represents the Role_ table in the database.

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

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()
           
 long getClassNameId()
           
 long getClassPK()
           
 long getCompanyId()
           
 String getDescription()
           
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 String getName()
           
 long getOriginalClassNameId()
           
 long getOriginalClassPK()
           
 long getOriginalCompanyId()
           
 String getOriginalName()
           
 long getPrimaryKey()
           
 Serializable getPrimaryKeyObj()
          Gets the primary key for this model instance.
 long getRoleId()
           
 String getSubtype()
           
 String getTitle()
           
 String getTitle(Locale locale)
           
 String getTitle(Locale locale, boolean useDefault)
           
 String getTitle(String languageId)
           
 String getTitle(String languageId, boolean useDefault)
           
 Map<Locale,String> getTitleMap()
           
 int getType()
           
 int hashCode()
           
 void setClassNameId(long classNameId)
           
 void setClassPK(long classPK)
           
 void setCompanyId(long companyId)
           
 void setDescription(String description)
           
 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)
           
 void setPrimaryKey(long pk)
           
 void setRoleId(long roleId)
           
 void setSubtype(String subtype)
           
 void setTitle(Locale locale, String title)
           
 void setTitle(String title)
           
 void setTitleMap(Map<Locale,String> titleMap)
           
 void setType(int type)
           
 Role toEscapedModel()
           
static Role toModel(RoleSoap soapModel)
           
static List<Role> toModels(RoleSoap[] soapModels)
           
 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

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

MAPPING_TABLE_GROUPS_ROLES_NAME

public static final String MAPPING_TABLE_GROUPS_ROLES_NAME
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

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)

toModels

public static List<Role> toModels(RoleSoap[] soapModels)

getPrimaryKey

public long getPrimaryKey()
Specified by:
getPrimaryKey in interface RoleModel

setPrimaryKey

public void setPrimaryKey(long pk)
Specified by:
setPrimaryKey in interface RoleModel

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<Role>
Specified by:
getPrimaryKeyObj in interface RoleModel
Returns:
the primary key

getRoleId

public long getRoleId()
Specified by:
getRoleId in interface RoleModel

setRoleId

public void setRoleId(long roleId)
Specified by:
setRoleId in interface RoleModel

getCompanyId

public long getCompanyId()
Specified by:
getCompanyId in interface RoleModel

setCompanyId

public void setCompanyId(long companyId)
Specified by:
setCompanyId in interface RoleModel

getOriginalCompanyId

public long getOriginalCompanyId()

getClassName

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

getClassNameId

public long getClassNameId()
Specified by:
getClassNameId in interface RoleModel

setClassNameId

public void setClassNameId(long classNameId)
Specified by:
setClassNameId in interface RoleModel

getOriginalClassNameId

public long getOriginalClassNameId()

getClassPK

public long getClassPK()
Specified by:
getClassPK in interface RoleModel

setClassPK

public void setClassPK(long classPK)
Specified by:
setClassPK in interface RoleModel

getOriginalClassPK

public long getOriginalClassPK()

getName

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

setName

public void setName(String name)
Specified by:
setName in interface RoleModel

getOriginalName

public String getOriginalName()

getTitle

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

getTitle

public String getTitle(Locale locale)
Specified by:
getTitle in interface RoleModel

getTitle

public String getTitle(Locale locale,
                       boolean useDefault)
Specified by:
getTitle in interface RoleModel

getTitle

public String getTitle(String languageId)
Specified by:
getTitle in interface RoleModel

getTitle

public String getTitle(String languageId,
                       boolean useDefault)
Specified by:
getTitle in interface RoleModel

getTitleMap

public Map<Locale,String> getTitleMap()
Specified by:
getTitleMap in interface RoleModel

setTitle

public void setTitle(String title)
Specified by:
setTitle in interface RoleModel

setTitle

public void setTitle(Locale locale,
                     String title)
Specified by:
setTitle in interface RoleModel

setTitleMap

public void setTitleMap(Map<Locale,String> titleMap)
Specified by:
setTitleMap in interface RoleModel

getDescription

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

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface RoleModel

getType

public int getType()
Specified by:
getType in interface RoleModel

setType

public void setType(int type)
Specified by:
setType in interface RoleModel

getSubtype

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

setSubtype

public void setSubtype(String subtype)
Specified by:
setSubtype in interface RoleModel

toEscapedModel

public Role toEscapedModel()
Specified by:
toEscapedModel in interface RoleModel

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<Role>
Specified by:
getExpandoBridge in interface RoleModel
Overrides:
getExpandoBridge in class BaseModelImpl<Role>
Returns:
the expando bridge

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 to retrieve the expando bridge attributes from
See Also:
ServiceContext.getExpandoBridgeAttributes( )

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 clone

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

toString

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

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets 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.0.3