@ProviderType
public class TeamUtil
extends java.lang.Object
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
TeamPersistence,
TeamPersistenceImpl| Constructor and Description |
|---|
TeamUtil() |
| Modifier and Type | Method and Description |
|---|---|
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 |
addUserGroup(long pk,
long userGroupPK)
Adds an association between the team and the user group.
|
static void |
addUserGroup(long pk,
UserGroup userGroup)
Adds an association between the team and the user group.
|
static void |
addUserGroups(long pk,
java.util.List<UserGroup> userGroups)
Adds an association between the team and the user groups.
|
static void |
addUserGroups(long pk,
long[] userGroupPKs)
Adds an association between the team and the user groups.
|
static void |
addUsers(long pk,
java.util.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(java.util.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 |
clearUserGroups(long pk)
Clears all associations between the team and its user groups.
|
static void |
clearUsers(long pk)
Clears all associations between the team and its users.
|
static boolean |
containsUser(long pk,
long userPK)
Returns
true if the user is associated with the team. |
static boolean |
containsUserGroup(long pk,
long userGroupPK)
Returns
true if the user group is associated with the team. |
static boolean |
containsUserGroups(long pk)
Returns
true if the team has any user groups associated with it. |
static boolean |
containsUsers(long pk)
Returns
true if the team has any users associated with it. |
static int |
countAll()
Returns the number of teams.
|
static int |
countByG_N(long groupId,
java.lang.String name)
Returns the number of teams where groupId = ? and name = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of teams where groupId = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static Team |
create(long teamId)
Creates a new team with the primary key.
|
static Team |
fetchByG_N(long groupId,
java.lang.String name)
Returns the team where groupId = ? and name = ? or returns
null if it could not be found. |
static Team |
fetchByG_N(long groupId,
java.lang.String name,
boolean retrieveFromCache)
Returns the team where groupId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
static Team |
fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first team in the ordered set where groupId = ?.
|
static Team |
fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last team in the ordered set where groupId = ?.
|
static Team |
fetchByPrimaryKey(long teamId)
Returns the team with the primary key or returns
null if it could not be found. |
static int |
filterCountByGroupId(long groupId)
Returns the number of teams that the user has permission to view where groupId = ?.
|
static Team[] |
filterFindByGroupId_PrevAndNext(long teamId,
long groupId,
OrderByComparator 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 = ?.
|
static java.util.List<Team> |
filterFindByGroupId(long groupId)
Returns all the teams that the user has permission to view where groupId = ?.
|
static java.util.List<Team> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the teams that the user has permission to view where groupId = ?.
|
static java.util.List<Team> |
filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the teams that the user has permissions to view where groupId = ?.
|
static java.util.List<Team> |
findAll()
Returns all the teams.
|
static java.util.List<Team> |
findAll(int start,
int end)
Returns a range of all the teams.
|
static java.util.List<Team> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the teams.
|
static Team |
findByG_N(long groupId,
java.lang.String name)
Returns the team where groupId = ? and name = ? or throws a
NoSuchTeamException if it could not be found. |
static Team |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first team in the ordered set where groupId = ?.
|
static Team |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last team in the ordered set where groupId = ?.
|
static Team[] |
findByGroupId_PrevAndNext(long teamId,
long groupId,
OrderByComparator orderByComparator)
Returns the teams before and after the current team in the ordered set where groupId = ?.
|
static java.util.List<Team> |
findByGroupId(long groupId)
Returns all the teams where groupId = ?.
|
static java.util.List<Team> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the teams where groupId = ?.
|
static java.util.List<Team> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the teams where groupId = ?.
|
static Team |
findByPrimaryKey(long teamId)
Returns the team with the primary key or throws a
NoSuchTeamException if it could not be found. |
static java.util.List<Team> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static java.util.List<Team> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<Team> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator) |
static TeamPersistence |
getPersistence() |
static java.util.List<UserGroup> |
getUserGroups(long pk)
Returns all the user groups associated with the team.
|
static java.util.List<UserGroup> |
getUserGroups(long pk,
int start,
int end)
Returns a range of all the user groups associated with the team.
|
static java.util.List<UserGroup> |
getUserGroups(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the user groups associated with the team.
|
static int |
getUserGroupsSize(long pk)
Returns the number of user groups associated with the team.
|
static java.util.List<User> |
getUsers(long pk)
Returns all the users associated with the team.
|
static java.util.List<User> |
getUsers(long pk,
int start,
int end)
Returns a range of all the users associated with the team.
|
static java.util.List<User> |
getUsers(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the users associated with the team.
|
static int |
getUsersSize(long pk)
Returns the number of users associated with the team.
|
static Team |
remove(long teamId)
Removes the team with the primary key from the database.
|
static void |
removeAll()
Removes all the teams from the database.
|
static Team |
removeByG_N(long groupId,
java.lang.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 |
removeUserGroup(long pk,
long userGroupPK)
Removes the association between the team and the user group.
|
static void |
removeUserGroup(long pk,
UserGroup userGroup)
Removes the association between the team and the user group.
|
static void |
removeUserGroups(long pk,
java.util.List<UserGroup> userGroups)
Removes the association between the team and the user groups.
|
static void |
removeUserGroups(long pk,
long[] userGroupPKs)
Removes the association between the team and the user groups.
|
static void |
removeUsers(long pk,
java.util.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)
Deprecated.
As of 6.2.0
|
static void |
setUserGroups(long pk,
java.util.List<UserGroup> userGroups)
Sets the user groups associated with the team, removing and adding associations as necessary.
|
static void |
setUserGroups(long pk,
long[] userGroupPKs)
Sets the user groups associated with the team, removing and adding associations as necessary.
|
static void |
setUsers(long pk,
java.util.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) |
static Team |
update(Team team,
ServiceContext serviceContext) |
static Team |
updateImpl(Team team) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(Team team)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemExceptionBasePersistence.countWithDynamicQuery(DynamicQuery)public static java.util.List<Team> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<Team> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
public static java.util.List<Team> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
public static Team update(Team team) throws SystemException
public static Team update(Team team, ServiceContext serviceContext) throws SystemException
public static java.util.List<Team> findByGroupId(long groupId) throws SystemException
groupId - the group IDSystemException - if a system exception occurredpublic static java.util.List<Team> findByGroupId(long groupId, int start, int end) throws SystemException
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<Team> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null)SystemException - if a system exception occurredpublic static Team findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws NoSuchTeamException, SystemException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchTeamException - if a matching team could not be foundSystemException - if a system exception occurredpublic static Team fetchByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching team could not be foundSystemException - if a system exception occurredpublic static Team findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws NoSuchTeamException, SystemException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchTeamException - if a matching team could not be foundSystemException - if a system exception occurredpublic static Team fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching team could not be foundSystemException - if a system exception occurredpublic static Team[] findByGroupId_PrevAndNext(long teamId, long groupId, OrderByComparator orderByComparator) throws NoSuchTeamException, SystemException
teamId - the primary key of the current teamgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchTeamException - if a team with the primary key could not be foundSystemException - if a system exception occurredpublic static java.util.List<Team> filterFindByGroupId(long groupId) throws SystemException
groupId - the group IDSystemException - if a system exception occurredpublic static java.util.List<Team> filterFindByGroupId(long groupId, int start, int end) throws SystemException
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<Team> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null)SystemException - if a system exception occurredpublic static Team[] filterFindByGroupId_PrevAndNext(long teamId, long groupId, OrderByComparator orderByComparator) throws NoSuchTeamException, SystemException
teamId - the primary key of the current teamgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchTeamException - if a team with the primary key could not be foundSystemException - if a system exception occurredpublic static void removeByGroupId(long groupId)
throws SystemException
groupId - the group IDSystemException - if a system exception occurredpublic static int countByGroupId(long groupId)
throws SystemException
groupId - the group IDSystemException - if a system exception occurredpublic static int filterCountByGroupId(long groupId)
throws SystemException
groupId - the group IDSystemException - if a system exception occurredpublic static Team findByG_N(long groupId, java.lang.String name) throws NoSuchTeamException, SystemException
NoSuchTeamException if it could not be found.groupId - the group IDname - the nameNoSuchTeamException - if a matching team could not be foundSystemException - if a system exception occurredpublic static Team fetchByG_N(long groupId, java.lang.String name) throws SystemException
null if it could not be found. Uses the finder cache.groupId - the group IDname - the namenull if a matching team could not be foundSystemException - if a system exception occurredpublic static Team fetchByG_N(long groupId, java.lang.String name, boolean retrieveFromCache) throws SystemException
null if it could not be found, optionally using the finder cache.groupId - the group IDname - the nameretrieveFromCache - whether to use the finder cachenull if a matching team could not be foundSystemException - if a system exception occurredpublic static Team removeByG_N(long groupId, java.lang.String name) throws NoSuchTeamException, SystemException
groupId - the group IDname - the nameSystemException - if a system exception occurredNoSuchTeamExceptionpublic static int countByG_N(long groupId,
java.lang.String name)
throws SystemException
groupId - the group IDname - the nameSystemException - if a system exception occurredpublic static void cacheResult(Team team)
team - the teampublic static void cacheResult(java.util.List<Team> teams)
teams - the teamspublic static Team create(long teamId)
teamId - the primary key for the new teampublic static Team remove(long teamId) throws NoSuchTeamException, SystemException
teamId - the primary key of the teamNoSuchTeamException - if a team with the primary key could not be foundSystemException - if a system exception occurredpublic static Team updateImpl(Team team) throws SystemException
SystemExceptionpublic static Team findByPrimaryKey(long teamId) throws NoSuchTeamException, SystemException
NoSuchTeamException if it could not be found.teamId - the primary key of the teamNoSuchTeamException - if a team with the primary key could not be foundSystemException - if a system exception occurredpublic static Team fetchByPrimaryKey(long teamId) throws SystemException
null if it could not be found.teamId - the primary key of the teamnull if a team with the primary key could not be foundSystemException - if a system exception occurredpublic static java.util.List<Team> findAll() throws SystemException
SystemException - if a system exception occurredpublic static java.util.List<Team> findAll(int start, int end) throws SystemException
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<Team> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null)SystemException - if a system exception occurredpublic static void removeAll()
throws SystemException
SystemException - if a system exception occurredpublic static int countAll()
throws SystemException
SystemException - if a system exception occurredpublic static java.util.List<User> getUsers(long pk) throws SystemException
pk - the primary key of the teamSystemException - if a system exception occurredpublic static java.util.List<User> getUsers(long pk, int start, int end) throws SystemException
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)SystemException - if a system exception occurredpublic static java.util.List<User> getUsers(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null)SystemException - if a system exception occurredpublic static int getUsersSize(long pk)
throws SystemException
pk - the primary key of the teamSystemException - if a system exception occurredpublic static boolean containsUser(long pk,
long userPK)
throws SystemException
true if the user is associated with the team.pk - the primary key of the teamuserPK - the primary key of the usertrue if the user is associated with the team; false otherwiseSystemException - if a system exception occurredpublic static boolean containsUsers(long pk)
throws SystemException
true if the team has any users associated with it.pk - the primary key of the team to check for associations with userstrue if the team has any users associated with it; false otherwiseSystemException - if a system exception occurredpublic static void addUser(long pk,
long userPK)
throws SystemException
pk - the primary key of the teamuserPK - the primary key of the userSystemException - if a system exception occurredpublic static void addUser(long pk,
User user)
throws SystemException
pk - the primary key of the teamuser - the userSystemException - if a system exception occurredpublic static void addUsers(long pk,
long[] userPKs)
throws SystemException
pk - the primary key of the teamuserPKs - the primary keys of the usersSystemException - if a system exception occurredpublic static void addUsers(long pk,
java.util.List<User> users)
throws SystemException
pk - the primary key of the teamusers - the usersSystemException - if a system exception occurredpublic static void clearUsers(long pk)
throws SystemException
pk - the primary key of the team to clear the associated users fromSystemException - if a system exception occurredpublic static void removeUser(long pk,
long userPK)
throws SystemException
pk - the primary key of the teamuserPK - the primary key of the userSystemException - if a system exception occurredpublic static void removeUser(long pk,
User user)
throws SystemException
pk - the primary key of the teamuser - the userSystemException - if a system exception occurredpublic static void removeUsers(long pk,
long[] userPKs)
throws SystemException
pk - the primary key of the teamuserPKs - the primary keys of the usersSystemException - if a system exception occurredpublic static void removeUsers(long pk,
java.util.List<User> users)
throws SystemException
pk - the primary key of the teamusers - the usersSystemException - if a system exception occurredpublic static void setUsers(long pk,
long[] userPKs)
throws SystemException
pk - the primary key of the teamuserPKs - the primary keys of the users to be associated with the teamSystemException - if a system exception occurredpublic static void setUsers(long pk,
java.util.List<User> users)
throws SystemException
pk - the primary key of the teamusers - the users to be associated with the teamSystemException - if a system exception occurredpublic static java.util.List<UserGroup> getUserGroups(long pk) throws SystemException
pk - the primary key of the teamSystemException - if a system exception occurredpublic static java.util.List<UserGroup> getUserGroups(long pk, int start, int end) throws SystemException
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)SystemException - if a system exception occurredpublic static java.util.List<UserGroup> getUserGroups(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null)SystemException - if a system exception occurredpublic static int getUserGroupsSize(long pk)
throws SystemException
pk - the primary key of the teamSystemException - if a system exception occurredpublic static boolean containsUserGroup(long pk,
long userGroupPK)
throws SystemException
true if the user group is associated with the team.pk - the primary key of the teamuserGroupPK - the primary key of the user grouptrue if the user group is associated with the team; false otherwiseSystemException - if a system exception occurredpublic static boolean containsUserGroups(long pk)
throws SystemException
true if the team has any user groups associated with it.pk - the primary key of the team to check for associations with user groupstrue if the team has any user groups associated with it; false otherwiseSystemException - if a system exception occurredpublic static void addUserGroup(long pk,
long userGroupPK)
throws SystemException
pk - the primary key of the teamuserGroupPK - the primary key of the user groupSystemException - if a system exception occurredpublic static void addUserGroup(long pk,
UserGroup userGroup)
throws SystemException
pk - the primary key of the teamuserGroup - the user groupSystemException - if a system exception occurredpublic static void addUserGroups(long pk,
long[] userGroupPKs)
throws SystemException
pk - the primary key of the teamuserGroupPKs - the primary keys of the user groupsSystemException - if a system exception occurredpublic static void addUserGroups(long pk,
java.util.List<UserGroup> userGroups)
throws SystemException
pk - the primary key of the teamuserGroups - the user groupsSystemException - if a system exception occurredpublic static void clearUserGroups(long pk)
throws SystemException
pk - the primary key of the team to clear the associated user groups fromSystemException - if a system exception occurredpublic static void removeUserGroup(long pk,
long userGroupPK)
throws SystemException
pk - the primary key of the teamuserGroupPK - the primary key of the user groupSystemException - if a system exception occurredpublic static void removeUserGroup(long pk,
UserGroup userGroup)
throws SystemException
pk - the primary key of the teamuserGroup - the user groupSystemException - if a system exception occurredpublic static void removeUserGroups(long pk,
long[] userGroupPKs)
throws SystemException
pk - the primary key of the teamuserGroupPKs - the primary keys of the user groupsSystemException - if a system exception occurredpublic static void removeUserGroups(long pk,
java.util.List<UserGroup> userGroups)
throws SystemException
pk - the primary key of the teamuserGroups - the user groupsSystemException - if a system exception occurredpublic static void setUserGroups(long pk,
long[] userGroupPKs)
throws SystemException
pk - the primary key of the teamuserGroupPKs - the primary keys of the user groups to be associated with the teamSystemException - if a system exception occurredpublic static void setUserGroups(long pk,
java.util.List<UserGroup> userGroups)
throws SystemException
pk - the primary key of the teamuserGroups - the user groups to be associated with the teamSystemException - if a system exception occurredpublic static TeamPersistence getPersistence()
public void setPersistence(TeamPersistence persistence)