Liferay 6.0.5

com.liferay.portal.service.persistence
Class TeamUtil

java.lang.Object
  extended by com.liferay.portal.service.persistence.TeamUtil

public class TeamUtil
extends Object

The persistence utility for the team service. This utility wraps TeamPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

See Also:
TeamPersistence, TeamPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
TeamUtil()
           
 
Method Summary
static void addUser(long pk, long userPK)
          Adds an association between the team and the user.
static void addUser(long pk, User user)
          Adds an association between the team and the user.
static void addUsers(long pk, List<User> users)
          Adds an association between the team and the users.
static void addUsers(long pk, long[] userPKs)
          Adds an association between the team and the users.
static void cacheResult(List<Team> teams)
          Caches the teams in the entity cache if it is enabled.
static void cacheResult(Team team)
          Caches the team in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(Team team)
           
static void clearUsers(long pk)
          Clears all associations between the team and its users.
static boolean containsUser(long pk, long userPK)
          Determines whether the user is associated with the team.
static boolean containsUsers(long pk)
          Determines whether the team has any users associated with it.
static int countAll()
          Counts all the teams.
static int countByG_N(long groupId, String name)
          Counts all the teams where groupId = ? and name = ?.
static int countByGroupId(long groupId)
          Counts all the teams where groupId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static Team create(long teamId)
          Creates a new team with the primary key.
static Team fetchByG_N(long groupId, String name)
          Finds the team where groupId = ? and name = ? or returns null if it could not be found.
static Team fetchByG_N(long groupId, String name, boolean retrieveFromCache)
          Finds the team where groupId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
static Team fetchByPrimaryKey(long teamId)
          Finds the team with the primary key or returns null if it could not be found.
static int filterCountByG_N(long groupId, String name)
          Filters by the user's permissions and counts all the teams where groupId = ? and name = ?.
static int filterCountByGroupId(long groupId)
          Filters by the user's permissions and counts all the teams where groupId = ?.
static List<Team> filterFindByGroupId(long groupId)
          Filters by the user's permissions and finds all the teams where groupId = ?.
static List<Team> filterFindByGroupId(long groupId, int start, int end)
          Filters by the user's permissions and finds a range of all the teams where groupId = ?.
static List<Team> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Filters by the user's permissions and finds an ordered range of all the teams where groupId = ?.
static List<Team> findAll()
          Finds all the teams.
static List<Team> findAll(int start, int end)
          Finds a range of all the teams.
static List<Team> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the teams.
static Team findByG_N(long groupId, String name)
          Finds the team where groupId = ? and name = ? or throws a NoSuchTeamException if it could not be found.
static Team findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first team in the ordered set where groupId = ?.
static Team findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last team in the ordered set where groupId = ?.
static Team[] findByGroupId_PrevAndNext(long teamId, long groupId, OrderByComparator orderByComparator)
          Finds the teams before and after the current team in the ordered set where groupId = ?.
static List<Team> findByGroupId(long groupId)
          Finds all the teams where groupId = ?.
static List<Team> findByGroupId(long groupId, int start, int end)
          Finds a range of all the teams where groupId = ?.
static List<Team> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the teams where groupId = ?.
static Team findByPrimaryKey(long teamId)
          Finds the team with the primary key or throws a NoSuchTeamException if it could not be found.
static List<Team> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<Team> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<Team> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static TeamPersistence getPersistence()
           
static List<User> getUsers(long pk)
          Gets all the users associated with the team.
static List<User> getUsers(long pk, int start, int end)
          Gets a range of all the users associated with the team.
