Liferay 6.2-ce-ga5

com.liferay.portal.model.impl
Class TeamModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<Team>
      extended by com.liferay.portal.model.impl.TeamModelImpl
All Implemented Interfaces:
AuditedModel, BaseModel<Team>, ClassedModel, GroupedModel, TeamModel, Serializable, Cloneable, Comparable<Team>
Direct Known Subclasses:
TeamBaseImpl

@JSON(strict=true)
public class TeamModelImpl
extends BaseModelImpl<Team>
implements TeamModel

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

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

See Also:
TeamImpl, Team, TeamModel, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static boolean COLUMN_BITMASK_ENABLED
           
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED_USERGROUPS_TEAMS
           
static boolean FINDER_CACHE_ENABLED_USERS_TEAMS
           
static long GROUPID_COLUMN_BITMASK
           
static long LOCK_EXPIRATION_TIME
           
static Object[][] MAPPING_TABLE_USERGROUPS_TEAMS_COLUMNS
           
static String MAPPING_TABLE_USERGROUPS_TEAMS_NAME
           
static String MAPPING_TABLE_USERGROUPS_TEAMS_SQL_CREATE
           
static Object[][] MAPPING_TABLE_USERS_TEAMS_COLUMNS
           
static String MAPPING_TABLE_USERS_TEAMS_NAME
           
static String MAPPING_TABLE_USERS_TEAMS_SQL_CREATE
           
static long NAME_COLUMN_BITMASK
           
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
TeamModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Team team)
           
 boolean equals(Object obj)
           
 long getColumnBitmask()
           
 long getCompanyId()
          Returns the company ID of this team.
 Date getCreateDate()
          Returns the create date of this team.
 String getDescription()
          Returns the description of this team.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 long getGroupId()
          Returns the group ID of this team.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this team.
 String getName()
          Returns the name of this team.
 long getOriginalGroupId()
           
 String getOriginalName()
           
 long getPrimaryKey()
          Returns the primary key of this team.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 long getTeamId()
          Returns the team ID of this team.
 long getUserId()
          Returns the user ID of this team.
 String getUserName()
          Returns the user name of this team.
 String getUserUuid()
          Returns the user uuid of this team.
 int hashCode()
           
 void resetOriginalValues()
          Reset all original fields to current values.
 void setCompanyId(long companyId)
          Sets the company ID of this team.
 void setCreateDate(Date createDate)
          Sets the create date of this team.
 void setDescription(String description)
          Sets the description of this team.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setGroupId(long groupId)
          Sets the group ID of this team.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this team.
 void setName(String name)
          Sets the name of this team.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this team.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setTeamId(long teamId)
          Sets the team ID of this team.
 void setUserId(long userId)
          Sets the user ID of this team.
 void setUserName(String userName)
          Sets the user name of this team.
 void setUserUuid(String userUuid)
          Sets the user uuid of this team.
 CacheModel<Team> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 Team toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
