com.liferay.portal.model.impl
Class GroupModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Group>
      extended by com.liferay.portal.model.impl.GroupModelImpl
All Implemented Interfaces:
com.liferay.portal.model.AttachedModel, com.liferay.portal.model.BaseModel<com.liferay.portal.model.Group>, com.liferay.portal.model.ClassedModel, com.liferay.portal.model.GroupModel, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<com.liferay.portal.model.Group>
Direct Known Subclasses:
GroupBaseImpl

@JSON(strict=true)
public class GroupModelImpl
extends com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Group>
implements com.liferay.portal.model.GroupModel

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

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

Author:
Brian Wing Shun Chan
See Also:
GroupImpl, Group, GroupModel, Serialized Form
Generated:

Field Summary
static long ACTIVE_COLUMN_BITMASK
           
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_ORGS
           
static boolean FINDER_CACHE_ENABLED_GROUPS_PERMISSIONS
           
static boolean FINDER_CACHE_ENABLED_GROUPS_ROLES
           
static boolean FINDER_CACHE_ENABLED_GROUPS_USERGROUPS
           
static boolean FINDER_CACHE_ENABLED_USERS_GROUPS
           
static long FRIENDLYURL_COLUMN_BITMASK
           
static long LIVEGROUPID_COLUMN_BITMASK
           
static long LOCK_EXPIRATION_TIME
           
static java.lang.Object[][] MAPPING_TABLE_GROUPS_ORGS_COLUMNS
           
static java.lang.String MAPPING_TABLE_GROUPS_ORGS_NAME
           
static java.lang.String MAPPING_TABLE_GROUPS_ORGS_SQL_CREATE
           
static java.lang.Object[][] MAPPING_TABLE_GROUPS_PERMISSIONS_COLUMNS
           
static java.lang.String MAPPING_TABLE_GROUPS_PERMISSIONS_NAME
           
static java.lang.String MAPPING_TABLE_GROUPS_PERMISSIONS_SQL_CREATE
           
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_GROUPS_USERGROUPS_COLUMNS
           
static java.lang.String MAPPING_TABLE_GROUPS_USERGROUPS_NAME
           
static java.lang.String MAPPING_TABLE_GROUPS_USERGROUPS_SQL_CREATE
           
static java.lang.Object[][] MAPPING_TABLE_USERS_GROUPS_COLUMNS
           
static java.lang.String MAPPING_TABLE_USERS_GROUPS_NAME
           
static java.lang.String MAPPING_TABLE_USERS_GROUPS_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 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
GroupModelImpl()
           
 
Method Summary
 java.lang.Object clone()
           
 int compareTo(com.liferay.portal.model.Group group)
           
 boolean equals(java.lang.Object obj)
           
 boolean getActive()
           
 java.lang.String getClassName()
           
 long getClassNameId()
           
 long getClassPK()
           
 long getColumnBitmask()
           
 long getCompanyId()
           
 long getCreatorUserId()
           
 java.lang.String getCreatorUserUuid()
           
 java.lang.String getDescription()
           
 com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge()
           
 java.lang.String getFriendlyURL()
           
 long getGroupId()
           
 long getLiveGroupId()
           
 java.lang.Class<?> getModelClass()
           
 java.lang.String getModelClassName()
           
 java.lang.String getName()
           
 boolean getOriginalActive()
           
 long getOriginalClassNameId()
           
 long getOriginalClassPK()
           
 long getOriginalCompanyId()
           
 java.lang.String getOriginalFriendlyURL()
           
 long getOriginalLiveGroupId()
           
 java.lang.String getOriginalName()
           
 int getOriginalType()
           
 long getParentGroupId()
           
 long getPrimaryKey()
           
 java.io.Serializable getPrimaryKeyObj()
           
 boolean getSite()
           
 int getType()
           
 java.lang.String getTypeSettings()
           
 int hashCode()
           
 boolean isActive()
           
 boolean isSite()
           
 void resetOriginalValues()
           
 void setActive(boolean active)
           
 void setClassNameId(long classNameId)
           
 void setClassPK(long classPK)
           
 void setCompanyId(long companyId)
           
 void setCreatorUserId(long creatorUserId)
           
 void setCreatorUserUuid(java.lang.String creatorUserUuid)
           
 void setDescription(java.lang.String description)
           
 void setExpandoBridgeAttributes(com.liferay.portal.service.ServiceContext serviceContext)
           
 void setFriendlyURL(java.lang.String friendlyURL)
           
 void setGroupId(long groupId)
           
 void setLiveGroupId(long liveGroupId)
           
 void setName(java.lang.String name)
           
 void setParentGroupId(long parentGroupId)
           
 void setPrimaryKey(long primaryKey)
           
 void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
           
 void setSite(boolean site)
           
 void setType(int type)
           
 void setTypeSettings(java.lang.String typeSettings)
           
 com.liferay.portal.model.CacheModel<com.liferay.portal.model.Group> toCacheModel()
           
 com.liferay.portal.model.Group toEscapedModel()
           
static com.liferay.portal.model.Group toModel(com.liferay.portal.model.GroupSoap soapModel)
          Converts the soap model instance into a normal model instance.
