Class TeamUtil
com.liferay.portal.service.persistence.impl.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.
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddUser(long pk, long userPK) Adds an association between the team and the user.static booleanAdds an association between the team and the user.static booleanaddUserGroup(long pk, long userGroupPK) Adds an association between the team and the user group.static booleanaddUserGroup(long pk, UserGroup userGroup) Adds an association between the team and the user group.static booleanaddUserGroups(long pk, long[] userGroupPKs) Adds an association between the team and the user groups.static booleanaddUserGroups(long pk, List<UserGroup> userGroups) Adds an association between the team and the user groups.static booleanaddUsers(long pk, long[] userPKs) Adds an association between the team and the users.static booleanAdds an association between the team and the users.static voidcacheResult(Team team) Caches the team in the entity cache if it is enabled.static voidcacheResult(List<Team> teams) Caches the teams in the entity cache if it is enabled.static voidstatic voidclearCache(Team team) static voidclearUserGroups(long pk) Clears all associations between the team and its user groups.static voidclearUsers(long pk) Clears all associations between the team and its users.static booleancontainsUser(long pk, long userPK) Returnstrueif the user is associated with the team.static booleancontainsUserGroup(long pk, long userGroupPK) Returnstrueif the user group is associated with the team.static booleancontainsUserGroups(long pk) Returnstrueif the team has any user groups associated with it.static booleancontainsUsers(long pk) Returnstrueif the team has any users associated with it.static intcountAll()Returns the number of teams.static intcountByCompanyId(long companyId) Returns the number of teams where companyId = ?.static intcountByG_N(long groupId, String name) Returns the number of teams where groupId = ? and name = ?.static intcountByGroupId(long groupId) Returns the number of teams where groupId = ?.static intcountByUuid(String uuid) Returns the number of teams where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of teams where uuid = ? and companyId = ?.static intcountByUUID_G(String uuid, long groupId) Returns the number of teams where uuid = ? and groupId = ?.static longcountWithDynamicQuery(DynamicQuery dynamicQuery) static Teamcreate(long teamId) Creates a new team with the primary key.static TeamfetchByCompanyId_First(long companyId, OrderByComparator<Team> orderByComparator) Returns the first team in the ordered set where companyId = ?.static TeamfetchByCompanyId_Last(long companyId, OrderByComparator<Team> orderByComparator) Returns the last team in the ordered set where companyId = ?.static TeamfetchByG_N(long groupId, String name) Returns the team where groupId = ? and name = ? or returnsnullif it could not be found.static TeamfetchByG_N(long groupId, String name, boolean useFinderCache) Returns the team where groupId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.static TeamfetchByGroupId_First(long groupId, OrderByComparator<Team> orderByComparator) Returns the first team in the ordered set where groupId = ?.static TeamfetchByGroupId_Last(long groupId, OrderByComparator<Team> orderByComparator) Returns the last team in the ordered set where groupId = ?.static TeamfetchByPrimaryKey(long teamId) Returns the team with the primary key or returnsnullif it could not be found.static Map<Serializable,Team> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static TeamfetchByUuid_C_First(String uuid, long companyId, OrderByComparator<Team> orderByComparator) Returns the first team in the ordered set where uuid = ? and companyId = ?.static TeamfetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<Team> orderByComparator) Returns the last team in the ordered set where uuid = ? and companyId = ?.static TeamfetchByUuid_First(String uuid, OrderByComparator<Team> orderByComparator) Returns the first team in the ordered set where uuid = ?.static TeamfetchByUUID_G(String uuid, long groupId) Returns the team where uuid = ? and groupId = ? or returnsnullif it could not be found.static TeamfetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the team where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.static TeamfetchByUuid_Last(String uuid, OrderByComparator<Team> orderByComparator) Returns the last team in the ordered set where uuid = ?.static intfilterCountByGroupId(long groupId) Returns the number of teams that the user has permission to view where groupId = ?.filterFindByGroupId(long groupId) Returns all the teams that the user has permission to view where groupId = ?.filterFindByGroupId(long groupId, int start, int end) Returns a range of all the teams that the user has permission to view where groupId = ?.filterFindByGroupId(long groupId, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams that the user has permissions to view where groupId = ?.static Team[]filterFindByGroupId_PrevAndNext(long teamId, long groupId, OrderByComparator<Team> orderByComparator) Returns the teams before and after the current team in the ordered set of teams that the user has permission to view where groupId = ?.findAll()Returns all the teams.findAll(int start, int end) Returns a range of all the teams.findAll(int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams.findAll(int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams.findByCompanyId(long companyId) Returns all the teams where companyId = ?.findByCompanyId(long companyId, int start, int end) Returns a range of all the teams where companyId = ?.findByCompanyId(long companyId, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams where companyId = ?.findByCompanyId(long companyId, int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where companyId = ?.static TeamfindByCompanyId_First(long companyId, OrderByComparator<Team> orderByComparator) Returns the first team in the ordered set where companyId = ?.static TeamfindByCompanyId_Last(long companyId, OrderByComparator<Team> orderByComparator) Returns the last team in the ordered set where companyId = ?.static Team[]findByCompanyId_PrevAndNext(long teamId, long companyId, OrderByComparator<Team> orderByComparator) Returns the teams before and after the current team in the ordered set where companyId = ?.static TeamReturns the team where groupId = ? and name = ? or throws aNoSuchTeamExceptionif it could not be found.findByGroupId(long groupId) Returns all the teams where groupId = ?.findByGroupId(long groupId, int start, int end) Returns a range of all the teams where groupId = ?.findByGroupId(long groupId, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams where groupId = ?.findByGroupId(long groupId, int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where groupId = ?.static TeamfindByGroupId_First(long groupId, OrderByComparator<Team> orderByComparator) Returns the first team in the ordered set where groupId = ?.static TeamfindByGroupId_Last(long groupId, OrderByComparator<Team> orderByComparator) Returns the last team in the ordered set where groupId = ?.static Team[]findByGroupId_PrevAndNext(long teamId, long groupId, OrderByComparator<Team> orderByComparator) Returns the teams before and after the current team in the ordered set where groupId = ?.static TeamfindByPrimaryKey(long teamId) Returns the team with the primary key or throws aNoSuchTeamExceptionif it could not be found.findByUuid(String uuid) Returns all the teams where uuid = ?.findByUuid(String uuid, int start, int end) Returns a range of all the teams where uuid = ?.findByUuid(String uuid, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams where uuid = ?.findByUuid(String uuid, int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where uuid = ?.findByUuid_C(String uuid, long companyId) Returns all the teams where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the teams where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where uuid = ? and companyId = ?.static TeamfindByUuid_C_First(String uuid, long companyId, OrderByComparator<Team> orderByComparator) Returns the first team in the ordered set where uuid = ? and companyId = ?.static TeamfindByUuid_C_Last(String uuid, long companyId, OrderByComparator<Team> orderByComparator) Returns the last team in the ordered set where uuid = ? and companyId = ?.static Team[]findByUuid_C_PrevAndNext(long teamId, String uuid, long companyId, OrderByComparator<Team> orderByComparator) Returns the teams before and after the current team in the ordered set where uuid = ? and companyId = ?.static TeamfindByUuid_First(String uuid, OrderByComparator<Team> orderByComparator) Returns the first team in the ordered set where uuid = ?.static TeamfindByUUID_G(String uuid, long groupId) Returns the team where uuid = ? and groupId = ? or throws aNoSuchTeamExceptionif it could not be found.static TeamfindByUuid_Last(String uuid, OrderByComparator<Team> orderByComparator) Returns the last team in the ordered set where uuid = ?.static Team[]findByUuid_PrevAndNext(long teamId, String uuid, OrderByComparator<Team> orderByComparator) Returns the teams before and after the current team in the ordered set where uuid = ?.findWithDynamicQuery(DynamicQuery dynamicQuery) findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<Team> orderByComparator) static TeamPersistencestatic long[]getUserGroupPrimaryKeys(long pk) Returns the primaryKeys of user groups associated with the team.getUserGroups(long pk) Returns all the user groups associated with the team.getUserGroups(long pk, int start, int end) Returns a range of all the user groups associated with the team.getUserGroups(long pk, int start, int end, OrderByComparator<UserGroup> orderByComparator) Returns an ordered range of all the user groups associated with the team.static intgetUserGroupsSize(long pk) Returns the number of user groups associated with the team.static long[]getUserPrimaryKeys(long pk) Returns the primaryKeys of users associated with the team.getUsers(long pk) Returns all the users associated with the team.getUsers(long pk, int start, int end) Returns a range of all the users associated with the team.getUsers(long pk, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users associated with the team.static intgetUsersSize(long pk) Returns the number of users associated with the team.static Teamremove(long teamId) Removes the team with the primary key from the database.static voidRemoves all the teams from the database.static voidremoveByCompanyId(long companyId) Removes all the teams where companyId = ? from the database.static TeamremoveByG_N(long groupId, String name) Removes the team where groupId = ? and name = ? from the database.static voidremoveByGroupId(long groupId) Removes all the teams where groupId = ? from the database.static voidremoveByUuid(String uuid) Removes all the teams where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the teams where uuid = ? and companyId = ? from the database.static TeamremoveByUUID_G(String uuid, long groupId) Removes the team where uuid = ? and groupId = ? from the database.static voidremoveUser(long pk, long userPK) Removes the association between the team and the user.static voidremoveUser(long pk, User user) Removes the association between the team and the user.static voidremoveUserGroup(long pk, long userGroupPK) Removes the association between the team and the user group.static voidremoveUserGroup(long pk, UserGroup userGroup) Removes the association between the team and the user group.static voidremoveUserGroups(long pk, long[] userGroupPKs) Removes the association between the team and the user groups.static voidremoveUserGroups(long pk, List<UserGroup> userGroups) Removes the association between the team and the user groups.static voidremoveUsers(long pk, long[] userPKs) Removes the association between the team and the users.static voidremoveUsers(long pk, List<User> users) Removes the association between the team and the users.static voidsetPersistence(TeamPersistence persistence) static voidsetUserGroups(long pk, long[] userGroupPKs) Sets the user groups associated with the team, removing and adding associations as necessary.static voidsetUserGroups(long pk, List<UserGroup> userGroups) Sets the user groups associated with the team, removing and adding associations as necessary.static voidsetUsers(long pk, long[] userPKs) Sets the users associated with the team, removing and adding associations as necessary.static voidSets the users associated with the team, removing and adding associations as necessary.static Teamstatic Teamupdate(Team team, ServiceContext serviceContext) static TeamupdateImpl(Team team)
-
Constructor Details
-
TeamUtil
public TeamUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
-
countWithDynamicQuery
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
-
findWithDynamicQuery
-
findWithDynamicQuery
public static List<Team> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<Team> orderByComparator) -
update
-
update
-
findByUuid
Returns all the teams where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching teams
-
findByUuid
Returns a range of all the teams where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)- Returns:
- the range of matching teams
-
findByUuid
public static List<Team> findByUuid(String uuid, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching teams
-
findByUuid
public static List<Team> findByUuid(String uuid, int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching teams
-
findByUuid_First
public static Team findByUuid_First(String uuid, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the first team in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching team
- Throws:
NoSuchTeamException- if a matching team could not be foundNoSuchTeamException
-
fetchByUuid_First
Returns the first team in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching team, or
nullif a matching team could not be found
-
findByUuid_Last
public static Team findByUuid_Last(String uuid, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the last team in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching team
- Throws:
NoSuchTeamException- if a matching team could not be foundNoSuchTeamException
-
fetchByUuid_Last
Returns the last team in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching team, or
nullif a matching team could not be found
-
findByUuid_PrevAndNext
public static Team[] findByUuid_PrevAndNext(long teamId, String uuid, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the teams before and after the current team in the ordered set where uuid = ?.- Parameters:
teamId- the primary key of the current teamuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next team
- Throws:
NoSuchTeamException- if a team with the primary key could not be foundNoSuchTeamException
-
removeByUuid
Removes all the teams where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of teams where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching teams
-
findByUUID_G
Returns the team where uuid = ? and groupId = ? or throws aNoSuchTeamExceptionif it could not be found.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching team
- Throws:
NoSuchTeamException- if a matching team could not be foundNoSuchTeamException
-
fetchByUUID_G
Returns the team where uuid = ? and groupId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching team, or
nullif a matching team could not be found
-
fetchByUUID_G
Returns the team where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
uuid- the uuidgroupId- the group IDuseFinderCache- whether to use the finder cache- Returns:
- the matching team, or
nullif a matching team could not be found
-
removeByUUID_G
Removes the team where uuid = ? and groupId = ? from the database.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the team that was removed
- Throws:
NoSuchTeamException
-
countByUUID_G
Returns the number of teams where uuid = ? and groupId = ?.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the number of matching teams
-
findByUuid_C
Returns all the teams where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching teams
-
findByUuid_C
Returns a range of all the teams where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)- Returns:
- the range of matching teams
-
findByUuid_C
public static List<Team> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching teams
-
findByUuid_C
public static List<Team> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching teams
-
findByUuid_C_First
public static Team findByUuid_C_First(String uuid, long companyId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the first team in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching team
- Throws:
NoSuchTeamException- if a matching team could not be foundNoSuchTeamException
-
fetchByUuid_C_First
public static Team fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<Team> orderByComparator) Returns the first team in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching team, or
nullif a matching team could not be found
-
findByUuid_C_Last
public static Team findByUuid_C_Last(String uuid, long companyId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the last team in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching team
- Throws:
NoSuchTeamException- if a matching team could not be foundNoSuchTeamException
-
fetchByUuid_C_Last
public static Team fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<Team> orderByComparator) Returns the last team in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching team, or
nullif a matching team could not be found
-
findByUuid_C_PrevAndNext
public static Team[] findByUuid_C_PrevAndNext(long teamId, String uuid, long companyId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the teams before and after the current team in the ordered set where uuid = ? and companyId = ?.- Parameters:
teamId- the primary key of the current teamuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next team
- Throws:
NoSuchTeamException- if a team with the primary key could not be foundNoSuchTeamException
-
removeByUuid_C
Removes all the teams where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of teams where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching teams
-
findByCompanyId
Returns all the teams where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching teams
-
findByCompanyId
Returns a range of all the teams where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)- Returns:
- the range of matching teams
-
findByCompanyId
public static List<Team> findByCompanyId(long companyId, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching teams
-
findByCompanyId
public static List<Team> findByCompanyId(long companyId, int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching teams
-
findByCompanyId_First
public static Team findByCompanyId_First(long companyId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the first team in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching team
- Throws:
NoSuchTeamException- if a matching team could not be foundNoSuchTeamException
-
fetchByCompanyId_First
public static Team fetchByCompanyId_First(long companyId, OrderByComparator<Team> orderByComparator) Returns the first team in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching team, or
nullif a matching team could not be found
-
findByCompanyId_Last
public static Team findByCompanyId_Last(long companyId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the last team in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching team
- Throws:
NoSuchTeamException- if a matching team could not be foundNoSuchTeamException
-
fetchByCompanyId_Last
Returns the last team in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching team, or
nullif a matching team could not be found
-
findByCompanyId_PrevAndNext
public static Team[] findByCompanyId_PrevAndNext(long teamId, long companyId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the teams before and after the current team in the ordered set where companyId = ?.- Parameters:
teamId- the primary key of the current teamcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next team
- Throws:
NoSuchTeamException- if a team with the primary key could not be foundNoSuchTeamException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the teams where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of teams where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching teams
-
findByGroupId
Returns all the teams where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching teams
-
findByGroupId
Returns a range of all the teams where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)- Returns:
- the range of matching teams
-
findByGroupId
public static List<Team> findByGroupId(long groupId, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching teams
-
findByGroupId
public static List<Team> findByGroupId(long groupId, int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching teams
-
findByGroupId_First
public static Team findByGroupId_First(long groupId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the first team in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching team
- Throws:
NoSuchTeamException- if a matching team could not be foundNoSuchTeamException
-
fetchByGroupId_First
Returns the first team in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching team, or
nullif a matching team could not be found
-
findByGroupId_Last
public static Team findByGroupId_Last(long groupId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the last team in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching team
- Throws:
NoSuchTeamException- if a matching team could not be foundNoSuchTeamException
-
fetchByGroupId_Last
Returns the last team in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching team, or
nullif a matching team could not be found
-
findByGroupId_PrevAndNext
public static Team[] findByGroupId_PrevAndNext(long teamId, long groupId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the teams before and after the current team in the ordered set where groupId = ?.- Parameters:
teamId- the primary key of the current teamgroupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next team
- Throws:
NoSuchTeamException- if a team with the primary key could not be foundNoSuchTeamException
-
filterFindByGroupId
Returns all the teams that the user has permission to view where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching teams that the user has permission to view
-
filterFindByGroupId
Returns a range of all the teams that the user has permission to view where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)- Returns:
- the range of matching teams that the user has permission to view
-
filterFindByGroupId
public static List<Team> filterFindByGroupId(long groupId, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams that the user has permissions to view where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching teams that the user has permission to view
-
filterFindByGroupId_PrevAndNext
public static Team[] filterFindByGroupId_PrevAndNext(long teamId, long groupId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the teams before and after the current team in the ordered set of teams that the user has permission to view where groupId = ?.- Parameters:
teamId- the primary key of the current teamgroupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next team
- Throws:
NoSuchTeamException- if a team with the primary key could not be foundNoSuchTeamException
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the teams where groupId = ? from the database.- Parameters:
groupId- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of teams where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching teams
-
filterCountByGroupId
public static int filterCountByGroupId(long groupId) Returns the number of teams that the user has permission to view where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching teams that the user has permission to view
-
findByG_N
Returns the team where groupId = ? and name = ? or throws aNoSuchTeamExceptionif it could not be found.- Parameters:
groupId- the group IDname- the name- Returns:
- the matching team
- Throws:
NoSuchTeamException- if a matching team could not be foundNoSuchTeamException
-
fetchByG_N
Returns the team where groupId = ? and name = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
groupId- the group IDname- the name- Returns:
- the matching team, or
nullif a matching team could not be found
-
fetchByG_N
Returns the team where groupId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
groupId- the group IDname- the nameuseFinderCache- whether to use the finder cache- Returns:
- the matching team, or
nullif a matching team could not be found
-
removeByG_N
Removes the team where groupId = ? and name = ? from the database.- Parameters:
groupId- the group IDname- the name- Returns:
- the team that was removed
- Throws:
NoSuchTeamException
-
countByG_N
Returns the number of teams where groupId = ? and name = ?.- Parameters:
groupId- the group IDname- the name- Returns:
- the number of matching teams
-
cacheResult
Caches the team in the entity cache if it is enabled.- Parameters:
team- the team
-
cacheResult
Caches the teams in the entity cache if it is enabled.- Parameters:
teams- the teams
-
create
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
Removes the team with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
teamId- the primary key of the team- Returns:
- the team that was removed
- Throws:
NoSuchTeamException- if a team with the primary key could not be foundNoSuchTeamException
-
updateImpl
-
findByPrimaryKey
Returns the team with the primary key or throws aNoSuchTeamExceptionif it could not be found.- Parameters:
teamId- the primary key of the team- Returns:
- the team
- Throws:
NoSuchTeamException- if a team with the primary key could not be foundNoSuchTeamException
-
fetchByPrimaryKey
Returns the team with the primary key or returnsnullif it could not be found.- Parameters:
teamId- the primary key of the team- Returns:
- the team, or
nullif a team with the primary key could not be found
-
findAll
Returns all the teams.- Returns:
- the teams
-
findAll
Returns a range of all the teams.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
start- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)- Returns:
- the range of teams
-
findAll
Returns an ordered range of all the teams.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
start- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of teams
-
findAll
public static List<Team> findAll(int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
start- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of teams
-
removeAll
public static void removeAll()Removes all the teams from the database. -
countAll
public static int countAll()Returns the number of teams.- Returns:
- the number of teams
-
getUserPrimaryKeys
public static long[] getUserPrimaryKeys(long pk) Returns the primaryKeys of users associated with the team.- Parameters:
pk- the primary key of the team- Returns:
- long[] of the primaryKeys of users associated with the team
-
getUsers
Returns all the users associated with the team.- Parameters:
pk- the primary key of the team- Returns:
- the users associated with the team
-
getUsers
Returns a range of all the users associated with the team.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
pk- the primary key of the teamstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)- Returns:
- the range of users associated with the team
-
getUsers
public static List<User> getUsers(long pk, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users associated with the team.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
pk- the primary key of the teamstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of users associated with the team
-
getUsersSize
public static int getUsersSize(long pk) Returns the number of users associated with the team.- Parameters:
pk- the primary key of the team- Returns:
- the number of users associated with the team
-
containsUser
public static boolean containsUser(long pk, long userPK) Returnstrueif the user is associated with the team.- Parameters:
pk- the primary key of the teamuserPK- the primary key of the user- Returns:
trueif the user is associated with the team;falseotherwise
-
containsUsers
public static boolean containsUsers(long pk) Returnstrueif the team has any users associated with it.- Parameters:
pk- the primary key of the team to check for associations with users- Returns:
trueif the team has any users associated with it;falseotherwise
-
addUser
public static boolean addUser(long pk, long userPK) 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 teamuserPK- the primary key of the user- Returns:
trueif an association between the team and the user was added;falseif they were already associated
-
addUser
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 teamuser- the user- Returns:
trueif an association between the team and the user was added;falseif they were already associated
-
addUsers
public static boolean addUsers(long pk, long[] userPKs) 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 teamuserPKs- the primary keys of the users- Returns:
trueif at least one association between the team and the users was added;falseif they were all already associated
-
addUsers
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 teamusers- the users- Returns:
trueif at least one association between the team and the users was added;falseif they were all already associated
-
clearUsers
public static void clearUsers(long pk) 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
-
removeUser
public static void removeUser(long pk, long userPK) 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 teamuserPK- the primary key of the user
-
removeUser
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 teamuser- the user
-
removeUsers
public static void removeUsers(long pk, long[] userPKs) 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 teamuserPKs- the primary keys of the users
-
removeUsers
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 teamusers- the users
-
setUsers
public static void setUsers(long pk, long[] userPKs) 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 teamuserPKs- the primary keys of the users to be associated with the team
-
setUsers
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 teamusers- the users to be associated with the team
-
getUserGroupPrimaryKeys
public static long[] getUserGroupPrimaryKeys(long pk) Returns the primaryKeys of user groups associated with the team.- Parameters:
pk- the primary key of the team- Returns:
- long[] of the primaryKeys of user groups associated with the team
-
getUserGroups
Returns all the user groups associated with the team.- Parameters:
pk- the primary key of the team- Returns:
- the user groups associated with the team
-
getUserGroups
Returns a range of all the user groups associated with the team.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
pk- the primary key of the teamstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)- Returns:
- the range of user groups associated with the team
-
getUserGroups
public static List<UserGroup> getUserGroups(long pk, int start, int end, OrderByComparator<UserGroup> orderByComparator) Returns an ordered range of all the user groups associated with the team.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Parameters:
pk- the primary key of the teamstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of user groups associated with the team
-
getUserGroupsSize
public static int getUserGroupsSize(long pk) Returns the number of user groups associated with the team.- Parameters:
pk- the primary key of the team- Returns:
- the number of user groups associated with the team
-
containsUserGroup
public static boolean containsUserGroup(long pk, long userGroupPK) Returnstrueif the user group is associated with the team.- Parameters:
pk- the primary key of the teamuserGroupPK- the primary key of the user group- Returns:
trueif the user group is associated with the team;falseotherwise
-
containsUserGroups
public static boolean containsUserGroups(long pk) Returnstrueif the team has any user groups associated with it.- Parameters:
pk- the primary key of the team to check for associations with user groups- Returns:
trueif the team has any user groups associated with it;falseotherwise
-
addUserGroup
public static boolean addUserGroup(long pk, long userGroupPK) Adds an association between the team and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the teamuserGroupPK- the primary key of the user group- Returns:
trueif an association between the team and the user group was added;falseif they were already associated
-
addUserGroup
Adds an association between the team and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the teamuserGroup- the user group- Returns:
trueif an association between the team and the user group was added;falseif they were already associated
-
addUserGroups
public static boolean addUserGroups(long pk, long[] userGroupPKs) Adds an association between the team and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the teamuserGroupPKs- the primary keys of the user groups- Returns:
trueif at least one association between the team and the user groups was added;falseif they were all already associated
-
addUserGroups
Adds an association between the team and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the teamuserGroups- the user groups- Returns:
trueif at least one association between the team and the user groups was added;falseif they were all already associated
-
clearUserGroups
public static void clearUserGroups(long pk) Clears all associations between the team and its user groups. 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 user groups from
-
removeUserGroup
public static void removeUserGroup(long pk, long userGroupPK) Removes the association between the team and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the teamuserGroupPK- the primary key of the user group
-
removeUserGroup
Removes the association between the team and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the teamuserGroup- the user group
-
removeUserGroups
public static void removeUserGroups(long pk, long[] userGroupPKs) Removes the association between the team and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the teamuserGroupPKs- the primary keys of the user groups
-
removeUserGroups
Removes the association between the team and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the teamuserGroups- the user groups
-
setUserGroups
public static void setUserGroups(long pk, long[] userGroupPKs) Sets the user groups 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 teamuserGroupPKs- the primary keys of the user groups to be associated with the team
-
setUserGroups
Sets the user groups 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 teamuserGroups- the user groups to be associated with the team
-
getPersistence
-
setPersistence
-