static Team toModel(TeamSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<Team> toModels(TeamSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 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, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.model.TeamModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
 

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

GROUPID_COLUMN_BITMASK

public static long GROUPID_COLUMN_BITMASK

NAME_COLUMN_BITMASK

public static long NAME_COLUMN_BITMASK

MAPPING_TABLE_USERS_TEAMS_NAME

public static final String MAPPING_TABLE_USERS_TEAMS_NAME
See Also:
Constant Field Values

MAPPING_TABLE_USERS_TEAMS_COLUMNS

public static final Object[][] MAPPING_TABLE_USERS_TEAMS_COLUMNS

MAPPING_TABLE_USERS_TEAMS_SQL_CREATE

public static final String MAPPING_TABLE_USERS_TEAMS_SQL_CREATE
See Also:
Constant Field Values

FINDER_CACHE_ENABLED_USERS_TEAMS

public static final boolean FINDER_CACHE_ENABLED_USERS_TEAMS

MAPPING_TABLE_USERGROUPS_TEAMS_NAME

public static final String MAPPING_TABLE_USERGROUPS_TEAMS_NAME
See Also:
Constant Field Values

MAPPING_TABLE_USERGROUPS_TEAMS_COLUMNS

public static final Object[][] MAPPING_TABLE_USERGROUPS_TEAMS_COLUMNS

MAPPING_TABLE_USERGROUPS_TEAMS_SQL_CREATE

public static final String MAPPING_TABLE_USERGROUPS_TEAMS_SQL_CREATE
See Also:
Constant Field Values

FINDER_CACHE_ENABLED_USERGROUPS_TEAMS

public static final boolean FINDER_CACHE_ENABLED_USERGROUPS_TEAMS

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

TeamModelImpl

public TeamModelImpl()
Method Detail

toModel

public static Team toModel(TeamSoap 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<Team> toModels(TeamSoap[] 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: TeamModel
Returns the primary key of this team.

Specified by:
getPrimaryKey in interface TeamModel
Returns:
the primary key of this team

setPrimaryKey

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

Specified by:
setPrimaryKey in interface TeamModel
Parameters:
primaryKey - the primary key of this team

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<Team>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface TeamModel
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<Team>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface TeamModel
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<Team>
Overrides:
getModelAttributes in class BaseModelImpl<Team>

setModelAttributes

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

getTeamId

@JSON
public long getTeamId()
Description copied from interface: TeamModel
Returns the team ID of this team.

Specified by:
getTeamId in interface TeamModel
Returns:
the team ID of this team

setTeamId

public void setTeamId(long teamId)
Description copied from interface: TeamModel
Sets the team ID of this team.

Specified by:
setTeamId in interface TeamModel
Parameters:
teamId - the team ID of this team

getCompanyId

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

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface TeamModel
Returns:
the company ID of this team

setCompanyId

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

Specified by:
setCompanyId in interface AuditedModel
Specified by:
setCompanyId in interface TeamModel
Parameters:
companyId - the company ID of this team

getUserId

@JSON
public long getUserId()
Description copied from interface: TeamModel
Returns the user ID of this team.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface TeamModel
Returns:
the user ID of this team

setUserId

public void setUserId(long userId)
Description copied from interface: TeamModel
Sets the user ID of this team.

Specified by:
setUserId in interface AuditedModel
Specified by:
setUserId in interface TeamModel
Parameters:
userId - the user ID of this team

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: TeamModel
Returns the user uuid of this team.

Specified by:
getUserUuid in interface AuditedModel
Specified by:
getUserUuid in interface TeamModel
Returns:
the user uuid of this team
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: TeamModel
Sets the user uuid of this team.

Specified by:
setUserUuid in interface AuditedModel
Specified by:
setUserUuid in interface TeamModel
Parameters:
userUuid - the user uuid of this team

getUserName

@JSON
public String getUserName()
Description copied from interface: TeamModel
Returns the user name of this team.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface TeamModel
Returns:
the user name of this team

setUserName

public void setUserName(String userName)
Description copied from interface: TeamModel
Sets the user name of this team.

Specified by:
setUserName in interface AuditedModel
Specified by:
setUserName in interface TeamModel
Parameters:
userName - the user name of this team

getCreateDate

@JSON
public Date getCreateDate()
Description copied from interface: TeamModel
Returns the create date of this team.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface TeamModel
Returns:
the create date of this team

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: TeamModel
Sets the create date of this team.

Specified by:
setCreateDate in interface AuditedModel
Specified by:
setCreateDate in interface TeamModel
Parameters:
createDate - the create date of this team

getModifiedDate

@JSON
public Date getModifiedDate()
Description copied from interface: TeamModel
Returns the modified date of this team.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface TeamModel
Returns:
the modified date of this team

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Description copied from interface: TeamModel
Sets the modified date of this team.

Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface TeamModel
Parameters:
modifiedDate - the modified date of this team

getGroupId

@JSON
public long getGroupId()
Description copied from interface: TeamModel
Returns the group ID of this team.

Specified by:
getGroupId in interface GroupedModel
Specified by:
getGroupId in interface TeamModel
Returns:
the group ID of this team

setGroupId

public void setGroupId(long groupId)
Description copied from interface: TeamModel
Sets the group ID of this team.

Specified by:
setGroupId in interface GroupedModel
Specified by:
setGroupId in interface TeamModel
Parameters:
groupId - the group ID of this team

getOriginalGroupId

public long getOriginalGroupId()

getName

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

Specified by:
getName in interface TeamModel
Returns:
the name of this team

setName

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

Specified by:
setName in interface TeamModel
Parameters:
name - the name of this team

getOriginalName

public String getOriginalName()

getDescription

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

Specified by:
getDescription in interface TeamModel
Returns:
the description of this team

setDescription

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

Specified by:
setDescription in interface TeamModel
Parameters:
description - the description of this team

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<Team>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface TeamModel
Overrides:
getExpandoBridge in class BaseModelImpl<Team>
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<Team>
Specified by:
setExpandoBridgeAttributes in interface TeamModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<Team>
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes( )

toEscapedModel

public Team 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<Team>
Specified by:
toEscapedModel in interface TeamModel
Overrides:
toEscapedModel in class BaseModelImpl<Team>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

clone

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

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

compareTo

public int compareTo(Team team)
Specified by:
compareTo in interface TeamModel
Specified by:
compareTo in interface Comparable<Team>

equals

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

hashCode

public int hashCode()
Specified by:
hashCode in interface TeamModel
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<Team>
Overrides:
resetOriginalValues in class BaseModelImpl<Team>

toCacheModel

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

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

toString

public String toString()
Specified by:
toString in interface TeamModel
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<Team>
Specified by:
toXmlString in interface TeamModel
Returns:
the XML representation of this model instance

Liferay 6.2-ce-ga5