static List<User> getUsers(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the users associated with the team.
static int getUsersSize(long pk)
          Gets the number of users associated with the team.
static Team remove(long teamId)
          Removes the team with the primary key from the database.
static Team remove(Team team)
           
static void removeAll()
          Removes all the teams from the database.
static void removeByG_N(long groupId, String name)
          Removes the team where groupId = ? and name = ? from the database.
static void removeByGroupId(long groupId)
          Removes all the teams where groupId = ? from the database.
static void removeUser(long pk, long userPK)
          Removes the association between the team and the user.
static void removeUser(long pk, User user)
          Removes the association between the team and the user.
static void removeUsers(long pk, List<User> users)
          Removes the association between the team and the users.
static void removeUsers(long pk, long[] userPKs)
          Removes the association between the team and the users.
 void setPersistence(TeamPersistence persistence)
           
static void setUsers(long pk, List<User> users)
          Sets the users associated with the team, removing and adding associations as necessary.
static void setUsers(long pk, long[] userPKs)
          Sets the users associated with the team, removing and adding associations as necessary.
static Team update(Team team, boolean merge)
           
static Team update(Team team, boolean merge, ServiceContext serviceContext)
           
static Team updateImpl(Team team, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeamUtil

public TeamUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(Team team)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<Team> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<Team> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                              int start,
                                              int end)
                                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<Team> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                              int start,
                                              int end,
                                              OrderByComparator orderByComparator)
                                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

public static Team remove(Team team)
                   throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static Team update(Team team,
                          boolean merge)
                   throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static Team update(Team team,
                          boolean merge,
                          ServiceContext serviceContext)
                   throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static void cacheResult(Team team)
Caches the team in the entity cache if it is enabled.

Parameters:
team - the team to cache

cacheResult

public static void cacheResult(List<Team> teams)
Caches the teams in the entity cache if it is enabled.

Parameters:
teams - the teams to cache

create

public static Team create(long teamId)
Creates a new team with the primary key. Does not add the team to the database.

Parameters:
teamId - the primary key for the new team
Returns:
the new team

remove

public static Team remove(long teamId)
                   throws NoSuchTeamException,
                          SystemException
Removes the team with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
teamId - the primary key of the team to remove
Returns:
the team that was removed
Throws:
NoSuchTeamException - if a team with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static Team updateImpl(Team team,
                              boolean merge)
                       throws SystemException
Throws:
SystemException

findByPrimaryKey

public static Team findByPrimaryKey(long teamId)
                             throws NoSuchTeamException,
                                    SystemException
Finds the team with the primary key or throws a NoSuchTeamException if it could not be found.

Parameters:
teamId - the primary key of the team to find
Returns:
the team
Throws:
NoSuchTeamException - if a team with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static Team fetchByPrimaryKey(long teamId)
                              throws SystemException
Finds the team with the primary key or returns null if it could not be found.

Parameters:
teamId - the primary key of the team to find
Returns:
the team, or null if a team with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<Team> findByGroupId(long groupId)
                                throws SystemException
Finds all the teams where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching teams
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<Team> findByGroupId(long groupId,
                                       int start,
                                       int end)
                                throws SystemException
