Liferay 7.0-ce-b4

com.liferay.portal.model
Class TeamWrapper

java.lang.Object
  extended by com.liferay.portal.model.TeamWrapper
All Implemented Interfaces:
AuditedModel, BaseModel<Team>, ClassedModel, GroupedModel, ModelWrapper<Team>, MVCCModel, PersistedModel, ShardedModel, StagedGroupedModel, StagedModel, Team, TeamModel, Serializable, Cloneable, Comparable<Team>

@ProviderType
public class TeamWrapper
extends Object
implements Team, ModelWrapper<Team>

This class is a wrapper for Team.

See Also:
Team, Serialized Form

Field Summary
 
Fields inherited from interface com.liferay.portal.model.Team
NAME_ACCESSOR, TEAM_ID_ACCESSOR
 
Constructor Summary
TeamWrapper(Team team)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Team team)
           
 boolean equals(Object obj)
           
 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.
 Date getLastPublishDate()
          Returns the last publish date of this team.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this team.
 long getMvccVersion()
          Returns the mvcc version of this team.
 String getName()
          Returns the name of this team.
 long getPrimaryKey()
          Returns the primary key of this team.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 Role getRole()
           
 StagedModelType getStagedModelType()
           
 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.
 String getUuid()
          Returns the uuid of this team.
 Team getWrappedModel()
           
 int hashCode()
           
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isEntityCacheEnabled()
          Returns true if this model's entity cache is enabled.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isFinderCacheEnabled()
          Returns true if this model's finder cache is enabled.
 boolean isNew()
          Returns true if this model instance does not yet exist in the database.
 void persist()
          Updates this model instance in the database or adds it if it does not yet exist.
 void resetOriginalValues()
          Reset all original fields to current values.
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 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(BaseModel<?> baseModel)
           
 void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
           
 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 setLastPublishDate(Date lastPublishDate)
          Sets the last publish date of this team.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this team.
 void setMvccVersion(long mvccVersion)
          Sets the mvcc version of this team.
 void setName(String name)
          Sets the name of this team.
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 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.
 void setUuid(String uuid)
          Sets the 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.
 String toString()
           
 Team toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TeamWrapper

public TeamWrapper(Team team)
Method Detail

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>

setModelAttributes

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

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 StagedModel
Specified by:
clone in interface TeamModel
Overrides:
clone in class Object
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>

getCompanyId

public long getCompanyId()
Returns the company ID of this team.

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

getCreateDate

public Date getCreateDate()
Returns the create date of this team.

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

getDescription

public String getDescription()
Returns the description of this team.

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

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
Returns:
the expando bridge for this model instance

getGroupId

public long getGroupId()
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

getLastPublishDate

public Date getLastPublishDate()
Returns the last publish date of this team.

Specified by:
getLastPublishDate in interface StagedGroupedModel
Specified by:
getLastPublishDate in interface TeamModel
Returns:
the last publish date of this team

getModifiedDate

public Date getModifiedDate()
Returns the modified date of this team.

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

getMvccVersion

public long getMvccVersion()
Returns the mvcc version of this team.

Specified by:
getMvccVersion in interface MVCCModel
Specified by:
getMvccVersion in interface TeamModel
Returns:
the mvcc version of this team

getName

public String getName()
Returns the name of this team.

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

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this team.

Specified by:
getPrimaryKey in interface TeamModel
Returns:
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

getRole

public Role getRole()
             throws PortalException
Specified by:
getRole in interface Team
Throws:
PortalException

getTeamId

public long getTeamId()
Returns the team ID of this team.

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

getUserId

public long getUserId()
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

getUserName

public String getUserName()
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

getUserUuid

public String getUserUuid()
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

getUuid

public String getUuid()
Returns the uuid of this team.

Specified by:
getUuid in interface StagedModel
Specified by:
getUuid in interface TeamModel
Returns:
the uuid of this team

hashCode

public int hashCode()
Specified by:
hashCode in interface TeamModel
Overrides:
hashCode in class Object

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Returns true if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<Team>
Specified by:
isCachedModel in interface TeamModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<Team>
Specified by:
isEscapedModel in interface TeamModel
Returns:
true if this model instance is escaped; false otherwise

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<Team>
Specified by:
isNew in interface TeamModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

persist

public void persist()
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<Team>
Specified by:
setCachedModel in interface TeamModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this team.

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

setCreateDate

public void setCreateDate(Date createDate)
Sets the create date of this team.

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

setDescription

public void setDescription(String description)
Sets the description of this team.

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

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<Team>
Specified by:
setExpandoBridgeAttributes in interface TeamModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<Team>
Specified by:
setExpandoBridgeAttributes in interface TeamModel

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
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes()

setGroupId

public void setGroupId(long groupId)
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

setLastPublishDate

public void setLastPublishDate(Date lastPublishDate)
Sets the last publish date of this team.

Specified by:
setLastPublishDate in interface StagedGroupedModel
Specified by:
setLastPublishDate in interface TeamModel
Parameters:
lastPublishDate - the last publish date of this team

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Sets the modified date of this team.

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

setMvccVersion

public void setMvccVersion(long mvccVersion)
Sets the mvcc version of this team.

Specified by:
setMvccVersion in interface MVCCModel
Specified by:
setMvccVersion in interface TeamModel
Parameters:
mvccVersion - the mvcc version of this team

setName

public void setName(String name)
Sets the name of this team.

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

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<Team>
Specified by:
setNew in interface TeamModel
Parameters:
n - whether this model instance does not yet exist in the database

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this team.

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

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

setTeamId

public void setTeamId(long teamId)
Sets the team ID of this team.

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

setUserId

public void setUserId(long userId)
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

setUserName

public void setUserName(String userName)
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

setUserUuid

public void setUserUuid(String userUuid)
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

setUuid

public void setUuid(String uuid)
Sets the uuid of this team.

Specified by:
setUuid in interface StagedModel
Specified by:
setUuid in interface TeamModel
Parameters:
uuid - the uuid of this 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
Returns:
the cache model object

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
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toString

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

toUnescapedModel

public Team toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<Team>
Specified by:
toUnescapedModel in interface TeamModel

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

equals

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

getStagedModelType

public StagedModelType getStagedModelType()
Specified by:
getStagedModelType in interface StagedModel

getWrappedModel

public Team getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<Team>

isEntityCacheEnabled

public boolean isEntityCacheEnabled()
Description copied from interface: BaseModel
Returns true if this model's entity cache is enabled.

Specified by:
isEntityCacheEnabled in interface BaseModel<Team>
Returns:
true if this model's entity cache is enabled; false otherwise

isFinderCacheEnabled

public boolean isFinderCacheEnabled()
Description copied from interface: BaseModel
Returns true if this model's finder cache is enabled.

Specified by:
isFinderCacheEnabled in interface BaseModel<Team>
Returns:
true if this model's finder cache is enabled; false otherwise

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<Team>

Liferay 7.0-ce-b4