static java.util.List<com.liferay.portal.model.Group> toModels(com.liferay.portal.model.GroupSoap[] 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.GroupModel
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

ACTIVE_COLUMN_BITMASK

public static long ACTIVE_COLUMN_BITMASK

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

FRIENDLYURL_COLUMN_BITMASK

public static long FRIENDLYURL_COLUMN_BITMASK

LIVEGROUPID_COLUMN_BITMASK

public static long LIVEGROUPID_COLUMN_BITMASK

NAME_COLUMN_BITMASK

public static long NAME_COLUMN_BITMASK

TYPE_COLUMN_BITMASK

public static long TYPE_COLUMN_BITMASK

MAPPING_TABLE_GROUPS_ORGS_NAME

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

MAPPING_TABLE_GROUPS_ORGS_COLUMNS

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

MAPPING_TABLE_GROUPS_ORGS_SQL_CREATE

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

FINDER_CACHE_ENABLED_GROUPS_ORGS

public static final boolean FINDER_CACHE_ENABLED_GROUPS_ORGS

MAPPING_TABLE_GROUPS_PERMISSIONS_NAME

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

MAPPING_TABLE_GROUPS_PERMISSIONS_COLUMNS

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

MAPPING_TABLE_GROUPS_PERMISSIONS_SQL_CREATE

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

FINDER_CACHE_ENABLED_GROUPS_PERMISSIONS

public static final boolean FINDER_CACHE_ENABLED_GROUPS_PERMISSIONS

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_GROUPS_USERGROUPS_NAME

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

MAPPING_TABLE_GROUPS_USERGROUPS_COLUMNS

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

MAPPING_TABLE_GROUPS_USERGROUPS_SQL_CREATE

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

FINDER_CACHE_ENABLED_GROUPS_USERGROUPS

public static final boolean FINDER_CACHE_ENABLED_GROUPS_USERGROUPS

MAPPING_TABLE_USERS_GROUPS_NAME

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

MAPPING_TABLE_USERS_GROUPS_COLUMNS

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

MAPPING_TABLE_USERS_GROUPS_SQL_CREATE

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

FINDER_CACHE_ENABLED_USERS_GROUPS

public static final boolean FINDER_CACHE_ENABLED_USERS_GROUPS

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

GroupModelImpl

public GroupModelImpl()
Method Detail

toModel

public static com.liferay.portal.model.Group toModel(com.liferay.portal.model.GroupSoap 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.Group> toModels(com.liferay.portal.model.GroupSoap[] 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.GroupModel

setPrimaryKey

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

getPrimaryKeyObj

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

setPrimaryKeyObj

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

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

getGroupId

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

setGroupId

public void setGroupId(long groupId)
Specified by:
setGroupId in interface com.liferay.portal.model.GroupModel

getCompanyId

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

setCompanyId

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

getOriginalCompanyId

public long getOriginalCompanyId()

getCreatorUserId

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

setCreatorUserId

public void setCreatorUserId(long creatorUserId)
Specified by:
setCreatorUserId in interface com.liferay.portal.model.GroupModel

getCreatorUserUuid

public java.lang.String getCreatorUserUuid()
                                    throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getCreatorUserUuid in interface com.liferay.portal.model.GroupModel
Throws:
com.liferay.portal.kernel.exception.SystemException

setCreatorUserUuid

public void setCreatorUserUuid(java.lang.String creatorUserUuid)
Specified by:
setCreatorUserUuid in interface com.liferay.portal.model.GroupModel

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.GroupModel

getClassNameId

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

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.GroupModel

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.GroupModel

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.GroupModel

getOriginalClassPK

public long getOriginalClassPK()

getParentGroupId

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

setParentGroupId

public void setParentGroupId(long parentGroupId)
Specified by:
setParentGroupId in interface com.liferay.portal.model.GroupModel

getLiveGroupId

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

setLiveGroupId

public void setLiveGroupId(long liveGroupId)
Specified by:
setLiveGroupId in interface com.liferay.portal.model.GroupModel

getOriginalLiveGroupId

public long getOriginalLiveGroupId()

getName

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

setName

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

getOriginalName

public java.lang.String getOriginalName()

getDescription

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

setDescription

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

getType

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

setType

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

getOriginalType

public int getOriginalType()

getTypeSettings

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

setTypeSettings

public void setTypeSettings(java.lang.String typeSettings)
Specified by:
setTypeSettings in interface com.liferay.portal.model.GroupModel

getFriendlyURL

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

setFriendlyURL

public void setFriendlyURL(java.lang.String friendlyURL)
Specified by:
setFriendlyURL in interface com.liferay.portal.model.GroupModel

getOriginalFriendlyURL

public java.lang.String getOriginalFriendlyURL()

getSite

@JSON
public boolean getSite()
Specified by:
getSite in interface com.liferay.portal.model.GroupModel

isSite

public boolean isSite()
Specified by:
isSite in interface com.liferay.portal.model.GroupModel

setSite

public void setSite(boolean site)
Specified by:
setSite in interface com.liferay.portal.model.GroupModel

getActive

@JSON
public boolean getActive()
Specified by:
getActive in interface com.liferay.portal.model.GroupModel

isActive

public boolean isActive()
Specified by:
isActive in interface com.liferay.portal.model.GroupModel

setActive

public void setActive(boolean active)
Specified by:
setActive in interface com.liferay.portal.model.GroupModel

getOriginalActive

public boolean getOriginalActive()

getColumnBitmask

public long getColumnBitmask()

toEscapedModel

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

getExpandoBridge

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

setExpandoBridgeAttributes

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

clone

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

compareTo

public int compareTo(com.liferay.portal.model.Group group)
Specified by:
compareTo in interface com.liferay.portal.model.GroupModel
Specified by:
compareTo in interface java.lang.Comparable<com.liferay.portal.model.Group>

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.GroupModel
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.Group>
Overrides:
resetOriginalValues in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Group>

toCacheModel

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

toString

public java.lang.String toString()
Specified by:
toString in interface com.liferay.portal.model.GroupModel
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.Group>
Specified by:
toXmlString in interface com.liferay.portal.model.GroupModel