Finds a range of all the teams where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of teams to return
end - the upper bound of the range of teams to return (not inclusive)
Returns:
the range of matching teams
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<Team> findByGroupId(long groupId,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Finds an ordered range of all the teams where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of teams to return
end - the upper bound of the range of teams to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching teams
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public static Team findByGroupId_First(long groupId,
                                       OrderByComparator orderByComparator)
                                throws NoSuchTeamException,
                                       SystemException
Finds the first team in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching team
Throws:
NoSuchTeamException - if a matching team could not be found
SystemException - if a system exception occurred

findByGroupId_Last

public static Team findByGroupId_Last(long groupId,
                                      OrderByComparator orderByComparator)
                               throws NoSuchTeamException,
                                      SystemException
Finds the last team in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching team
Throws:
NoSuchTeamException - if a matching team could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public static Team[] findByGroupId_PrevAndNext(long teamId,
                                               long groupId,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchTeamException,
                                               SystemException
Finds the teams before and after the current team in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
teamId - the primary key of the current team
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next team
Throws:
NoSuchTeamException - if a team with the primary key could not be found
SystemException - if a system exception occurred

filterFindByGroupId

public static List<Team> filterFindByGroupId(long groupId)
                                      throws SystemException
Filters by the user's permissions and finds all the teams where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching teams that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<Team> filterFindByGroupId(long groupId,
                                             int start,
                                             int end)
                                      throws SystemException
Filters by the user's permissions and finds a range of all the teams where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of teams to return
end - the upper bound of the range of teams to return (not inclusive)
Returns:
the range of matching teams that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<Team> filterFindByGroupId(long groupId,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Filters by the user's permissions and finds an ordered range of all the teams where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of teams to return
end - the upper bound of the range of teams to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching teams that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByG_N

public static Team findByG_N(long groupId,
                             String name)
                      throws NoSuchTeamException,
                             SystemException
Finds the team where groupId = ? and name = ? or throws a NoSuchTeamException if it could not be found.

Parameters:
groupId - the group id to search with
name - the name to search with
Returns:
the matching team
Throws:
NoSuchTeamException - if a matching team could not be found
SystemException - if a system exception occurred

fetchByG_N

public static Team fetchByG_N(long groupId,
                              String name)
                       throws SystemException
Finds the team where groupId = ? and name = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group id to search with
name - the name to search with
Returns:
the matching team, or null if a matching team could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_N

public static Team fetchByG_N(long groupId,
                              String name,
                              boolean retrieveFromCache)
                       throws SystemException
Finds the team where groupId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
groupId - the group id to search with
name - the name to search with
Returns:
the matching team, or null if a matching team could not be found
Throws:
SystemException - if a system exception occurred

findAll

public static List<Team> findAll()
                          throws SystemException
Finds all the teams.

Returns:
the teams
Throws:
SystemException - if a system exception occurred

findAll

public static List<Team> findAll(int start,
                                 int end)
                          throws SystemException
Finds a range of all the teams.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of teams to return
end - the upper bound of the range of teams to return (not inclusive)
Returns:
the range of teams
Throws:
SystemException - if a system exception occurred

findAll

public static List<Team> findAll(int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Finds an ordered range of all the teams.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of teams to return
end - the upper bound of the range of teams to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of teams
Throws:
SystemException - if a system exception occurred

removeByGroupId

public static void removeByGroupId(long groupId)
                            throws SystemException
Removes all the teams where groupId = ? from the database.

Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByG_N

public static void removeByG_N(long groupId,
                               String name)
                        throws NoSuchTeamException,
                               SystemException
Removes the team where groupId = ? and name = ? from the database.

Parameters:
groupId - the group id to search with
name - the name to search with
Throws:
SystemException - if a system exception occurred
NoSuchTeamException

removeAll

public static void removeAll()
                      throws SystemException
Removes all the teams from the database.

Throws:
SystemException - if a system exception occurred

countByGroupId

public static int countByGroupId(long groupId)
                          throws SystemException
Counts all the teams where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching teams
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

public static int filterCountByGroupId(long groupId)
                                throws SystemException
Filters by the user's permissions and counts all the teams where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching teams that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByG_N

public static int countByG_N(long groupId,
                             String name)
                      throws SystemException
Counts all the teams where groupId = ? and name = ?.

Parameters:
groupId - the group id to search with
name - the name to search with
Returns:
the number of matching teams
Throws:
SystemException - if a system exception occurred

filterCountByG_N

public static int filterCountByG_N(long groupId,
                                   String name)
                            throws SystemException
Filters by the user's permissions and counts all the teams where groupId = ? and name = ?.

Parameters:
groupId - the group id to search with
name - the name to search with
Returns:
the number of matching teams that the user has permission to view
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Counts all the teams.

Returns:
the number of teams
Throws:
SystemException - if a system exception occurred

getUsers

public static List<User> getUsers(long pk)
                           throws SystemException
Gets all the users associated with the team.

Parameters:
pk - the primary key of the team to get the associated users for
Returns:
the users associated with the team
Throws:
SystemException - if a system exception occurred

getUsers

public static List<User> getUsers(long pk,
                                  int start,
                                  int end)
                           throws SystemException
Gets a range of all the users associated with the team.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
pk - the primary key of the team to get the associated users for
start - the lower bound of the range of teams to return
end - the upper bound of the range of teams to return (not inclusive)
Returns:
the range of users associated with the team
Throws:
SystemException - if a system exception occurred

getUsers

public static List<User> getUsers(long pk,
                                  int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Gets an ordered range of all the users associated with the team.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
pk - the primary key of the team to get the associated users for
start - the lower bound of the range of teams to return
end - the upper bound of the range of teams to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of users associated with the team
Throws:
SystemException - if a system exception occurred

getUsersSize

public static int getUsersSize(long pk)
                        throws SystemException
Gets the number of users associated with the team.

Parameters:
pk - the primary key of the team to get the number of associated users for
Returns:
the number of users associated with the team
Throws:
SystemException - if a system exception occurred

containsUser

public static boolean containsUser(long pk,
                                   long userPK)
                            throws SystemException
Determines whether the user is associated with the team.

Parameters:
pk - the primary key of the team
userPK - the primary key of the user
Returns:
whether the user is associated with the team
Throws:
SystemException - if a system exception occurred

containsUsers

public static boolean containsUsers(long pk)
                             throws SystemException
Determines whether the team has any users associated with it.

Parameters:
pk - the primary key of the team to check for associations with users
Returns:
whether the team has any users associated with it
Throws:
SystemException - if a system exception occurred

addUser

public static void addUser(long pk,
                           long userPK)
                    throws SystemException
Adds an association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the team
userPK - the primary key of the user
Throws:
SystemException - if a system exception occurred

addUser

public static void addUser(long pk,
                           User user)
                    throws SystemException
Adds an association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the team
user - the user
Throws:
SystemException - if a system exception occurred

addUsers

public static void addUsers(long pk,
                            long[] userPKs)
                     throws SystemException
Adds an association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the team
userPKs - the primary keys of the users
Throws:
SystemException - if a system exception occurred

addUsers

public static void addUsers(long pk,
                            List<User> users)
                     throws SystemException
Adds an association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the team
users - the users
Throws:
SystemException - if a system exception occurred

clearUsers

public static void clearUsers(long pk)
                       throws SystemException
Clears all associations between the team and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the team to clear the associated users from
Throws:
SystemException - if a system exception occurred

removeUser

public static void removeUser(long pk,
                              long userPK)
                       throws SystemException
Removes the association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the team
userPK - the primary key of the user
Throws:
SystemException - if a system exception occurred

removeUser

public static void removeUser(long pk,
                              User user)
                       throws SystemException
Removes the association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the team
user - the user
Throws:
SystemException - if a system exception occurred

removeUsers

public static void removeUsers(long pk,
                               long[] userPKs)
                        throws SystemException
Removes the association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the team
userPKs - the primary keys of the users
Throws:
SystemException - if a system exception occurred

removeUsers

public static void removeUsers(long pk,
                               List<User> users)
                        throws SystemException
Removes the association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the team
users - the users
Throws:
SystemException - if a system exception occurred

setUsers

public static void setUsers(long pk,
                            long[] userPKs)
                     throws SystemException
Sets the users associated with the team, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the team to set the associations for
userPKs - the primary keys of the users to be associated with the team
Throws:
SystemException - if a system exception occurred

setUsers

public static void setUsers(long pk,
                            List<User> users)
                     throws SystemException
Sets the users associated with the team, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the team to set the associations for
users - the users to be associated with the team
Throws:
SystemException - if a system exception occurred

getPersistence

public static TeamPersistence getPersistence()

setPersistence

public void setPersistence(TeamPersistence persistence)

Liferay 6.0.5